> ## Documentation Index
> Fetch the complete documentation index at: /docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Create a post

> Save a draft, schedule a post, or publish it now on one or more accounts.

> [!NOTE]
>
> Needs `posts:create`. `schedule` also needs `posts:schedule`, and `publish_now` also needs `posts:publish`. A key with only `posts:create` can save drafts and nothing else, which makes it a safe key for tests and agents. See [Permissions](/docs/essentials/authentication.md#permissions).

Send the workspace, the `content` and a `schedule_type`. `draft` saves the post and sends nothing. `schedule` sends it at `schedule_for`, or at the workspace's next free queue time without it; when no queue time is free, that is refused with `422` under `schedule_for` ("There are no available queue slots to schedule to. Send schedule\_for with a date and time, or add queue times to the workspace.") and no post is made. `publish_now` sends it at once, and that can't be undone.

The answer is the post as saved ([the post object](/docs/api-reference/posts/object.md)) plus `skipped_accounts`, the accounts left out of it (see [Accounts that need reconnecting](#accounts-that-need-reconnecting) and [Default accounts the plan leaves out](#default-accounts-the-plan-leaves-out)), and `needs_media`, the accounts that still need a photo or video (see [Networks that need a photo or video](#networks-that-need-a-photo-or-video)). The whole request is checked before anything is saved, so a `403` or `422` saves nothing.

Send an optional `Idempotency-Key` header (up to 128 characters, kept for 24 hours per user) so retrying after a network timeout or deploy returns the originally created post (`200` with `Idempotency-Replayed: true`) instead of creating a duplicate. A key belongs to one request body: send a new key for each new post. The order of the body's fields doesn't matter.

| Retry with the same key | Answer |
| - | - |
| Same body, the first request finished | `200` with the post it made and `Idempotency-Replayed: true` |
| Same body, the first request still running | `409`: try again in a moment |
| Same body, the post it made was deleted since | `409`: use a new key to make it again |
| A different body | `422`: use a new key for a different post |
| A key longer than 128 characters | `422`, and nothing is saved |

A first request that failed (`422`, `403`, `500`) holds no key, so you can fix it and send it again with the same key.

A workspace's default auto-repost and default auto-plug apply only to posts made in the PostSyncer app. A post made through the API or MCP doesn't get them: send `repeatable` (with its times and gap) or `auto_plug` yourself.

## Free plan

On the Free plan a workspace owner gets 20 posts a month, counted from their sign-up day. A post counts once, when it is first scheduled, published or sent for approval; editing it or sending it again doesn't count again. Drafts are free. Each repeat of a repeating post counts when it goes out, and a repeat that goes out after the month's 20 are used fails when it is sent.

Past 20, the post is refused with `403`, `error: plan_limit_reached` and `limit: posts`, and `resets_at` says when the count starts again. Labels and campaigns are on paid plans: on Free a post with `labels` or a `campaign_id` is refused with `limit: labels` or `limit: campaigns`. Outside a first week, a Free owner's new posts go to 2 accounts: a scheduled or published post that names another account in `accounts` (its `plan_allows_posting` is `false`) is refused with `limit: free_accounts`. Leave that account out, or save a draft. See [Plan limits](/docs/plan-limits.md#accounts-on-free).

## Roles

The key acts as its person, with their role in the post's workspace. Someone whose role can't publish (a content creator) can still send `schedule` or `publish_now`: the post is sent for approval instead (`PENDING_APPROVAL`), and someone else [approves it](/docs/api-reference/posts/approve.md). Sent with no `schedule_for` when no queue time is free, it waits for approval with no time, and the approver picks when it goes out. A client can't create posts (`403`).

## First comments

Add a content part with `is_first_comment: true` to post it after the post goes out, the way the composer does. It is left out of the post itself.

* On Instagram, Facebook, LinkedIn and YouTube it is a comment on the post.
* On X, Threads, Bluesky and Mastodon it is a reply under the thread's last part.
* The other networks don't get it. Put anything every network needs, like a link, in the post itself.

`first_comment_delay` is the wait in minutes: 1 when left out, up to 10080 (7 days). On X, Threads, Bluesky and Mastodon, `0` posts it as the thread's next reply while the post goes out.

```json theme={null}
"content": [
  { "text": "Our spring menu starts today. The lavender oat latte is back, and so is the rhubarb bun.", "media": [9051] },
  { "text": "Find us at 14 Mill Lane, open 7 to 4 every day.", "is_first_comment": true }
]
```

On X, Threads, Bluesky and Mastodon, two or more parts without `is_first_comment` go out as a thread. The other networks get the parts joined into one text, with two blank lines between them (the first comment left out).

## Media

A part's `media` takes media library ids, public URLs, or both.

* A URL is copied into the media library when the post is saved, so a signed or expiring link is fine.
* Dropbox and Google Drive share links work when anyone with the link can view the file. A folder link is refused.
* A URL that can't be downloaded, isn't an allowed type, is over 500 MB or takes longer than 75 seconds is refused with `422` naming it.
* Documents (PDF, DOC, DOCX, PPT, PPTX) go to LinkedIn only, one per post, listed first.

Each file is checked against the limits of every network the post goes to when it is saved:

| Network | Needs media | Photos | Videos | Largest photo | Largest video | Text |
| - | - | - | - | - | - | - |
| X | No | 20 | 20 | 5 MB | 500 MB | 280 (25,000 with Premium) |
| Instagram | Yes | 20 | 20 | 8 MB | 300 MB | 2,200 |
| Facebook | No | 10 | 1 | 10 MB | 500 MB | 2,200 |
| LinkedIn | No | 10 | 1 | 5 MB | 500 MB | 3,000 |
| TikTok | Yes | 35 | 1 | 20 MB | 500 MB | 2,200 |
| YouTube | Yes | 0 | 1 | – | 500 MB | 5,000 |
| Pinterest | Yes | 5 | 1 | 20 MB | 200 MB | 800 |
| Threads | No | 20 | 20 | 8 MB | 500 MB | 500 |
| Telegram | No | 10 | 10 | 5 MB | 20 MB | 4,096 (1,024 under media) |
| Bluesky | No | 4 | 1 | 5 MB | 100 MB | 300 |
| Mastodon | No | 4 | 1 | 10 MB | 40 MB | 500 |
| Google Business Profile | No | 1 | 0 | 5 MB | – | 1,500 |

No file can be over 500 MB, so that is the largest video on X, Facebook, LinkedIn, TikTok, YouTube and Threads, though those networks take bigger files themselves.

* X, Instagram and Threads take up to 20 files in all, Telegram up to 10. X, Instagram, Threads and Telegram can mix photos and videos in one post; the other networks take photos or one video.
* A draft doesn't need media.
* On X and Telegram, a text over the limit is refused with `422` when the post is scheduled or published (`schedule` or `publish_now`); a draft isn't checked. Google Business Profile refuses a standard post's text over 1,500 characters when the post is saved, drafts included. On the other networks, PostSyncer cuts the text to the limit when it's sent.

## Video covers

Set `cover_image` on the first content part. Only the first part's cover is used.

### Platform requirements for cover images

| Network | How the cover is picked | Field |
| - | - | - |
| TikTok | A frame of the video | `video_cover_timestamp_ms` |
| YouTube | A picture you upload | `thumbnail` |
| Instagram | A picture you upload (Reels only), or a frame of the video | `thumbnail` or `video_cover_timestamp_ms` |
| Facebook (Reels and video) | A picture you upload | `thumbnail` |

Send TikTok a frame, never a `thumbnail`. Send YouTube and Facebook a `thumbnail` (a media library picture id, or a public picture URL), never a frame. Instagram takes either: a `thumbnail` on a Reel only (on a Story it's left out, with a `thumbnail_error` note), or a frame. Send it one or the other: when both are sent, only the `thumbnail` is tried.

```json theme={null}
"content": [
  { "text": "Two minutes of pouring latte art.", "media": [9052], "cover_image": { "thumbnail": 9053 } }
]
```

For TikTok, `"cover_image": { "video_cover_timestamp_ms": 2500 }` uses the frame at 2.5 seconds.

## Platform-specific settings

Each item in `accounts` can carry `settings` for its network, such as the Instagram post type, the TikTok privacy level, a Pinterest board or who can reply on X. Only the keys for the account's network are used, and every key is optional. All the keys are listed [below](#all-settings-by-network).

### Own media for one account

`settings.media` gives one account its own files instead of the post's. The other accounts keep the post's media.

```json theme={null}
"accounts": [
  { "id": 301 },
  { "id": 305, "settings": { "media": [9052] } }
]
```

Instagram (301) posts the post's photo; TikTok (305) posts only video 9052. On X, Threads, Bluesky and Mastodon the account's media replaces only the first part's media. Each id must be in the workspace's media library, or the request is refused with `422`. The post's video cover isn't used for these files: the network picks its own frame.

### Instagram trial Reels

A trial Reel is shown to non-followers first. Send `reel_trial_enabled: true` with a single video. `graduation_strategy` decides what happens after the trial: `MANUAL` (the default) leaves it to you in the Instagram app, and `SS_PERFORMANCE` shares it with your followers if it does well.

```json theme={null}
{ "id": 301, "settings": { "post_type": "REELS", "reel_trial_enabled": true, "graduation_strategy": "MANUAL" } }
```

Images, carousels and Stories ignore `reel_trial_enabled`.

### Instagram collaborators

`collaborators` invites up to 3 other Instagram accounts. Each gets an invite in Instagram; once they accept, the post shows on their profile too. Usernames work with or without `@`.

```json theme={null}
{ "id": 301, "settings": { "collaborators": ["millstreetbakery"] } }
```

Instagram takes collaborators on feed posts, Reels and carousels, not on Stories. The post goes out whether or not anyone has accepted.

### Pinterest boards

A pin goes to a board. Get the account's boards from [Get an account](/docs/api-reference/accounts/get.md) and send one as `board_id`. Without it, the pin goes to the account's first board. An account with no board gets a new one named `My Pins` when the pin is sent.

```json theme={null}
{ "id": 304, "settings": { "board_id": "549755885175", "title": "Lavender oat latte", "link": "https://haldencoffee.example/menu" } }
```

### X Articles

An X account can post the post as an X Article, a long post with a title, with `article`. The body is the account's own `text` when set, else the post's text, in Markdown. Put library pictures in it as `![alt](media:<id>)`. X gets only the Article and its first comment, as a reply; with the account's own `text`, the post goes to your other networks as it is.

```json theme={null}
{
  "id": 303,
  "settings": {
    "text": "# How we roast\n\nEvery bean we sell is roasted on Mill Lane.\n\n![The roaster](media:9054)",
    "article": { "enabled": true, "title": "How we roast our beans", "cover": 9053 }
  }
}
```

Only X Premium and Premium+ accounts can publish Articles: `can_publish_articles` on [Get an account](/docs/api-reference/accounts/get.md) says whether the account is one. An Article takes pictures only, and one of them as its cover. Without its own `text`, the post must be a single part.

### LinkedIn mentions

LinkedIn tags a person or company only when the text has a tag in LinkedIn's form: `@[Name](urn:li:person:ID)`, `@[Name](urn:li:organization:ID)` or `@[Name](urn:li:organizationBrand:ID)`. A plain "@name" goes out as text. Get the tag from [Find LinkedIn mentions](/docs/api-reference/accounts/linkedin-mentions.md), searching with the account the post goes out from, and paste its `text` as it is.

```json theme={null}
"content": [
  { "text": "Thanks to @[Mill Street Bakery](urn:li:organization:2414183) for the rhubarb buns." }
]
```

* A tag works in `content[].text` and in the LinkedIn account's own text, `settings.title`. In a first comment it goes out as the name.
* Every other network gets just the name: "Thanks to Mill Street Bakery for the rhubarb buns."
* A person who can't be tagged from the account goes out as their name, and the post still goes out. That account's row gets a `mentions_untagged` note.
* The API returns the text as you saved it, tags included.

The [LinkedIn mentions guide](/docs/guides/linkedin-mentions.md) says who can be tagged.

### Different options per network

One request can give each account its own options:

```json theme={null}
"accounts": [
  { "id": 303, "settings": { "reply_settings": "following" } },
  { "id": 305, "settings": { "privacy_level": "SELF_ONLY", "disable_duet": true } },
  { "id": 306, "settings": { "visibility": "unlisted", "spoiler_text": "Menu spoilers" } }
]
```

### All settings by network

The keys of `accounts[].settings`, by network. Only the keys for the account's network are used, so one request can carry options for several networks. Every key is optional.

Every network takes `media`: media library ids this account posts instead of the post's media (on X, Threads, Bluesky and Mastodon: instead of the first part's media). The files are posted in order (the same id twice posts the file twice), and each id must be in the workspace's media library (`422` otherwise). The media objects [Get a post](/docs/api-reference/posts/get.md) returns in `settings.media` are taken too, so settings read from a post can be sent back unchanged. An X Article posts the post's media, not this list.

**X (Twitter) settings**

**text** `string`

Text override for the first tweet. Falls back to the post content.

**reply\_settings** `string` (default: everyone)

Who can reply. Any other value lets everyone reply. One of: `everyone`, `following`, `mentionedUsers`, `subscribers`.

**for\_super\_followers\_only** `boolean` (default: false)

Show the post to Super Followers only.

**quote\_tweet\_id** `string`

ID of a tweet to quote.

**reply** `object`

Post as a reply to another tweet.

**reply properties**

**in\_reply\_to\_tweet\_id** `string`

ID of the tweet to reply to.

**community\_id** `string`

ID of the X Community to post in.

**share\_with\_followers** `boolean` (default: true)

Community posts only: also show the post to your followers.

**poll** `object`

Attach a poll. Set `enabled` to `true`.

**poll properties**

**enabled** `boolean` (default: false)

Turn the poll on.

**options** `string[]`

2 to 4 choices.

**duration\_minutes** `integer` (default: 5)

How long the poll stays open, 5 to 10080 minutes.

**reply\_settings** `string` (default: everyone)

Who can reply to the poll. One of: `everyone`, `following`, `mentionedUsers`, `subscribers`, `verified`.

**article** `object`

Publish as an X Article: a long-form post with a title. The body is this account's `text` when set (it wins over the post content), else the post content, with no tweet length limit. It may use Markdown: `#` and `##` headings, lists, `>` quotes, bold, italic, `~~strikethrough~~`, links, code blocks, tables and `---` dividers. Put images in the text as `![alt](media:<id>)` with a media library id (or a media library link). X gets only the Article and its first comment, as a reply. A thread needs its own `text`: the thread then goes to the other networks. The cover is `cover`, or the post's one image without it; with `cover`, the post's media is for the other networks. Images only: no videos, GIFs or polls. X lets only Premium and Premium+ accounts publish Articles.

**article properties**

**enabled** `boolean` (default: false)

Publish as an Article.

**title** `string`

The Article's title. Required when `enabled` is `true`.

**cover** `integer`

Media library id of the Article's cover image. Without it, the post's one image is the cover.

**media** `integer[]`

This account's own files, as media library ids, instead of the post's media. See [Own media for one account](/docs/api-reference/posts/create.md#own-media-for-one-account).

**Instagram settings**

**post\_type** `string` (default: POST)

`POST`: feed post; several media make a carousel, and a single video still publishes as a Reel. `REELS`: Reel. `STORIES`: Story. Any case is read; `STORY` and `REEL` are read as `STORIES` and `REELS`, and `POSTS`, `FEED`, `PHOTO`, `IMAGE`, `VIDEO`, `CAROUSEL` and `CAROUSEL_ALBUM` as `POST`. Any other value is refused with a 422.

**caption** `string`

Caption override for Instagram. Falls back to the post content.

**reel\_trial\_enabled** `boolean` (default: false)

Publish the Reel as a trial Reel, which Instagram shows to non-followers first. Applies to a single video published as a Reel (`post_type` `REELS`, or `POST` with one video); ignored for images, carousels and Stories.

**graduation\_strategy** `string` (default: MANUAL)

What happens after the trial, when `reel_trial_enabled` is `true`. `MANUAL`: you decide in Instagram whether to share it with your followers. `SS_PERFORMANCE`: Instagram shares it with your followers automatically if it performs well with non-followers. Other values fall back to `MANUAL`.

**collaborators** `string[]` (default: \[])

Up to 3 Instagram usernames to invite as collaborators. A list, or one text with commas between names; a leading `@` or an instagram.com profile link also works. Each collaborator gets an invite in Instagram, and once they accept, the post also shows on their profile. Applies to feed photos, Reels and carousels; ignored for Stories, which Instagram does not take collaborators on. A fourth name, or one that is not a username, is refused with a 422.

**user\_tags** `object[]` (default: \[])

People to tag. Instagram tells them, and the post shows in the Tagged tab of their profile. Works on photos, the files of a carousel (each tag on its own file, never on the carousel), Reels and Stories; a video or a Reel takes the usernames only. A list of usernames, or one text with commas between them, also works. Up to 20 people on one file, counted on the file each tag lands on (`item` and `media_id` naming the same file count once per person). A name that is not a username, a spot outside 0 to 1, `x` without `y`, or more than 20 people on one file is refused with a 422. A tag on a file the post no longer has is not sent, and a tag Instagram refuses is left off while the post still goes out; either way the result gets a `setting_not_applied` note.

**user\_tags properties**

**username** `string` *required*

The person's Instagram username, without `@`. An instagram.com profile link also works.

**x** `number`

Photos: where the person is, from `0` (left edge) to `1` (right edge) of the file as uploaded. Give `x` and `y` together. When Instagram's shape cuts the sides off a feed or carousel photo, the spot moves with the cut, and a spot in the part cut off goes to the nearest edge. A feed or carousel photo tag without them goes in the middle of the photo, a Story photo tag without a spot; videos and Reels don't use them.

**y** `number`

Photos: where the person is, from `0` (top edge) to `1` (bottom edge).

**item** `integer` (default: 1)

Carousels: the file the person is in, `1` for the first.

**media\_id** `integer`

Optional: the media library id of that file. When the post has it, it wins over `item`, so the tag stays on its photo when files are moved.

**share\_to\_feed** `boolean` (default: true)

Reels only: also show the Reel in the feed. `false` shows it in the Reels tab only. Instagram still decides whether a Reel is picked for the Reels tab.

**audio\_name** `string`

Reels only: a name for the Reel's original audio, shown on the Reel instead of "Original audio". Instagram lets it be named once.

**ai\_generated** `boolean` (default: false)

Label the post as made with AI. On a carousel the label goes on the carousel.

**media** `integer[]`

This account's own files, as media library ids, instead of the post's media. See [Own media for one account](/docs/api-reference/posts/create.md#own-media-for-one-account).

**Facebook settings**

**post\_type** `string` (default: POST)

`POST`: feed post. `REELS`: Reel (video only; other media post to the feed). `STORIES`: Story. Any case is read; `STORY` and `REEL` are read as `STORIES` and `REELS`, and `POSTS`, `FEED`, `PHOTO`, `IMAGE`, `VIDEO`, `CAROUSEL` and `CAROUSEL_ALBUM` as `POST`. Any other value is refused with a 422.

**title** `string`

Text override for Facebook. Falls back to the post content.

**link** `string`

Link to attach. Used only on posts without media.

**media** `integer[]`

This account's own files, as media library ids, instead of the post's media. See [Own media for one account](/docs/api-reference/posts/create.md#own-media-for-one-account).

**LinkedIn settings**

**visibility** `string` (default: PUBLIC)

Who can see the post. One of: `PUBLIC`, `CONNECTIONS`.

**link** `string`

Link to attach as an article.

**title** `string`

Text override for LinkedIn. Falls back to the post content. Can tag people and companies: see [LinkedIn mentions](/docs/api-reference/posts/create.md#linkedin-mentions).

**poll** `object`

A poll under the post text, from a person or a Page. Set `enabled` to `true`. LinkedIn takes a poll only as the post's only content: no photos, video or document (the account's own media included) and no `link`. An incomplete poll, or one with media or a link, is refused with a 422.

**poll properties**

**enabled** `boolean` (default: false)

Turn the poll on.

**question** `string`

The question, at most 140 characters. Required. The post text shows above it, mentions included.

**options** `string[]`

2 to 4 choices, each at most 30 characters, all different.

**duration\_minutes** `integer` (default: 10080)

How long votes are taken. One of: `1440` (1 day), `4320` (3 days), `10080` (1 week), `20160` (2 weeks). Any other value is refused with a 422.

**media** `integer[]`

This account's own files, as media library ids, instead of the post's media. See [Own media for one account](/docs/api-reference/posts/create.md#own-media-for-one-account).

**YouTube settings**

**video\_type** `string` (default: video)

One of: `video`, `short`. YouTube itself decides what the video becomes: a square or vertical video up to 3 minutes is a Short, any other is a regular video. `short` only changes the title: with no `title` (or only `#Shorts`), the title is the description or post text with `#Shorts` at the end.

**title** `string`

Video title, at most 100 characters. Without one (or with only `#Shorts`), the title is the `description` setting when it's set, otherwise the post text, cut to fit, with `#Shorts` after it on a Short.

**description** `string`

Video description. Falls back to the post content.

**privacyStatus** `string` (default: public)

Video privacy. One of: `public`, `unlisted`, `private`.

**tags** `string[]`

Video tags, as a list or one string with commas between them. YouTube takes 500 characters in all: each tag, a comma between two, and two more for a tag with a space in it. More is refused with a 422. Repeats and blanks are left out.

**category\_id** `string`

YouTube video category ID.

**playlist\_id** `string`

Add the video to this playlist of the channel once it is up. Playlist ids are in the account's `playlists` ([Get account](/docs/api-reference/accounts/get.md)). If YouTube refuses, the video stays up and the account's result gets a `setting_not_applied` note.

**language** `string`

The language of the title and description, as one of YouTube's language codes, such as `en`, `pt-PT` or `zh-TW`. Hebrew is `iw` on YouTube (`he` is taken too). A code YouTube doesn't offer is refused with a `422` that lists them.

**containsSyntheticMedia** `boolean` (default: false)

The video has realistic altered or synthetic content: a real person saying or doing what they didn't, a real event or place changed, or a realistic scene that didn't happen.

**license** `string` (default: youtube)

Standard YouTube License (`youtube`) or Creative Commons Attribution (`creativeCommon`).

**hasPaidProductPlacement** `boolean`

The video has paid product placement, a sponsorship or an endorsement. Leave it out to say nothing; since November 2026 YouTube no longer takes a missing value as "no".

**embeddable** `boolean` (default: true)

Allow embedding on other sites.

**selfDeclaredMadeForKids** `boolean` (default: false)

Mark the video as made for kids.

**notifySubscribers** `boolean` (default: true)

Tell the channel's subscribers about the new video. Set `false` when uploading many videos at once.

**media** `integer[]`

This account's own files, as media library ids, instead of the post's media. See [Own media for one account](/docs/api-reference/posts/create.md#own-media-for-one-account).

**TikTok settings**

**privacy\_level** `string` (default: PUBLIC\_TO\_EVERYONE)

Who can view the post. One of: `PUBLIC_TO_EVERYONE`, `MUTUAL_FOLLOW_FRIENDS`, `FOLLOWER_OF_CREATOR`, `SELF_ONLY`.

**post\_mode** `string` (default: DIRECT\_POST)

`DIRECT_POST`: publish to the profile. `MEDIA_UPLOAD`: send to the TikTok inbox so the user finishes the post in the TikTok app.

**title** `string`

Photo posts only: post title (TikTok allows 90 characters).

**description** `string`

Caption override for TikTok videos and photo posts. Falls back to the post content.

**disable\_comment** `boolean` (default: false)

Turn off comments.

**disable\_duet** `boolean` (default: false)

Turn off Duets.

**disable\_stitch** `boolean` (default: false)

Turn off Stitches.

**brand\_content\_toggle** `boolean` (default: false)

Paid partnership promoting a third-party brand.

**brand\_organic\_toggle** `boolean` (default: false)

Promotes your own business.

**is\_aigc** `boolean` (default: false)

Label the post as AI-generated content.

**auto\_add\_music** `boolean` (default: false)

Photo posts: let TikTok add background music.

**media** `integer[]`

This account's own files, as media library ids, instead of the post's media. See [Own media for one account](/docs/api-reference/posts/create.md#own-media-for-one-account).

**Pinterest settings**

**board\_id** `string`

Board to pin to. Get board IDs from `boards` in [`GET /accounts/{id}`](/docs/api-reference/accounts/get). Defaults to the account's first board. An account with no boards at all gets a new board named `My Pins` when the pin is sent.

**link** `string`

Destination link for the pin.

**title** `string`

Pin title.

**description** `string`

Pin description. Falls back to the post content.

**board\_section\_id** `string`

A section of the board to pin into. Get section ids from [`GET /accounts/{account}/pinterest/boards/{board}/sections`](/docs/api-reference/accounts/pinterest-board-sections). Send `board_id` too, the board the section is on: without it the request is refused with a 422. Leave it out to pin to the board itself.

**ai\_disclosures** `string[]`

Label the pin as made with AI. `AI_MODIFIED`: made or changed with AI. `SYNTHETIC_PERFORMER`: shows a person made with AI. Either or both; leave it out for none. Any other value is refused with a 422.

**note** `string` *deprecated*

Ignored. Pinterest no longer takes private notes on pins (removed from its API in v5.20, October 2025). Still accepted, so older requests keep working, but never sent.

**published** `boolean` (default: true)

Accepted for compatibility; currently has no effect.

**media** `integer[]`

This account's own files, as media library ids, instead of the post's media. See [Own media for one account](/docs/api-reference/posts/create.md#own-media-for-one-account).

**Threads settings**

**title** `string`

Text override for Threads. Falls back to the post content.

**link\_attachment** `string`

Link preview for text-only posts.

**reply\_control** `string` (default: everyone)

Who can reply, on every post of the thread. One of: `everyone`, `accounts_you_follow` (accounts this account follows), `mentioned_only` (accounts mentioned in the post), `parent_post_author_only` (this account only), `followers_only` (this account's followers). Any other value is refused with a 422. Not sent on a ghost post.

**reply\_approvals** `boolean` (default: false)

Replies wait for this account to approve them before others see them, on every post of the thread. Not sent on a ghost post.

**topic\_tag** `string`

The first post's topic, 1 to 50 characters. A `#` in front is dropped. Threads takes no period or ampersand in a topic: one with either is refused with a 422.

**poll** `object`

A poll on the first post. Set `enabled` to `true`. Threads takes a poll only on a text post: no photos or videos (the account's own media included) and no `link_attachment`. Threads sets how long it runs. An incomplete poll, or one with media or a link, is refused with a 422.

**poll properties**

**enabled** `boolean` (default: false)

Turn the poll on.

**options** `string[]`

2 to 4 choices, each at most 25 characters, all different.

**quote\_post\_id** `string`

The post the first post quotes: a Threads post id, or a link to a post of this account. A link is looked up among this account's posts published with PostSyncer, then among its latest 500 on Threads; not found, the post fails before anything is sent. Threads lets apps quote someone else's post only by its id: a link to another account's post is refused with a 422.

**ai\_generated** `boolean` (default: false)

Label the posts as made with AI. On a carousel the label goes on the carousel. Not sent on a ghost post.

**has\_spoiler** `boolean` (default: false)

Cover the photos and videos until a viewer taps them, on every post of the thread that has some. Text is not covered.

**ghost\_post** `boolean` (default: false)

A ghost post: a text post that is gone after 24 hours. It must be one post on its own: no photos or videos, poll, thread, first comment, `link_attachment`, `topic_tag` or `quote_post_id`, or the request is refused with a 422. `reply_control`, `reply_approvals` and `ai_generated` are not sent on it.

**media** `integer[]`

This account's own files, as media library ids, instead of the post's media. See [Own media for one account](/docs/api-reference/posts/create.md#own-media-for-one-account).

**Telegram settings**

**title** `string`

Text override for Telegram. Falls back to the post content.

**disable\_notification** `boolean` (default: false)

Send silently.

**protect\_content** `boolean` (default: false)

Stop the message from being forwarded or saved.

**pin\_message** `boolean` (default: false)

Pin the post in the channel once it is sent (an album: its first message), as silently as `disable_notification` says. The bot needs the right to edit messages in a channel, or to pin messages in a group. If Telegram refuses, the post stays published and its result carries a `setting_not_applied` note that says how to fix it.

**has\_spoiler** `boolean` (default: false)

Cover the photos, videos and GIF until a viewer taps them. Text-only posts ignore it.

**show\_caption\_above\_media** `boolean` (default: false)

Show the text above the photos, videos or GIF instead of under them. Text-only posts ignore it.

**media** `integer[]`

This account's own files, as media library ids, instead of the post's media. See [Own media for one account](/docs/api-reference/posts/create.md#own-media-for-one-account).

**Bluesky settings**

**title** `string`

Text override for Bluesky. Falls back to the post content.

**website\_card** `object`

Link card shown under the post.

**website\_card properties**

**uri** `string`

Link URL.

**title** `string`

Card title.

**description** `string`

Card description.

**languages** `string[]`

The languages the post is written in, up to 3, as ISO 639-1 codes such as `en` (a region such as `pt-BR` is taken too). A list, or one text with commas between the codes. They go on every post of the thread, and Bluesky uses them to show the post to people who read those languages. A code that can't be one, or more than 3, is refused with a `422`.

**reply\_rules** `string[]`

Who can reply to the thread. Any of `mentioned` (people mentioned in the post), `followers` (people who follow this account) and `following` (people this account follows), or `["nobody"]` alone to turn replies off. Leave it out, or send `[]`, for everyone. It is set on the thread's first post. If Bluesky refuses it, the post stays published and its result carries a `setting_not_applied` note.

**allow\_quotes** `boolean` (default: true)

`false` stops other people quoting the posts, on every post of the thread and on its first comment. If Bluesky refuses it, the post stays published and its result carries a `setting_not_applied` note.

**content\_labels** `string[]`

Content warnings on the post's media or link card, so Bluesky blurs it for people who asked for that: one of `sexual` (suggestive), `nudity` or `porn` (adult), and/or `graphic-media` (violence or gore). Bluesky labels media, not text: a post of the thread without media or a link card is sent without them. Two adult labels together are refused with a `422`.

**quote\_post\_url** `string`

The post the first post quotes: its link (`https://bsky.app/profile/{handle or DID}/post/{id}`) or its `at://` address. The quote sits next to the post's media or link card. A link that is not a Bluesky post is refused with a `422`. If Bluesky can't find the post when it is sent (deleted, or a wrong link), nothing is posted and the post fails with the reason.

**media** `integer[]`

This account's own files, as media library ids, instead of the post's media. See [Own media for one account](/docs/api-reference/posts/create.md#own-media-for-one-account).

**Mastodon settings**

**text** `string`

Text override for Mastodon. Falls back to the post content.

**visibility** `string` (default: public)

Who can see the post. One of: `public`, `unlisted`, `private`, `direct`.

**spoiler\_text** `string`

Content warning shown before the post (up to 500 characters).

**sensitive** `boolean` (default: false)

Mark attached media as sensitive.

**language** `string`

The language the post is written in, as an ISO 639-1 code such as `en`. Leave it out, or send `auto` or an empty text, to let Mastodon guess it.

**poll** `object`

Attach a poll to the first post of the thread. Set `enabled` to `true`. A poll Mastodon would refuse (fewer than 2 or more than 4 choices, a choice over 50 characters, two exactly the same) is refused with a `422`. Mastodon servers before 4.6 take a poll only on a post without media: such a server refuses the post when it is sent, and the post fails with words that say so.

**poll properties**

**enabled** `boolean` (default: false)

Turn the poll on.

**options** `string[]`

2 to 4 choices, each at most 50 characters (an emoji counts as one), no two exactly the same (`Yes` and `yes` are two choices).

**duration\_minutes** `integer` (default: 1440)

How long votes are taken: a whole number of minutes from 5 to 43829 (a month), or the request is refused with a `422`. Default 1440, a day.

**multiple** `boolean` (default: false)

Voters may pick more than one choice.

**hide\_totals** `boolean` (default: false)

Hide the vote counts until the poll ends.

**in\_reply\_to\_id** `string`

ID of the status to reply to.

**quoted\_status\_id** `string`

ID of the status to quote (servers that support quote posts).

**quote\_approval\_policy** `string`

Who may quote this post. Sent only together with `quoted_status_id`, and only for `public` or `unlisted` posts. One of: `public`, `followers`, `nobody`.

**media** `integer[]`

This account's own files, as media library ids, instead of the post's media. See [Own media for one account](/docs/api-reference/posts/create.md#own-media-for-one-account).

**Google Business Profile settings**

**post\_type** `string` (default: POST)

`POST` publishes a local post on the location. `GALLERY` adds one photo or video to the location's gallery. One of: `POST`, `GALLERY`.

**topic\_type** `string` (default: STANDARD)

Kind of local post. `STANDARD` is an update; `EVENT` and `OFFER` need `event` dates and a title. One of: `STANDARD`, `EVENT`, `OFFER`. Only `STANDARD` posts may repeat.

**text** `string`

Text override for Google Business Profile, up to 1,500 characters. Falls back to the post content.

**call\_to\_action** `object`

Button under the post: `action_type` (one of `BOOK`, `ORDER`, `SHOP`, `LEARN_MORE`, `SIGN_UP`, `CALL`) and `url`. A `CALL` button takes no URL.

**event** `object`

Title and dates for an `EVENT` or `OFFER` post: `title` (up to 58 characters), `start_date` and `end_date` (`YYYY-MM-DD`), `start_time` and `end_time` (`HH:MM`, 24-hour).

**offer** `object`

Extra details for an `OFFER` post: `coupon_code`, `redeem_url` and `terms`.

**gallery\_category** `string`

For `post_type` `GALLERY`: where the item goes in the gallery. One of: `COVER`, `PROFILE`, `LOGO`, `EXTERIOR`, `INTERIOR`, `PRODUCT`, `AT_WORK`, `FOOD_AND_DRINK`, `MENU`, `COMMON_AREA`, `ROOMS`, `TEAMS`, `ADDITIONAL`. A gallery video goes with `ADDITIONAL`.

> [!NOTE]
>
> A post carries 0 or 1 photo (JPG or PNG, 10 KB to 5 MB, at least 250x250) and no video. A gallery item is exactly 1 photo or 1 video (video up to 30 seconds, up to 75 MB, at least 720p).

**media** `integer[]`

This account's own files, as media library ids, instead of the post's media. See [Own media for one account](/docs/api-reference/posts/create.md#own-media-for-one-account).

## Accounts that need reconnecting

An account that needs reconnecting is left out of a scheduled or published post, and the post goes to the other accounts. The left-out accounts are in `skipped_accounts`, each with a `reconnect_url`. When every account needs reconnecting, the request is refused with `422` under `accounts.N.id`, with the reconnect link in the message. A draft keeps all its accounts.

## Networks that need a photo or video

Instagram, TikTok, Pinterest and YouTube can't post text alone, and neither can a Google Business `gallery` post or a Facebook `STORIES` or `REELS` post. YouTube takes a video only, and so does a Reel (`REELS`) on Instagram or Facebook: with photos alone it would go out as a feed post, so it is refused with `422`, as a draft too ("Instagram needs a video for a reel. This post has only photos: add a video, or choose Post to share them."). A draft for them with nothing to post there is saved, so the photo or video can be added later, and the answer lists each such account in `needs_media` with `account_id`, `platform` and a `message` to show the user ("Instagram needs a photo or video before this post can be scheduled or published.", "Facebook needs a video for a reel before this post can be scheduled or published."). An account's own media (`accounts[].settings.media`) counts for that account. Scheduling or publishing such a post is refused with `422`, as the errors below say. `needs_media` is `[]` when nothing is missing.

## Default accounts the plan leaves out

Sent with no `accounts`, a post goes to the workspace's default accounts. When the owner's plan doesn't let new posts go to one of them (its `plan_allows_posting` is `false`, as on Free outside a first week), a scheduled or published post leaves it out instead of being refused, and goes to the others. It is in `skipped_accounts` with the same fields: `reason` is `Not on the free plan's 2 accounts`, `reconnect_url` is the Accounts page, where the owner can pick other accounts, and `message` also links the pricing page. A draft keeps every default account. When every default account is outside the plan, nothing is left out and the request is refused with `403`, `error: plan_limit_reached` and `limit: free_accounts`. See [Plan limits](/docs/plan-limits.md#accounts-on-free).

## Errors

| Status | `error` | When | Retry? |
| - | - | - | - |
| 401 | | No API key, or not a valid one. | No: fix the key. |
| 403 | | The key lacks `posts:create`, or the `posts:schedule` or `posts:publish` the `schedule_type` needs; `message` names it. Or the key's user is inactive. | No: grant it in Settings → API, or save a draft. |
| 403 | | Your role in the workspace can't create posts. | No. |
| 403 | `plan_limit_reached` | Free plan: this month's 20 posts are used (`limit: posts`), the post has labels or a campaign (`limit: labels`, `limit: campaigns`), or it goes to an account whose `plan_allows_posting` is `false` (`limit: free_accounts`). | After `resets_at` for posts; a draft works now. For `free_accounts`, leave the account out. |
| 422 | | A field is missing or wrong, the time has passed, `schedule` has no `schedule_for` and no queue time is free, there's no account to post to, every account needs reconnecting, a file is over a network's limit, or a network needs media. `errors` has the messages by field. | No: fix the request. |
| 422 | | Only `message`: "An error occurred while processing your post. Please try again." | Yes. |
| 429 | | More than 60 requests a minute. | Yes, after `Retry-After` seconds. |

## Related

* [The post object](/docs/api-reference/posts/object.md): every field of the answer.
* [Update a post](/docs/api-reference/posts/update.md): change it, or move it to another time.
* [Upload a file](/docs/api-reference/media/upload-file.md): put media in the library first.
* [Post events](/docs/api-reference/webhooks/overview.md#post-events): hear when it goes out or fails.


## OpenAPI

````yaml POST /posts
openapi: 3.0.3
info:
  title: PostSyncer API
  description: >-
    Post to 12 social networks from your code: posts, media, comments,
    analytics, webhooks and more.
  version: 1.0.0
servers:
  - url: https://postsyncer.com/api/v1
security:
  - bearerAuth: []
tags:
  - name: Workspaces
    description: The workspaces the key can reach.
  - name: Accounts
    description: Connected social accounts, links to connect more, and disconnecting them.
  - name: Posts
    description: Drafts, scheduled and published posts, approvals and a post's history.
  - name: Post settings
    description: A post's auto-plug, comment moderation and contact collection.
  - name: Media
    description: >-
      The media library: file uploads, URL imports, and reading videos and
      social posts' files.
  - name: Folders
    description: Folders that organise the media library.
  - name: Comments
    description: >-
      Comments on your posts: reading, replying, editing, hiding, deleting and
      syncing them.
  - name: Reviews
    description: Google Business Profile reviews and your replies to them.
  - name: Analytics
    description: Workspace, account and post performance.
  - name: Brand
    description: >-
      A workspace's brand: identity, voice, look, accounts, competitors,
      learnings and rules.
  - name: Labels
    description: Labels used to tag posts.
  - name: Campaigns
    description: Campaigns used to group posts.
  - name: Snippets
    description: Saved snippets and hashtag groups to drop into posts.
  - name: Webhooks
    description: Signed webhook endpoints that get your notification events.
  - name: Billing
    description: >-
      The owner's plan, invoices and the links that pay for, change or cancel
      it.
  - name: Team
    description: A workspace's teammates and invitations, and their roles.
  - name: Notifications
    description: >-
      Your bell and notification settings, and the workspace's Slack, Discord
      and Telegram channels.
  - name: Blog-to-social
    description: Blog feeds that turn a workspace's new articles into posts.
  - name: Products
    description: Products the workspace's posts can promote.
  - name: Contacts
    description: People who commented on the workspace's posts, and the lists they are on.
  - name: Profile
    description: 'The key''s user: their name and sign-in email.'
  - name: API keys
    description: 'Your API keys: listing and deleting them.'
  - name: Agent sign-up
    description: >-
      An AI agent signs a person up with a code emailed to them, and gets their
      first key. No key needed.
paths:
  /posts:
    post:
      tags:
        - Posts
      summary: Create a post
      description: >-
        Needs `posts:create`. `schedule` also needs `posts:schedule`, and
        `publish_now` also needs `posts:publish`; a key with only `posts:create`
        can save drafts. Send an optional `Idempotency-Key` header (up to 128
        characters, valid for 24 hours per user) so retrying after a network
        timeout returns the originally created post (`200` with
        `Idempotency-Replayed: true`) instead of creating a duplicate. The
        answer is the post as saved, with `skipped_accounts`: the accounts left
        out because they need reconnecting, or, when you send no `accounts`,
        default accounts the owner's plan doesn't let new posts go to. It also
        has `needs_media`: the accounts whose network can't post text alone
        (Instagram, TikTok, Pinterest, YouTube) and that have no photo or video.
        A draft is saved that way; scheduling or publishing it is refused until
        it has one. On the Free plan a workspace owner gets 20 posts a month,
        counted from their sign-up day: each post that is scheduled, published
        or sent for approval counts once, and drafts are free. Past that, the
        post is refused with `403` `plan_limit_reached`, `limit: posts`, and
        nothing is saved; `resets_at` says when the count starts again. Labels
        and campaigns are on paid plans: on Free, adding one is refused with
        `403` and `limit: labels` or `limit: campaigns`. Outside a first week, a
        Free owner's new posts go to 2 accounts: scheduling or publishing to
        another (its `plan_allows_posting` is `false`) is refused with `403` and
        `limit: free_accounts`, and a draft works. Repeats work on every plan;
        on Free each repeat that goes out counts as a post, and one that goes
        out after the month's 20 are used fails when it is sent.
      operationId: createPost
      parameters:
        - name: Idempotency-Key
          in: header
          required: false
          description: >-
            Optional key, up to 128 characters, kept for 24 hours per user.
            Sending the same body again with the same key returns the post the
            first request made (`200` with `Idempotency-Replayed: true`) instead
            of a duplicate. A key belongs to one body: the same key with a
            different body is refused with `422`, and a key over 128 characters
            is refused with `422`. While the first request is still running, or
            when the post it made was deleted since, the answer is `409`.
          schema:
            type: string
            maxLength: 128
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
                - workspace_id
                - content
                - schedule_type
              properties:
                workspace_id:
                  type: integer
                  description: >-
                    The post's workspace. One the key can reach (see [List
                    workspaces](/api-reference/workspaces/list)).
                content:
                  type: array
                  minItems: 1
                  items:
                    $ref: '#/components/schemas/PostContentThread'
                  description: At least one part with text or media.
                schedule_type:
                  type: string
                  enum:
                    - draft
                    - schedule
                    - publish_now
                  description: >-
                    `draft` saves it and sends nothing; it needs only
                    `posts:create`. `schedule` goes out at `schedule_for`, or at
                    the workspace's next free queue time without it, and needs
                    `posts:schedule`; with no `schedule_for` and no free queue
                    time, it is refused with `422` under `schedule_for` and no
                    post is made. `publish_now` goes out now and needs
                    `posts:publish`. If your role in the workspace can't
                    publish, `schedule` and `publish_now` are sent for approval
                    instead (`PENDING_APPROVAL`), and a `schedule` with no
                    `schedule_for` and no free queue time waits with no time:
                    the approver picks when it goes out.
                schedule_for:
                  type: object
                  nullable: true
                  allOf:
                    - $ref: '#/components/schemas/PostScheduleFor'
                  description: >-
                    When the post goes out, with `schedule`. Leave it out to
                    take the workspace's next free queue time: with none free,
                    the post is refused with `422` under `schedule_for`, or, if
                    your role can't publish, sent for approval with no time.
                accounts:
                  type: array
                  items:
                    $ref: '#/components/schemas/PostAccount'
                  description: >-
                    The accounts to post to, with their options. Leave it out
                    for the workspace's default accounts. An account that needs
                    reconnecting is left out of a scheduled or published post,
                    which still goes to the others, and is listed in
                    `skipped_accounts`. When every account needs reconnecting
                    the request is refused (`422`). A draft keeps them. Left
                    out, a default account the owner's plan doesn't let new
                    posts go to (its `plan_allows_posting` is `false`, as on
                    Free outside a first week) is left out of a scheduled or
                    published post the same way, instead of the post being
                    refused; a draft keeps every default account. When every
                    default account is outside the plan, nothing is left out:
                    the request is refused with `403` `plan_limit_reached` and
                    `limit: free_accounts`.
                labels:
                  type: array
                  items:
                    type: integer
                  description: 'Label ids from the workspace. Paid plans only. '
                campaign_id:
                  type: integer
                  nullable: true
                  description: 'A campaign id from the workspace. Paid plans only. '
                repeatable:
                  type: boolean
                  nullable: true
                  description: 'True to repeat the post after it first goes out. '
                repeatable_times:
                  type: integer
                  minimum: 1
                  maximum: 30
                  description: >-
                    How many times to repeat it after the first time (1 posts it
                    once more). Needed with `repeatable: true`.
                repeatable_gap:
                  type: integer
                  minimum: 1
                  maximum: 100
                  description: >-
                    Time between repeats, in `repeatable_gap_unit`. Needed with
                    `repeatable: true`.
                repeatable_gap_unit:
                  type: string
                  enum:
                    - minutes
                    - hours
                    - days
                    - weeks
                    - months
                  description: >-
                    The unit of `repeatable_gap`. Needed with `repeatable:
                    true`.
                repeatable_accounts:
                  type: array
                  items:
                    type: integer
                  description: >-
                    Only with `repeatable: true`: the accounts the repeats go
                    to. Leave it out for every account of the post.
                auto_plug:
                  allOf:
                    - $ref: '#/components/schemas/PostAutoPlugInput'
                  description: >-
                    A reply posted once the post reaches a number of likes,
                    reposts, replies or views.
            examples:
              default:
                summary: Schedule a post with a first comment
                value:
                  workspace_id: 12
                  content:
                    - text: >-
                        Our spring menu starts today. The lavender oat latte is
                        back, and so is the rhubarb bun.
                      media:
                        - https://cdn.postsyncer.com/examples/latte-art.jpg
                    - text: Find us at 14 Mill Lane, open 7 to 4 every day.
                      is_first_comment: true
                  schedule_type: schedule
                  schedule_for:
                    date: '2030-03-15'
                    time: '09:00'
                    timezone: Europe/London
                  accounts:
                    - id: 301
                      settings:
                        post_type: POST
                    - id: 302
              draft:
                summary: Save a draft
                value:
                  workspace_id: 12
                  content:
                    - text: >-
                        Our spring menu starts today. The lavender oat latte is
                        back, and so is the rhubarb bun.
                      media:
                        - 9051
                  schedule_type: draft
                  accounts:
                    - id: 301
              publish_now:
                summary: Publish now
                value:
                  workspace_id: 12
                  content:
                    - text: Fresh rhubarb buns are out of the oven.
                      media:
                        - 9051
                  schedule_type: publish_now
                  accounts:
                    - id: 301
              next_queue_time:
                summary: Schedule at the next free queue time
                value:
                  workspace_id: 12
                  content:
                    - text: >-
                        Our spring menu starts today. The lavender oat latte is
                        back, and so is the rhubarb bun.
                      media:
                        - 9051
                  schedule_type: schedule
                  accounts:
                    - id: 301
                    - id: 302
              repeat:
                summary: Repeat every week, 4 more times
                value:
                  workspace_id: 12
                  content:
                    - text: Two-for-one flat whites every Friday morning in March.
                      media:
                        - 9051
                  schedule_type: schedule
                  schedule_for:
                    date: '2030-03-01'
                    time: '08:00'
                  repeatable: true
                  repeatable_times: 4
                  repeatable_gap: 1
                  repeatable_gap_unit: weeks
                  accounts:
                    - id: 301
      responses:
        '200':
          description: >-
            A retry with the same `Idempotency-Key` and body: the post the first
            request made, as it is now. The `Idempotency-Replayed: true` header
            says so; `skipped_accounts` is empty on a replay.
          headers:
            Idempotency-Replayed:
              description: >-
                `true` when this answer replays an earlier request with the same
                key.
              schema:
                type: string
                enum:
                  - 'true'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PostWithSkippedAccounts'
              examples:
                default:
                  $ref: '#/components/examples/PostScheduledSaved'
        '201':
          description: The post was saved.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PostWithSkippedAccounts'
              examples:
                default:
                  $ref: '#/components/examples/PostScheduledSaved'
                account_left_out:
                  summary: Scheduled without an account that needs reconnecting
                  value:
                    id: 4182
                    content:
                      - text: >-
                          Our spring menu starts today. The lavender oat latte
                          is back, and so is the rhubarb bun.
                        media:
                          - id: 9051
                            workspace_id: 12
                            folder_id: null
                            name: latte-art.jpg
                            url: https://cdn.postsyncer.com/examples/latte-art.jpg
                            thumb_url: >-
                              https://cdn.postsyncer.com/examples/latte-art-thumb.jpg
                            medium_url: >-
                              https://cdn.postsyncer.com/examples/latte-art-medium.jpg
                            mime_type: image/jpeg
                            size: 482113
                            is_processing: false
                            type: image
                            ai_generated_id: null
                            is_reference: false
                            progress: 100
                            alt: Latte art in a blue cup
                            duration_seconds: null
                        cover_image: null
                        is_first_comment: false
                        first_comment_delay: null
                      - text: Find us at 14 Mill Lane, open 7 to 4 every day.
                        media: []
                        cover_image: null
                        is_first_comment: true
                        first_comment_delay: 1
                    status: SCHEDULED
                    content_version: 1
                    posted_on: []
                    scheduled_at: 2030-03-15 09:00
                    repeatable: null
                    repeatable_times: null
                    repeatable_gap: null
                    repeatable_gap_unit: null
                    repeatable_accounts: null
                    remaining_posts: null
                    comments_settings: null
                    contact_collection_settings: null
                    created_at: 2030-03-01 10:24
                    updated_at: 2030-03-01 10:24
                    workspace:
                      id: 12
                      owner_id: 7
                      name: Halden Coffee
                      type: BRAND
                      logo: >-
                        https://cdn.postsyncer.com/examples/halden-coffee-logo.png
                      timezone: Europe/London
                      queue_slot:
                        '09:00':
                          time_24: '09:00'
                          time_12: 9:00 am
                          days:
                            - true
                            - true
                            - true
                            - true
                            - true
                            - false
                            - false
                      is_auto_repost_enabled_by_default: false
                      auto_repost_settings:
                        repeatable_gap: 6
                        repeatable_gap_unit: hours
                        repeatable_times: 2
                      is_auto_plug_enabled_by_default: false
                      auto_plug_settings: []
                      comments_settings:
                        remove_profanity: false
                        remove_negativity: false
                        remove_all_comments: false
                        remove_custom_topics: false
                        custom_topics_list: []
                        remove_urls: false
                        remove_emails: false
                        remove_phones: false
                        remove_mentions: false
                        mentions_list: []
                        remove_hashtags: false
                        hashtags_list: []
                        remove_keywords: false
                        keywords_list: []
                        ai_reply: false
                      is_comment_moderation_enabled: false
                      credits: 240
                    labels: []
                    campaign: null
                    platforms:
                      - platform: instagram
                        account_id: 301
                        posted_on: []
                        status: PENDING
                        settings:
                          post_type: POST
                          caption: null
                          reel_trial_enabled: false
                          graduation_strategy: MANUAL
                          collaborators: []
                        notes: []
                    auto_plug: null
                    skipped_accounts:
                      - account_id: 302
                        platform: linkedin
                        username: Halden Coffee
                        reason: The member's access token has expired.
                        reconnect_url: https://app.postsyncer.com/accounts
                        message: >-
                          Left out of this post: LinkedIn account Halden Coffee
                          (#302) needs reconnecting in PostSyncer before it can
                          post. LinkedIn said: The member's access token has
                          expired. Reconnect it on the Accounts page of
                          workspace "Halden Coffee":
                          https://app.postsyncer.com/accounts Then add it to the
                          post again.
                    needs_media: []
        '401':
          $ref: '#/components/responses/Unauthorized401'
        '403':
          description: >-
            The key lacks a permission this needs (`message` names it), its user
            is inactive, your role in the post's workspace doesn't allow it (a
            client can't create, edit or delete posts), or the owner's plan
            doesn't allow it (`plan_limit_reached`). Nothing was saved.
          content:
            application/json:
              schema:
                anyOf:
                  - $ref: '#/components/schemas/PlanLimitError'
                  - $ref: '#/components/schemas/Error'
              examples:
                missing_permission:
                  summary: The key lacks posts:schedule
                  value:
                    message: >-
                      This API key does not have the "posts:schedule"
                      permission. Edit the key in PostSyncer under Settings →
                      API to grant it.
                role:
                  summary: The role can't create posts
                  value:
                    message: >-
                      Your role in the workspace "Halden Coffee" does not allow
                      you to create posts. Ask the workspace owner or a manager
                      to do it, or to change your role.
                posts_used_up:
                  summary: 'Free: this month''s 20 posts are used'
                  value:
                    message: >-
                      You've used 20 of 20 posts this month on the free plan.
                      Upgrade for unlimited posts, or come back on Mar 21 when
                      your posts reset. Drafts are free.
                    owner_plan: false
                    error: plan_limit_reached
                    limit: posts
                    used: 20
                    allowed: 20
                    plan: free
                    resets_at: '2030-03-21T00:00:00+00:00'
                    upgrade_url: >-
                      https://app.postsyncer.com/dashboard?action=settings&section=billing
                    upgrade_plan:
                      plan: starter-v2
                      name: Starter
                      monthly_price: 29
                      yearly_price: 24
                      accounts: 10
                      accounts_per_workspace: false
                labels_paid:
                  summary: 'Free: labels are paid'
                  value:
                    message: Labels are on paid plans. Upgrade to use labels.
                    owner_plan: false
                    error: plan_limit_reached
                    limit: labels
                    used: 0
                    allowed: 0
                    plan: free
                    resets_at: null
                    upgrade_url: >-
                      https://app.postsyncer.com/dashboard?action=settings&section=billing
                    upgrade_plan:
                      plan: starter-v2
                      name: Starter
                      monthly_price: 29
                      yearly_price: 24
                      accounts: 10
                      accounts_per_workspace: false
                campaigns_paid:
                  summary: 'Free: campaigns are paid'
                  value:
                    message: Campaigns are on paid plans. Upgrade to use campaigns.
                    owner_plan: false
                    error: plan_limit_reached
                    limit: campaigns
                    used: 0
                    allowed: 0
                    plan: free
                    resets_at: null
                    upgrade_url: >-
                      https://app.postsyncer.com/dashboard?action=settings&section=billing
                    upgrade_plan:
                      plan: starter-v2
                      name: Starter
                      monthly_price: 29
                      yearly_price: 24
                      accounts: 10
                      accounts_per_workspace: false
                inactive_account:
                  summary: The key's user is inactive
                  value:
                    message: Your account is inactive.
        '409':
          description: >-
            The same `Idempotency-Key` is still being used by a request that
            hasn't finished (try again in a moment), or the post it made has
            since been deleted (use a new key to make it again).
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              examples:
                in_progress:
                  summary: The first request is still running
                  value:
                    message: >-
                      A request with this Idempotency-Key is already in
                      progress. Retry in a moment.
                deleted:
                  summary: The post the key made was deleted
                  value:
                    message: >-
                      The post this Idempotency-Key created has since been
                      deleted. Use a new key to create it again.
        '422':
          description: >-
            The request didn't pass validation, and nothing was saved. `errors`
            has the messages by field. `schedule` with no `schedule_for` when no
            queue time is free is refused under `schedule_for`, and no post is
            made; if your role can't publish, the post is sent for approval with
            no time instead. Rarely, a save that fails for another reason
            answers `422` with only `message`; try again. The same
            `Idempotency-Key` with a different body, or a key over 128
            characters, is refused with `422` too.
          content:
            application/json:
              schema:
                anyOf:
                  - $ref: '#/components/schemas/ValidationError'
                  - $ref: '#/components/schemas/Error'
              examples:
                missing_fields:
                  summary: Fields missing or wrong
                  value:
                    message: The workspace id field is required. (and 2 more errors)
                    errors:
                      workspace_id:
                        - The workspace id field is required.
                      content:
                        - The content field is required.
                      schedule_type:
                        - The selected schedule type is invalid.
                time_passed:
                  summary: The time has passed
                  value:
                    message: >-
                      The scheduled date must be today or a future date. (and 1
                      more error)
                    errors:
                      schedule_for.date:
                        - The scheduled date must be today or a future date.
                      schedule_for.time:
                        - The scheduled time must be in the future.
                no_accounts:
                  summary: Scheduled with no account
                  value:
                    message: >-
                      Select at least one account to post to, or save the post
                      as a draft.
                    errors:
                      accounts:
                        - >-
                          Select at least one account to post to, or save the
                          post as a draft.
                every_account_needs_reconnect:
                  summary: Every account needs reconnecting
                  value:
                    message: >-
                      Instagram account haldencoffee (#301) needs reconnecting
                      in PostSyncer before it can post. Its sign-in has expired
                      and can't be renewed. Reconnect it on the Accounts page of
                      workspace "Halden Coffee":
                      https://app.postsyncer.com/accounts Or leave it out of
                      this post, or save the post as a draft.
                    errors:
                      accounts.0.id:
                        - >-
                          Instagram account haldencoffee (#301) needs
                          reconnecting in PostSyncer before it can post. Its
                          sign-in has expired and can't be renewed. Reconnect it
                          on the Accounts page of workspace "Halden Coffee":
                          https://app.postsyncer.com/accounts Or leave it out of
                          this post, or save the post as a draft.
                media_required:
                  summary: The network needs media
                  value:
                    message: >-
                      Instagram requires media. Please upload some media to
                      continue.
                    errors:
                      content:
                        - >-
                          Instagram requires media. Please upload some media to
                          continue.
                no_free_slot:
                  summary: Scheduled with no time, and no queue time is free
                  value:
                    message: >-
                      There are no available queue slots to schedule to. Send
                      schedule_for with a date and time, or add queue times to
                      the workspace.
                    errors:
                      schedule_for:
                        - >-
                          There are no available queue slots to schedule to.
                          Send schedule_for with a date and time, or add queue
                          times to the workspace.
                save_failed:
                  summary: The save failed
                  value:
                    message: >-
                      An error occurred while processing your post. Please try
                      again.
                idempotency_key_reused:
                  summary: The key was used with a different body
                  value:
                    message: >-
                      This Idempotency-Key was already used with a different
                      request body. Use a new key for a different post.
        '429':
          $ref: '#/components/responses/RateLimited429'
components:
  schemas:
    PostContentThread:
      type: object
      description: >-
        One part of the post. It needs `text` or `media`. More parts make a
        thread on X, Threads, Bluesky and Mastodon; the other networks get the
        parts joined into one text, with two blank lines between them (the first
        comment left out). One part may be the first comment
        (`is_first_comment`).
      properties:
        text:
          type: string
          nullable: true
          description: >-
            The text. To tag a person or company on LinkedIn, put the `text`
            from [Find LinkedIn
            mentions](/api-reference/accounts/linkedin-mentions) in it, like
            `@[Jane Doe](urn:li:person:A1b2C3d4E5)`; a plain "@name" is not a
            tag. Other networks get just the name.
        media:
          type: array
          description: >-
            The part's files, in order: media library ids, public URLs, or both.
            A URL is copied into the media library when the post is saved, so a
            signed or expiring link is fine; Dropbox and Google Drive share
            links work when anyone with the link can view the file. A URL that
            can't be downloaded, isn't an allowed type, is over 500 MB or takes
            longer than 75 seconds is refused with `422` naming it, and nothing
            is saved. Documents (PDF, DOC, DOCX, PPT, PPTX) go to LinkedIn only,
            one per post, listed first.
          items:
            oneOf:
              - type: integer
                description: >-
                  A media library id from [Upload a
                  file](/api-reference/media/upload-file) or [Import from a
                  URL](/api-reference/media/upload-url), in the post's
                  workspace.
              - type: string
                format: uri
                description: A public link to a picture, video or document.
        cover_image:
          type: object
          nullable: true
          allOf:
            - $ref: '#/components/schemas/PostCoverImage'
        is_first_comment:
          type: boolean
          nullable: true
          description: >-
            True to post this part as the first comment, after the post goes
            out: a comment on Instagram, Facebook, LinkedIn and YouTube, a reply
            in the thread on X, Threads, Bluesky and Mastodon. The other
            networks don't get it. Only one part may be the first comment, and
            another part must be the post.
        first_comment_delay:
          type: integer
          nullable: true
          minimum: 0
          maximum: 10080
          description: >-
            Minutes after publishing to post the first comment; 1 when left out.
            On X, Threads, Bluesky and Mastodon, `0` posts it as the thread's
            next reply while the post goes out.
          default: 1
    PostScheduleFor:
      type: object
      nullable: true
      description: >-
        When the post goes out: a `date` and a `time`, read in `timezone` or the
        workspace's timezone. Each request's `schedule_for` says what leaving it
        out does.
      required:
        - date
        - time
      properties:
        date:
          type: string
          format: date
          description: '`Y-m-d`, today or later.'
          example: '2030-03-15'
        time:
          type: string
          description: '`H:i`, 24-hour, in the future.'
          pattern: ^([01]\d|2[0-3]):[0-5]\d$
          example: '09:00'
        timezone:
          type: string
          nullable: true
          description: >-
            The timezone of `date` and `time`, like `Europe/London`. Leave it
            out for the workspace's. It never changes the workspace's timezone.
          example: Europe/London
    PostAccount:
      type: object
      required:
        - id
      properties:
        id:
          type: integer
          description: >-
            The account's id, from [List
            accounts](/api-reference/accounts/list). `account_id` works too.
        settings:
          allOf:
            - $ref: '#/components/schemas/PostAccountSettings'
          description: >-
            Options for this account's network. Only the keys for its network
            are used, so one request can carry options for several networks.
            Every key is optional.
      description: An account to post to, with its own options.
    PostAutoPlugInput:
      type: object
      description: >-
        A reply posted on the post once it reaches a number of likes, reposts,
        replies or views. With `enabled: true` it needs `name`, `reply_text` and
        at least one threshold that is on with a count of 1 or more.
      required:
        - enabled
      properties:
        enabled:
          type: boolean
          description: True to turn the plug on; false turns it off and takes nothing else.
        id:
          type: string
          description: Your id for the plug. One is made when left out.
        name:
          type: string
          description: A name for the plug. Needed when `enabled` is true.
        is_default:
          type: boolean
          default: false
        reply_text:
          type: string
          description: The reply to post. Needed when `enabled` is true.
        likes:
          $ref: '#/components/schemas/PostAutoPlugThresholdInput'
        reposts:
          $ref: '#/components/schemas/PostAutoPlugThresholdInput'
        replies:
          $ref: '#/components/schemas/PostAutoPlugThresholdInput'
        views:
          $ref: '#/components/schemas/PostAutoPlugThresholdInput'
    PostWithSkippedAccounts:
      description: >-
        The post as saved, the accounts left out of it, and the accounts that
        still need a photo or video before it can go out.
      allOf:
        - $ref: '#/components/schemas/Post'
        - type: object
          required:
            - skipped_accounts
            - needs_media
          properties:
            skipped_accounts:
              type: array
              items:
                $ref: '#/components/schemas/SkippedAccount'
              description: >-
                Accounts left out because they need reconnecting, or, on a post
                made with no `accounts`, default accounts the owner's plan
                doesn't let new posts go to; the post still goes to the others.
                `[]` when none was left out.
            needs_media:
              type: array
              items:
                $ref: '#/components/schemas/NeedsMediaAccount'
              description: >-
                Accounts whose network can't post text alone (Instagram, TikTok,
                Pinterest, YouTube, a Google Business gallery item, a Facebook
                Story or Reel; a Reel needs a video) and that have no photo or
                video to post. A draft is saved this way, but scheduling or
                publishing it is refused until it has one, and a retried post
                fails there again. Add a photo or video to the post (or to that
                account's own `media`), or tell the user. `[]` when none.
    PlanLimitError:
      type: object
      description: >-
        403: the workspace owner's plan doesn't include this, or its limit is
        used up. Nothing was saved. `limit` says which.
      required:
        - message
        - owner_plan
        - error
        - limit
        - used
        - allowed
        - plan
        - resets_at
        - upgrade_url
        - upgrade_plan
      properties:
        message:
          type: string
          description: What the plan doesn't allow, and what to do.
        owner_plan:
          type: boolean
          description: >-
            True when the plan is someone else's (the key's user isn't the
            workspace owner): only the owner can change it, and `message` says
            to ask them.
        error:
          type: string
          enum:
            - plan_limit_reached
        limit:
          type: string
          enum:
            - accounts
            - posts
            - workspaces
            - team
            - labels
            - campaigns
            - ai
            - moderation
            - contacts
            - crm
            - products
            - analytics
            - free_accounts
          description: >-
            What ran out: `accounts`, `posts` (this month's posts) and
            `workspaces` are counted; `free_accounts` is a post to an account
            other than the 2 a Free owner posts to outside a first week (the
            account's `plan_allows_posting` is `false`); `team`, `labels`,
            `campaigns`, `ai`, `moderation` (comment moderation), `contacts`
            (contact collection), `crm` (contacts and contact lists) and
            `products` are on paid plans only. `analytics` (more than the last 7
            days) comes from the app only: API v1 and MCP don't refuse analytics
            on Free, they keep the numbers to the last 7 days, outside an
            owner's first week, and say so in `range_limited`.
        used:
          type: integer
          description: How much of the limit is used; 0 for a paid-plan feature.
        allowed:
          type: integer
          description: What the plan allows; 0 for a paid-plan feature.
        plan:
          type: string
          description: The owner's plan, like `free`.
        resets_at:
          type: string
          format: date-time
          nullable: true
          description: When a monthly limit starts again; null for the others.
        upgrade_url:
          type: string
          nullable: true
          description: Where the owner picks a plan; null when the plan is someone else's.
        upgrade_plan:
          type: object
          nullable: true
          description: >-
            The smallest plan that lifts the limit; null when the plan is
            someone else's or no plan lifts it.
          required:
            - plan
            - name
            - monthly_price
            - yearly_price
            - accounts
            - accounts_per_workspace
          properties:
            plan:
              type: string
              description: The plan's key.
            name:
              type: string
              description: The plan's name.
            monthly_price:
              type: integer
            yearly_price:
              type: integer
            accounts:
              type: integer
              description: The social accounts the plan includes.
            accounts_per_workspace:
              type: boolean
              description: True when `accounts` counts per workspace rather than in all.
    Error:
      type: object
      description: >-
        An error answer. Every one has `message`, in plain words; some add an
        `error` code and fields of their own.
      required:
        - message
      properties:
        message:
          type: string
          description: What went wrong and what to do about it.
        error:
          type: string
          description: >-
            A code a few errors add, such as `rate_limited`. See [Handle
            errors](/essentials/error-handling#answers-with-an-error-code).
    ValidationError:
      type: object
      description: '422: the request didn''t pass validation, and nothing changed.'
      required:
        - message
        - errors
      properties:
        message:
          type: string
          description: >-
            The first error and, when there are more, how many: `(and 1 more
            error)`, `(and 2 more errors)`.
        errors:
          type: object
          description: >-
            The messages, by field. A field inside a list is named with dots:
            `accounts.0.id`.
          additionalProperties:
            type: array
            items:
              type: string
    PostCoverImage:
      type: object
      nullable: true
      description: >-
        The cover for a video post. Only the first part's cover is used. TikTok
        takes `video_cover_timestamp_ms` only; YouTube and Facebook take
        `thumbnail` only. Instagram takes a `thumbnail` on a Reel only (on a
        Story it is left out, with a `thumbnail_error` note), or
        `video_cover_timestamp_ms`.
      properties:
        thumbnail:
          description: >-
            A cover picture: a media library id (a picture, not a video) or a
            public picture URL. YouTube, Facebook, and Instagram Reels.
          oneOf:
            - type: integer
              nullable: true
            - type: string
              format: uri
        video_cover_timestamp_ms:
          type: integer
          minimum: 0
          description: >-
            The frame of the video to use as the cover, in milliseconds (2500 is
            2.5 seconds). TikTok and Instagram.
          nullable: true
    PostAccountSettings:
      type: object
      description: >-
        Options for one account, by network. Only the keys for the account's
        network are used; the others are ignored. Every key is optional.
      anyOf:
        - $ref: '#/components/schemas/TwitterPostSettings'
        - $ref: '#/components/schemas/InstagramPostSettings'
        - $ref: '#/components/schemas/FacebookPostSettings'
        - $ref: '#/components/schemas/LinkedInPostSettings'
        - $ref: '#/components/schemas/YouTubePostSettings'
        - $ref: '#/components/schemas/TikTokPostSettings'
        - $ref: '#/components/schemas/PinterestPostSettings'
        - $ref: '#/components/schemas/ThreadsPostSettings'
        - $ref: '#/components/schemas/TelegramPostSettings'
        - $ref: '#/components/schemas/BlueskyPostSettings'
        - $ref: '#/components/schemas/MastodonPostSettings'
        - $ref: '#/components/schemas/GoogleBusinessPostSettings'
    PostAutoPlugThresholdInput:
      type: object
      description: One threshold. Left out, it's off.
      properties:
        enabled:
          type: boolean
          default: false
        count:
          type: integer
          minimum: 0
          description: The number that fires the reply. Needed when `enabled` is true.
    Post:
      type: object
      description: >-
        A post: its text and media, when it goes out, and one row per account it
        goes to (`platforms`). Times are in the workspace's timezone, as `Y-m-d
        H:i`.
      required:
        - id
        - content
        - status
        - content_version
        - posted_on
        - scheduled_at
        - repeatable
        - repeatable_times
        - repeatable_gap
        - repeatable_gap_unit
        - repeatable_accounts
        - remaining_posts
        - comments_settings
        - contact_collection_settings
        - created_at
        - updated_at
        - workspace
        - labels
        - campaign
        - platforms
        - auto_plug
      properties:
        id:
          type: integer
          description: The post's id.
        content:
          type: array
          description: >-
            The post's parts, in order. One part is a single post; more parts
            make a thread on X, Threads, Bluesky and Mastodon (the other
            networks get the parts joined into one text, with two blank lines
            between them, the first comment left out). A part with
            `is_first_comment` is the first comment.
          items:
            $ref: '#/components/schemas/PostContent'
        status:
          type: string
          enum:
            - DRAFT
            - SCHEDULED
            - PENDING_APPROVAL
            - IN_QUEUE
            - IN_PROGRESS
            - PUBLISHED
            - PARTIALLY_FAILED
            - FAILED
            - REJECTED
          description: >-
            Where the post stands. `DRAFT`: saved, not going out. `SCHEDULED`:
            goes out at `scheduled_at`. `PENDING_APPROVAL`: waiting for someone
            to approve it. `IN_QUEUE`: published now and waiting its turn.
            `IN_PROGRESS`: being sent. `PUBLISHED`: out on every account.
            `PARTIALLY_FAILED`: out on some accounts, failed on others.
            `FAILED`: failed on every account. `REJECTED`: its approval was
            turned down.
        content_version:
          type: integer
          description: >-
            Goes up by one each time the post's content is saved. Send it back
            on [Update a post](/api-reference/posts/update) to be refused
            (`409`) instead of overwriting a change made elsewhere since you
            read it.
        posted_on:
          type: array
          items:
            type: string
          description: >-
            When it went out, one entry a time (a repeating post has several).
            `[]` until it is published.
        scheduled_at:
          type: string
          nullable: true
          description: >-
            When it goes out (or went out), in the workspace's timezone. Null
            when the post has no time yet: a draft with none, or a post sent for
            approval with none, where the approver picks when it goes out. API
            v1 and MCP never save a `SCHEDULED` post without one.
        repeatable:
          type: boolean
          nullable: true
          description: True when the post repeats. `false` or `null` when it doesn't.
        repeatable_times:
          type: integer
          nullable: true
          description: How many times it repeats after the first time.
        repeatable_gap:
          type: integer
          nullable: true
          description: Time between repeats, in `repeatable_gap_unit`.
        repeatable_gap_unit:
          type: string
          nullable: true
          enum:
            - minutes
            - hours
            - days
            - weeks
            - months
            - null
          description: The unit of `repeatable_gap`.
        repeatable_accounts:
          type: array
          nullable: true
          items:
            type: integer
          description: >-
            The accounts the repeats go to; null or `[]` for every account of
            the post.
        remaining_posts:
          type: integer
          nullable: true
          description: Sends still to go, the first one included until it goes out.
        comments_settings:
          type: object
          nullable: true
          allOf:
            - $ref: '#/components/schemas/PostCommentModeration'
          description: >-
            The post's comment moderation; null when it was never set. Change it
            with [Update comment
            moderation](/api-reference/posts/comment-moderation).
        contact_collection_settings:
          type: object
          nullable: true
          allOf:
            - $ref: '#/components/schemas/PostContactCollection'
          description: >-
            The post's contact collection; null when it was never set. Change it
            with [Update contact
            collection](/api-reference/posts/contact-collection).
        created_at:
          type: string
          description: When the post was made, in the workspace's timezone.
        updated_at:
          type: string
          description: When the post last changed, in the workspace's timezone.
        workspace:
          allOf:
            - $ref: '#/components/schemas/Workspace'
          description: >-
            The post's workspace. It has no `accounts` or `brand_voice` here:
            [List workspaces](/api-reference/workspaces/list) has those.
        labels:
          type: array
          items:
            $ref: '#/components/schemas/PostLabel'
          description: The post's labels; `[]` when it has none.
        campaign:
          type: object
          nullable: true
          allOf:
            - $ref: '#/components/schemas/Campaign'
          description: The post's campaign, or null.
        platforms:
          type: array
          items:
            $ref: '#/components/schemas/PlatformPost'
          description: >-
            One row per account the post goes to, in the order the accounts were
            added. A draft with no accounts has `[]`.
        auto_plug:
          type: object
          nullable: true
          allOf:
            - $ref: '#/components/schemas/PostAutoPlug'
          description: >-
            The reply posted when the post reaches a number of likes, reposts,
            replies or views; null when it's off. Change it with [Update
            auto-plug](/api-reference/posts/auto-plug).
        comments:
          type: array
          items:
            $ref: '#/components/schemas/APIComment'
          description: >-
            Only with `include_comments=true`: the post's comments, with their
            contact.
      example:
        id: 4182
        content:
          - text: >-
              Our spring menu starts today. The lavender oat latte is back, and
              so is the rhubarb bun.
            media:
              - id: 9051
                workspace_id: 12
                folder_id: null
                name: latte-art.jpg
                url: https://cdn.postsyncer.com/examples/latte-art.jpg
                thumb_url: https://cdn.postsyncer.com/examples/latte-art-thumb.jpg
                medium_url: https://cdn.postsyncer.com/examples/latte-art-medium.jpg
                mime_type: image/jpeg
                size: 482113
                is_processing: false
                type: image
                ai_generated_id: null
                is_reference: false
                progress: 100
                alt: Latte art in a blue cup
                duration_seconds: null
            cover_image: null
            is_first_comment: false
            first_comment_delay: null
          - text: Find us at 14 Mill Lane, open 7 to 4 every day.
            media: []
            cover_image: null
            is_first_comment: true
            first_comment_delay: 1
        status: PUBLISHED
        content_version: 1
        posted_on:
          - 2030-03-15 09:00
        scheduled_at: 2030-03-15 09:00
        repeatable: false
        repeatable_times: null
        repeatable_gap: null
        repeatable_gap_unit: null
        repeatable_accounts: null
        remaining_posts: null
        comments_settings: null
        contact_collection_settings: null
        created_at: 2030-03-01 10:24
        updated_at: 2030-03-15 09:01
        workspace:
          id: 12
          owner_id: 7
          name: Halden Coffee
          type: BRAND
          logo: https://cdn.postsyncer.com/examples/halden-coffee-logo.png
          timezone: Europe/London
          queue_slot:
            '09:00':
              time_24: '09:00'
              time_12: 9:00 am
              days:
                - true
                - true
                - true
                - true
                - true
                - false
                - false
          is_auto_repost_enabled_by_default: false
          auto_repost_settings:
            repeatable_gap: 6
            repeatable_gap_unit: hours
            repeatable_times: 2
          is_auto_plug_enabled_by_default: false
          auto_plug_settings: []
          comments_settings:
            remove_profanity: false
            remove_negativity: false
            remove_all_comments: false
            remove_custom_topics: false
            custom_topics_list: []
            remove_urls: false
            remove_emails: false
            remove_phones: false
            remove_mentions: false
            mentions_list: []
            remove_hashtags: false
            hashtags_list: []
            remove_keywords: false
            keywords_list: []
            ai_reply: false
          is_comment_moderation_enabled: false
          credits: 240
        labels: []
        campaign: null
        platforms:
          - platform: instagram
            account_id: 301
            posted_on:
              - 2030-03-15 09:00
            status: PUBLISHED
            settings:
              post_type: POST
              caption: null
              reel_trial_enabled: false
              graduation_strategy: MANUAL
              collaborators: []
            notes: []
            analytics:
              comments: 12
              likes: 248
              shares: 9
              impressions: 3120
              quotes: null
              saves: 31
              views: null
              reach: 2870
              clicks: null
              profile_visits: 44
              engagement_rate: 9.62
              pending: false
              synced_at: '2030-03-16T09:00:00+00:00'
            post_url: https://www.instagram.com/p/DHk2mQ7sLtA/
          - platform: linkedin
            account_id: 302
            posted_on:
              - 2030-03-15 09:00
            status: PUBLISHED
            settings:
              visibility: PUBLIC
              link: null
              title: null
            notes: []
            analytics:
              comments: 7
              likes: 64
              shares: 5
              impressions: 1850
              quotes: null
              saves: 3
              views: 0
              reach: 1400
              clicks: 41
              profile_visits: 12
              engagement_rate: 6.49
              pending: false
              synced_at: '2030-03-16T09:00:00+00:00'
            post_url: >-
              https://www.linkedin.com/feed/update/urn:li:share:7306000000000000001/
        auto_plug: null
    SkippedAccount:
      type: object
      description: >-
        An account left out of a scheduled or published post: it needs
        reconnecting, or it is a default account the owner's plan doesn't let
        new posts go to (`plan_allows_posting` is `false`).
      required:
        - account_id
        - platform
        - username
        - reason
        - reconnect_url
        - message
      properties:
        account_id:
          type: integer
        platform:
          type: string
          description: The network, like `linkedin`.
        username:
          type: string
          nullable: true
          description: The account's handle, or its name.
        reason:
          type: string
          nullable: true
          description: >-
            What the network said, when it said something. For a default account
            the plan leaves out: `Not on the free plan's 2 accounts`.
        reconnect_url:
          type: string
          description: >-
            The Accounts page in PostSyncer, where the account is reconnected.
            For a default account the plan leaves out: the same Accounts page,
            where the owner can pick other accounts (the pricing page is in
            `message`).
        message:
          type: string
          description: All of it in one sentence, to show to a person.
    NeedsMediaAccount:
      type: object
      description: >-
        An account of the post whose network can't post text alone and that has
        no photo or video to post there.
      required:
        - account_id
        - platform
        - message
      properties:
        account_id:
          type: integer
        platform:
          type: string
          description: The account's network, e.g. `instagram`.
        message:
          type: string
          description: >-
            What it needs, to show the user, e.g. "Instagram needs a photo or
            video before this post can be scheduled or published."
    TwitterPostSettings:
      type: object
      title: X (Twitter)
      description: '`settings` keys for X (Twitter) accounts.'
      properties:
        media:
          type: array
          items:
            type: integer
          description: >-
            Media library ids this account posts instead of the post's media (on
            X, Threads, Bluesky and Mastodon: instead of the first item's
            media). Leave it out to use the post's media. The media objects
            get-post returns there are taken too, so settings read from a post
            can be sent back unchanged. An X Article posts the post's media, not
            this list. In order; the same id twice posts the file twice. Each id
            must be in the workspace's media library, or the request is refused
            with a 422. The post's video cover and frame are not used for these
            files: the platform picks its own frame.
        text:
          type: string
          description: Text override for the first tweet. Falls back to the post content.
        reply_settings:
          type: string
          enum:
            - everyone
            - following
            - mentionedUsers
            - subscribers
          default: everyone
          description: Who can reply. Any other value lets everyone reply.
        for_super_followers_only:
          type: boolean
          default: false
          description: Show the post to Super Followers only.
        quote_tweet_id:
          type: string
          description: ID of a tweet to quote.
        reply:
          type: object
          description: Post as a reply to another tweet.
          properties:
            in_reply_to_tweet_id:
              type: string
              description: ID of the tweet to reply to.
        community_id:
          type: string
          description: ID of the X Community to post in.
        share_with_followers:
          type: boolean
          default: true
          description: 'Community posts only: also show the post to your followers.'
        poll:
          type: object
          description: Attach a poll. Set `enabled` to `true`.
          properties:
            enabled:
              type: boolean
              default: false
              description: Turn the poll on.
            options:
              type: array
              items:
                type: string
              minItems: 2
              maxItems: 4
              description: 2 to 4 choices.
            duration_minutes:
              type: integer
              default: 5
              minimum: 5
              maximum: 10080
              description: How long the poll stays open, 5 to 10080 minutes.
            reply_settings:
              type: string
              enum:
                - everyone
                - following
                - mentionedUsers
                - subscribers
                - verified
              default: everyone
              description: Who can reply to the poll.
        article:
          type: object
          description: >-
            Publish as an X Article: a long-form post with a title. The body is
            this account's `text` when set (it wins over the post content), else
            the post content, with no tweet length limit. It may use Markdown:
            `#` and `##` headings, lists, `>` quotes, bold, italic,
            ~~strikethrough~~, links, code blocks, tables and `---` dividers.
            Put images in the text as `![alt](media:<id>)` with a media library
            id (or a media library link). X gets only the Article and its first
            comment, as a reply. A thread needs its own `text`: the thread then
            goes to the other networks. The cover is `cover`, or the post's one
            image without it; with `cover`, the post's media is for the other
            networks. Images only: no videos, GIFs or polls. X lets only Premium
            and Premium+ accounts publish Articles.
          properties:
            enabled:
              type: boolean
              default: false
              description: Publish as an Article.
            title:
              type: string
              description: The Article's title. Required when `enabled` is `true`.
            cover:
              type: integer
              description: >-
                Media library id of the Article's cover image. Without it, the
                post's one image is the cover.
    InstagramPostSettings:
      type: object
      title: Instagram
      description: '`settings` keys for Instagram accounts.'
      properties:
        media:
          type: array
          items:
            type: integer
          description: >-
            Media library ids this account posts instead of the post's media (on
            X, Threads, Bluesky and Mastodon: instead of the first item's
            media). Leave it out to use the post's media. The media objects
            get-post returns there are taken too, so settings read from a post
            can be sent back unchanged. An X Article posts the post's media, not
            this list. In order; the same id twice posts the file twice. Each id
            must be in the workspace's media library, or the request is refused
            with a 422. The post's video cover and frame are not used for these
            files: the platform picks its own frame.
        post_type:
          type: string
          enum:
            - POST
            - REELS
            - STORIES
          default: POST
          description: >-
            `POST`: feed post; several media make a carousel, and a single video
            still publishes as a Reel. `REELS`: Reel. `STORIES`: Story. Any case
            is read; `STORY` and `REEL` are read as `STORIES` and `REELS`, and
            `POSTS`, `FEED`, `PHOTO`, `IMAGE`, `VIDEO`, `CAROUSEL` and
            `CAROUSEL_ALBUM` as `POST`. Any other value is refused with a 422.
        caption:
          type: string
          description: Caption override for Instagram. Falls back to the post content.
        reel_trial_enabled:
          type: boolean
          default: false
          description: >-
            Publish the Reel as a trial Reel, which Instagram shows to
            non-followers first. Applies to a single video published as a Reel
            (`post_type` `REELS`, or `POST` with one video); ignored for images,
            carousels and Stories.
        graduation_strategy:
          type: string
          enum:
            - MANUAL
            - SS_PERFORMANCE
          default: MANUAL
          description: >-
            What happens after the trial, when `reel_trial_enabled` is `true`.
            `MANUAL`: you decide in Instagram whether to share it with your
            followers. `SS_PERFORMANCE`: Instagram shares it with your followers
            automatically if it performs well with non-followers. Other values
            fall back to `MANUAL`.
        collaborators:
          type: array
          items:
            type: string
          maxItems: 3
          default: []
          example:
            - partner.brand
            - jane.creator
          description: >-
            Up to 3 Instagram usernames to invite as collaborators. A list, or
            one text with commas between names; a leading `@` or an
            instagram.com profile link also works. Each collaborator gets an
            invite in Instagram, and once they accept, the post also shows on
            their profile. Applies to feed photos, Reels and carousels; ignored
            for Stories, which Instagram does not take collaborators on. A
            fourth name, or one that is not a username, is refused with a 422.
        user_tags:
          type: array
          items:
            type: object
            required:
              - username
            properties:
              username:
                type: string
                description: >-
                  The Instagram username of the person, without `@`. An
                  instagram.com profile link also works.
              x:
                type: number
                minimum: 0
                maximum: 1
                description: >-
                  Photos: where the person is, from `0` (left edge) to `1`
                  (right edge) of the file as uploaded. Give `x` and `y`
                  together. When Instagram's shape cuts the sides off a feed or
                  carousel photo, the spot moves with the cut, and a spot in the
                  part cut off goes to the nearest edge. A feed or carousel
                  photo tag without them goes in the middle of the photo, a
                  Story photo tag without a spot; videos and Reels don't use
                  them.
              'y':
                type: number
                minimum: 0
                maximum: 1
                description: >-
                  Photos: where the person is, from `0` (top edge) to `1`
                  (bottom edge).
              item:
                type: integer
                minimum: 1
                default: 1
                description: 'Carousels: the file the person is in, `1` for the first.'
              media_id:
                type: integer
                description: >-
                  Optional: the media library id of that file. When the post has
                  it, it wins over `item`, so the tag stays on its photo when
                  files are moved.
          default: []
          example:
            - username: jane.creator
              x: 0.42
              'y': 0.6
            - username: partner.brand
              x: 0.5
              'y': 0.5
              item: 2
          description: >-
            People to tag. Instagram tells them, and the post shows in the
            Tagged tab of their profile. Works on photos, the files of a
            carousel (each tag on its own file, never on the carousel), Reels
            and Stories; a video or a Reel takes the usernames only. A list of
            usernames, or one text with commas between them, also works. Up to
            20 people on one file, counted on the file each tag lands on (`item`
            and `media_id` naming the same file count once per person). A name
            that is not a username, a spot outside 0 to 1, `x` without `y`, or
            more than 20 people on one file is refused with a 422. A tag on a
            file the post no longer has is not sent, and a tag Instagram refuses
            is left off while the post still goes out; either way the result
            gets a `setting_not_applied` note.
        share_to_feed:
          type: boolean
          default: true
          description: >-
            Reels only: also show the Reel in the feed. `false` shows it in the
            Reels tab only. Instagram still decides whether a Reel is picked for
            the Reels tab.
        audio_name:
          type: string
          description: >-
            Reels only: a name for the Reel's original audio, shown on the Reel
            instead of "Original audio". Instagram lets it be named once.
        ai_generated:
          type: boolean
          default: false
          description: >-
            Label the post as made with AI. On a carousel the label goes on the
            carousel.
    FacebookPostSettings:
      type: object
      title: Facebook
      description: '`settings` keys for Facebook accounts.'
      properties:
        media:
          type: array
          items:
            type: integer
          description: >-
            Media library ids this account posts instead of the post's media (on
            X, Threads, Bluesky and Mastodon: instead of the first item's
            media). Leave it out to use the post's media. The media objects
            get-post returns there are taken too, so settings read from a post
            can be sent back unchanged. An X Article posts the post's media, not
            this list. In order; the same id twice posts the file twice. Each id
            must be in the workspace's media library, or the request is refused
            with a 422. The post's video cover and frame are not used for these
            files: the platform picks its own frame.
        post_type:
          type: string
          enum:
            - POST
            - REELS
            - STORIES
          default: POST
          description: >-
            `POST`: feed post. `REELS`: Reel (video only; other media post to
            the feed). `STORIES`: Story. Any case is read; `STORY` and `REEL`
            are read as `STORIES` and `REELS`, and `POSTS`, `FEED`, `PHOTO`,
            `IMAGE`, `VIDEO`, `CAROUSEL` and `CAROUSEL_ALBUM` as `POST`. Any
            other value is refused with a 422.
        title:
          type: string
          description: Text override for Facebook. Falls back to the post content.
        link:
          type: string
          format: uri
          description: Link to attach. Used only on posts without media.
    LinkedInPostSettings:
      type: object
      title: LinkedIn
      description: '`settings` keys for LinkedIn accounts.'
      properties:
        media:
          type: array
          items:
            type: integer
          description: >-
            Media library ids this account posts instead of the post's media (on
            X, Threads, Bluesky and Mastodon: instead of the first item's
            media). Leave it out to use the post's media. The media objects
            get-post returns there are taken too, so settings read from a post
            can be sent back unchanged. An X Article posts the post's media, not
            this list. In order; the same id twice posts the file twice. Each id
            must be in the workspace's media library, or the request is refused
            with a 422. The post's video cover and frame are not used for these
            files: the platform picks its own frame.
        visibility:
          type: string
          enum:
            - PUBLIC
            - CONNECTIONS
          default: PUBLIC
          description: Who can see the post.
        link:
          type: string
          format: uri
          description: Link to attach as an article.
        title:
          type: string
          description: >-
            Text override for LinkedIn. Falls back to the post content. Tag
            people and companies with the `text` from GET
            /accounts/{id}/linkedin/mentions; a plain "@name" is not a tag.
        poll:
          type: object
          description: >-
            A poll under the post text, from a person or a Page. Set `enabled`
            to `true`. LinkedIn takes a poll only as the post's only content: no
            photos, video or document (the account's own media included) and no
            `link`. An incomplete poll, or one with media or a link, is refused
            with a 422.
          properties:
            enabled:
              type: boolean
              default: false
              description: Turn the poll on.
            question:
              type: string
              maxLength: 140
              example: Which roast should we bring back?
              description: >-
                The question, at most 140 characters. Required. The post text
                shows above it, mentions included.
            options:
              type: array
              items:
                type: string
                maxLength: 30
              minItems: 2
              maxItems: 4
              example:
                - Light roast
                - Dark roast
              description: 2 to 4 choices, each at most 30 characters, all different.
            duration_minutes:
              type: integer
              enum:
                - 1440
                - 4320
                - 10080
                - 20160
              default: 10080
              description: >-
                How long votes are taken: 1440 (1 day), 4320 (3 days), 10080 (1
                week) or 20160 (2 weeks).
    YouTubePostSettings:
      type: object
      title: YouTube
      description: '`settings` keys for YouTube accounts.'
      properties:
        media:
          type: array
          items:
            type: integer
          description: >-
            Media library ids this account posts instead of the post's media (on
            X, Threads, Bluesky and Mastodon: instead of the first item's
            media). Leave it out to use the post's media. The media objects
            get-post returns there are taken too, so settings read from a post
            can be sent back unchanged. An X Article posts the post's media, not
            this list. In order; the same id twice posts the file twice. Each id
            must be in the workspace's media library, or the request is refused
            with a 422. The post's video cover and frame are not used for these
            files: the platform picks its own frame.
        video_type:
          type: string
          enum:
            - video
            - short
          default: video
          description: >-
            YouTube itself decides what the video becomes: a square or vertical
            video up to 3 minutes is a Short, any other is a regular video.
            `short` only changes the title: with no `title`, the title is the
            description or post text with `#Shorts` at the end. A `title` of
            only `#Shorts` does the same on any video.
        title:
          type: string
          description: >-
            Video title, at most 100 characters. Without one, the title is the
            `description` setting when it's set, otherwise the post text, cut to
            fit, with `#Shorts` after it on a Short. A title of only `#Shorts`
            gets the same text, with `#Shorts` after it on any video.
        description:
          type: string
          description: Video description. Falls back to the post content.
        privacyStatus:
          type: string
          enum:
            - public
            - unlisted
            - private
          default: public
          description: Video privacy.
        tags:
          type: array
          items:
            type: string
          description: >-
            Video tags. YouTube takes 500 characters in all: each tag, a comma
            between two, and two more for a tag with a space in it. More is
            refused with a 422. Repeats and blanks are left out.
        category_id:
          type: string
          description: YouTube video category ID.
        playlist_id:
          type: string
          description: >-
            Add the video to this playlist of the channel once it is up.
            Playlist ids are in the account's `playlists` ([Get
            account](/api-reference/accounts/get)). If YouTube refuses, the
            video stays up and the account's result gets a `setting_not_applied`
            note.
        language:
          type: string
          description: >-
            The language of the title and description, as one of YouTube's
            language codes, such as `en`, `pt-PT` or `zh-TW`. Hebrew is `iw` on
            YouTube (`he` is taken too). A code YouTube doesn't offer is refused
            with a `422` that lists them.
        containsSyntheticMedia:
          type: boolean
          default: false
          description: >-
            The video has realistic altered or synthetic content: a real person
            saying or doing what they didn't, a real event or place changed, or
            a realistic scene that didn't happen.
        license:
          type: string
          enum:
            - youtube
            - creativeCommon
          default: youtube
          description: >-
            Standard YouTube License (`youtube`) or Creative Commons Attribution
            (`creativeCommon`).
        hasPaidProductPlacement:
          type: boolean
          nullable: true
          description: >-
            The video has paid product placement, a sponsorship or an
            endorsement. Leave it out to say nothing; since November 2026
            YouTube no longer takes a missing value as "no".
        embeddable:
          type: boolean
          default: true
          description: Allow embedding on other sites.
        selfDeclaredMadeForKids:
          type: boolean
          default: false
          description: Mark the video as made for kids.
        notifySubscribers:
          type: boolean
          default: true
          description: >-
            Tell the channel's subscribers about the new video. Set false when
            uploading many videos at once.
    TikTokPostSettings:
      type: object
      title: TikTok
      description: '`settings` keys for TikTok accounts.'
      properties:
        media:
          type: array
          items:
            type: integer
          description: >-
            Media library ids this account posts instead of the post's media (on
            X, Threads, Bluesky and Mastodon: instead of the first item's
            media). Leave it out to use the post's media. The media objects
            get-post returns there are taken too, so settings read from a post
            can be sent back unchanged. An X Article posts the post's media, not
            this list. In order; the same id twice posts the file twice. Each id
            must be in the workspace's media library, or the request is refused
            with a 422. The post's video cover and frame are not used for these
            files: the platform picks its own frame.
        privacy_level:
          type: string
          enum:
            - PUBLIC_TO_EVERYONE
            - MUTUAL_FOLLOW_FRIENDS
            - FOLLOWER_OF_CREATOR
            - SELF_ONLY
          default: PUBLIC_TO_EVERYONE
          description: Who can view the post.
        post_mode:
          type: string
          enum:
            - DIRECT_POST
            - MEDIA_UPLOAD
          default: DIRECT_POST
          description: >-
            `DIRECT_POST`: publish to the profile. `MEDIA_UPLOAD`: send to the
            TikTok inbox so the user finishes the post in the TikTok app.
        title:
          type: string
          description: 'Photo posts only: post title (TikTok allows 90 characters).'
        description:
          type: string
          description: >-
            Caption override for TikTok videos and photo posts. Falls back to
            the post content.
        disable_comment:
          type: boolean
          default: false
          description: Turn off comments.
        disable_duet:
          type: boolean
          default: false
          description: Turn off Duets.
        disable_stitch:
          type: boolean
          default: false
          description: Turn off Stitches.
        brand_content_toggle:
          type: boolean
          default: false
          description: Paid partnership promoting a third-party brand.
        brand_organic_toggle:
          type: boolean
          default: false
          description: Promotes your own business.
        is_aigc:
          type: boolean
          default: false
          description: Label the post as AI-generated content.
        auto_add_music:
          type: boolean
          default: false
          description: 'Photo posts: let TikTok add background music.'
    PinterestPostSettings:
      type: object
      title: Pinterest
      description: '`settings` keys for Pinterest accounts.'
      properties:
        media:
          type: array
          items:
            type: integer
          description: >-
            Media library ids this account posts instead of the post's media (on
            X, Threads, Bluesky and Mastodon: instead of the first item's
            media). Leave it out to use the post's media. The media objects
            get-post returns there are taken too, so settings read from a post
            can be sent back unchanged. An X Article posts the post's media, not
            this list. In order; the same id twice posts the file twice. Each id
            must be in the workspace's media library, or the request is refused
            with a 422. The post's video cover and frame are not used for these
            files: the platform picks its own frame.
        board_id:
          type: string
          description: >-
            Board to pin to. Get board IDs from `boards` in `GET
            /accounts/{id}`. Defaults to the account's first board. An account
            with no boards at all gets a new board named `My Pins` when the pin
            is sent.
        link:
          type: string
          format: uri
          description: Destination link for the pin.
        title:
          type: string
          description: Pin title.
        description:
          type: string
          description: Pin description. Falls back to the post content.
        board_section_id:
          type: string
          pattern: ^[0-9]+$
          example: '5251788495612345678'
          description: >-
            A section of the board to pin into. Get section ids from `GET
            /accounts/{account}/pinterest/boards/{board}/sections`. Only with
            `board_id`, the board the section is on: without `board_id` it is
            refused with a 422. Leave it out to pin to the board itself.
        ai_disclosures:
          type: array
          items:
            type: string
            enum:
              - AI_MODIFIED
              - SYNTHETIC_PERFORMER
          uniqueItems: true
          example:
            - AI_MODIFIED
          description: >-
            Label the pin as made with AI. `AI_MODIFIED`: made or changed with
            AI. `SYNTHETIC_PERFORMER`: shows a person made with AI. Either or
            both; leave it out for none.
        note:
          type: string
          deprecated: true
          description: >-
            Ignored. Pinterest no longer takes private notes on pins (removed
            from its API in v5.20, October 2025). Still accepted, so older
            requests keep working, but never sent.
        published:
          type: boolean
          default: true
          description: Accepted for compatibility; currently has no effect.
    ThreadsPostSettings:
      type: object
      title: Threads
      description: '`settings` keys for Threads accounts.'
      properties:
        media:
          type: array
          items:
            type: integer
          description: >-
            Media library ids this account posts instead of the post's media (on
            X, Threads, Bluesky and Mastodon: instead of the first item's
            media). Leave it out to use the post's media. The media objects
            get-post returns there are taken too, so settings read from a post
            can be sent back unchanged. An X Article posts the post's media, not
            this list. In order; the same id twice posts the file twice. Each id
            must be in the workspace's media library, or the request is refused
            with a 422. The post's video cover and frame are not used for these
            files: the platform picks its own frame.
        title:
          type: string
          description: Text override for Threads. Falls back to the post content.
        link_attachment:
          type: string
          format: uri
          description: Link preview for text-only posts.
        reply_control:
          type: string
          enum:
            - everyone
            - accounts_you_follow
            - mentioned_only
            - parent_post_author_only
            - followers_only
          default: everyone
          description: >-
            Who can reply, on every post of the thread. `accounts_you_follow`:
            accounts this account follows. `mentioned_only`: accounts mentioned
            in the post. `parent_post_author_only`: this account only.
            `followers_only`: this account's followers. Any other value is
            refused with a 422. Not sent on a ghost post.
        reply_approvals:
          type: boolean
          default: false
          description: >-
            Replies wait for this account to approve them before others see
            them, on every post of the thread. Not sent on a ghost post.
        topic_tag:
          type: string
          maxLength: 50
          example: coffee
          description: >-
            The first post's topic, 1 to 50 characters. A `#` in front is
            dropped. Threads takes no period or ampersand in a topic: one with
            either is refused with a 422.
        poll:
          type: object
          description: >-
            A poll on the first post. Set `enabled` to `true`. Threads takes a
            poll only on a text post: no photos or videos (the account's own
            media included) and no `link_attachment`. Threads sets how long it
            runs. An incomplete poll, or one with media or a link, is refused
            with a 422.
          properties:
            enabled:
              type: boolean
              default: false
              description: Turn the poll on.
            options:
              type: array
              items:
                type: string
                maxLength: 25
              minItems: 2
              maxItems: 4
              example:
                - Light roast
                - Dark roast
              description: 2 to 4 choices, each at most 25 characters, all different.
        quote_post_id:
          type: string
          example: https://www.threads.com/@alder.coffee/post/DAbc123xyz
          description: >-
            The post the first post quotes: a Threads post id, or a link to a
            post of this account. A link is looked up among this account's posts
            published with PostSyncer, then among its latest 500 on Threads; not
            found, the post fails before anything is sent. Threads lets apps
            quote someone else's post only by its id: a link to another
            account's post is refused with a 422.
        ai_generated:
          type: boolean
          default: false
          description: >-
            Label the posts as made with AI. On a carousel the label goes on the
            carousel. Not sent on a ghost post.
        has_spoiler:
          type: boolean
          default: false
          description: >-
            Cover the photos and videos until a viewer taps them, on every post
            of the thread that has some. Text is not covered.
        ghost_post:
          type: boolean
          default: false
          description: >-
            A ghost post: a text post that is gone after 24 hours. It must be
            one post on its own: no photos or videos, poll, thread, first
            comment, `link_attachment`, `topic_tag` or `quote_post_id`, or the
            request is refused with a 422. `reply_control`, `reply_approvals`
            and `ai_generated` are not sent on it.
    TelegramPostSettings:
      type: object
      title: Telegram
      description: '`settings` keys for Telegram accounts.'
      properties:
        media:
          type: array
          items:
            type: integer
          description: >-
            Media library ids this account posts instead of the post's media (on
            X, Threads, Bluesky and Mastodon: instead of the first item's
            media). Leave it out to use the post's media. The media objects
            get-post returns there are taken too, so settings read from a post
            can be sent back unchanged. An X Article posts the post's media, not
            this list. In order; the same id twice posts the file twice. Each id
            must be in the workspace's media library, or the request is refused
            with a 422. The post's video cover and frame are not used for these
            files: the platform picks its own frame.
        title:
          type: string
          description: Text override for Telegram. Falls back to the post content.
        disable_notification:
          type: boolean
          default: false
          description: Send silently.
        protect_content:
          type: boolean
          default: false
          description: Stop the message from being forwarded or saved.
        pin_message:
          type: boolean
          default: false
          description: >-
            Pin the post in the channel once it is sent (an album: its first
            message), as silently as `disable_notification` says. The bot needs
            the right to edit messages in a channel, or to pin messages in a
            group. If Telegram refuses, the post stays published and its result
            carries a `setting_not_applied` note that says how to fix it.
        has_spoiler:
          type: boolean
          default: false
          description: >-
            Cover the photos, videos and GIF until a viewer taps them. Text-only
            posts ignore it.
        show_caption_above_media:
          type: boolean
          default: false
          description: >-
            Show the text above the photos, videos or GIF instead of under them.
            Text-only posts ignore it.
    BlueskyPostSettings:
      type: object
      title: Bluesky
      description: '`settings` keys for Bluesky accounts.'
      properties:
        media:
          type: array
          items:
            type: integer
          description: >-
            Media library ids this account posts instead of the post's media (on
            X, Threads, Bluesky and Mastodon: instead of the first item's
            media). Leave it out to use the post's media. The media objects
            get-post returns there are taken too, so settings read from a post
            can be sent back unchanged. An X Article posts the post's media, not
            this list. In order; the same id twice posts the file twice. Each id
            must be in the workspace's media library, or the request is refused
            with a 422. The post's video cover and frame are not used for these
            files: the platform picks its own frame.
        title:
          type: string
          description: Text override for Bluesky. Falls back to the post content.
        website_card:
          type: object
          description: Link card shown under the post.
          properties:
            uri:
              type: string
              format: uri
              description: Link URL.
            title:
              type: string
              description: Card title.
            description:
              type: string
              description: Card description.
        languages:
          type: array
          items:
            type: string
          maxItems: 3
          example:
            - en
            - pt-BR
          description: >-
            The languages the post is written in, up to 3, as ISO 639-1 codes
            such as `en` (a region such as `pt-BR` is taken too). A list, or one
            text with commas between the codes. They go on every post of the
            thread, and Bluesky uses them to show the post to people who read
            those languages. A code that can't be one, or more than 3, is
            refused with a 422.
        reply_rules:
          type: array
          items:
            type: string
            enum:
              - mentioned
              - followers
              - following
              - nobody
          example:
            - followers
            - mentioned
          description: >-
            Who can reply to the thread. Any of `mentioned` (people mentioned in
            the post), `followers` (people who follow this account) and
            `following` (people this account follows), or `["nobody"]` alone to
            turn replies off. Leave it out, or send `[]`, for everyone. It is
            set on the thread's first post. If Bluesky refuses it, the post
            stays published and its result carries a `setting_not_applied` note.
        allow_quotes:
          type: boolean
          default: true
          description: >-
            `false` stops other people quoting the posts, on every post of the
            thread and on its first comment. If Bluesky refuses it, the post
            stays published and its result carries a `setting_not_applied` note.
        content_labels:
          type: array
          items:
            type: string
            enum:
              - sexual
              - nudity
              - porn
              - graphic-media
          example:
            - graphic-media
          description: >-
            Content warnings on the post's media or link card, so Bluesky blurs
            it for people who asked for that: one of `sexual` (suggestive),
            `nudity` or `porn` (adult), and/or `graphic-media` (violence or
            gore). Bluesky labels media, not text: a post of the thread without
            media or a link card is sent without them. Two adult labels together
            are refused with a 422.
        quote_post_url:
          type: string
          example: https://bsky.app/profile/name.bsky.social/post/3l6oveex3ii2l
          description: >-
            The post the first post quotes: its link
            (`https://bsky.app/profile/{handle or DID}/post/{id}`) or its
            `at://` address. The quote sits next to the post's media or link
            card. A link that is not a Bluesky post is refused with a 422. If
            Bluesky can't find the post when it is sent (deleted, or a wrong
            link), nothing is posted and the post fails with the reason.
    MastodonPostSettings:
      type: object
      title: Mastodon
      description: '`settings` keys for Mastodon accounts.'
      properties:
        media:
          type: array
          items:
            type: integer
          description: >-
            Media library ids this account posts instead of the post's media (on
            X, Threads, Bluesky and Mastodon: instead of the first item's
            media). Leave it out to use the post's media. The media objects
            get-post returns there are taken too, so settings read from a post
            can be sent back unchanged. An X Article posts the post's media, not
            this list. In order; the same id twice posts the file twice. Each id
            must be in the workspace's media library, or the request is refused
            with a 422. The post's video cover and frame are not used for these
            files: the platform picks its own frame.
        text:
          type: string
          description: Text override for Mastodon. Falls back to the post content.
        visibility:
          type: string
          enum:
            - public
            - unlisted
            - private
            - direct
          default: public
          description: Who can see the post.
        spoiler_text:
          type: string
          description: Content warning shown before the post (up to 500 characters).
        sensitive:
          type: boolean
          default: false
          description: Mark attached media as sensitive.
        language:
          type: string
          description: >-
            The language the post is written in, as an ISO 639-1 code such as
            `en`. Leave it out, or send `auto` or an empty text, to let Mastodon
            guess it.
        poll:
          type: object
          description: >-
            Attach a poll to the first post of the thread. Set `enabled` to
            `true`. A poll Mastodon would refuse (fewer than 2 or more than 4
            choices, a choice over 50 characters, two exactly the same) is
            refused with a 422. Mastodon servers before 4.6 take a poll only on
            a post without media: such a server refuses the post when it is
            sent, and the post fails with words that say so.
          properties:
            enabled:
              type: boolean
              default: false
              description: Turn the poll on.
            options:
              type: array
              items:
                type: string
                maxLength: 50
              minItems: 2
              maxItems: 4
              description: >-
                2 to 4 choices, each at most 50 characters (an emoji counts as
                one), no two exactly the same (`Yes` and `yes` are two choices).
            duration_minutes:
              type: integer
              default: 1440
              minimum: 5
              maximum: 43829
              description: >-
                How long votes are taken: a whole number of minutes from 5 to
                43829 (a month), or the request is refused with a 422. Default
                1440, a day.
            multiple:
              type: boolean
              default: false
              description: Voters may pick more than one choice.
            hide_totals:
              type: boolean
              default: false
              description: Hide the vote counts until the poll ends.
        in_reply_to_id:
          type: string
          description: ID of the status to reply to.
        quoted_status_id:
          type: string
          description: ID of the status to quote (servers that support quote posts).
        quote_approval_policy:
          type: string
          enum:
            - public
            - followers
            - nobody
          description: >-
            Who may quote this post. Sent only together with `quoted_status_id`,
            and only for `public` or `unlisted` posts.
    GoogleBusinessPostSettings:
      type: object
      title: Google Business Profile
      description: >-
        `settings` keys for Google Business Profile accounts. A `POST` is a
        local post on the location (text up to 1,500 characters, 0 or 1 photo,
        no video; photos are JPG or PNG, 10 KB to 5 MB, at least 250x250). A
        `GALLERY` item is exactly 1 photo or 1 video (video up to 30 seconds, up
        to 75 MB, at least 720p). Only `STANDARD` posts may repeat; `EVENT` and
        `OFFER` posts cannot.
      properties:
        media:
          type: array
          items:
            type: integer
          description: >-
            Media library ids this account posts instead of the post's media (on
            X, Threads, Bluesky and Mastodon: instead of the first item's
            media). Leave it out to use the post's media. The media objects
            get-post returns there are taken too, so settings read from a post
            can be sent back unchanged. An X Article posts the post's media, not
            this list. In order; the same id twice posts the file twice. Each id
            must be in the workspace's media library, or the request is refused
            with a 422. The post's video cover and frame are not used for these
            files: the platform picks its own frame.
        post_type:
          type: string
          enum:
            - POST
            - GALLERY
          default: POST
          description: >-
            `POST` publishes a local post; `GALLERY` adds the photo or video to
            the location's gallery.
        topic_type:
          type: string
          enum:
            - STANDARD
            - EVENT
            - OFFER
          default: STANDARD
          description: >-
            Kind of local post. `STANDARD` is an update. `EVENT` and `OFFER`
            need `event` dates and a title.
        text:
          type: string
          description: >-
            Text override for Google Business Profile, up to 1,500 characters.
            Falls back to the post content.
        call_to_action:
          type: object
          description: Button under the post.
          properties:
            action_type:
              type: string
              enum:
                - BOOK
                - ORDER
                - SHOP
                - LEARN_MORE
                - SIGN_UP
                - CALL
              description: Button label. `CALL` takes no URL.
            url:
              type: string
              description: Where the button leads. Not used with `CALL`.
        event:
          type: object
          description: Title and dates for an `EVENT` or `OFFER` post.
          properties:
            title:
              type: string
              description: Up to 58 characters.
            start_date:
              type: string
              description: '`YYYY-MM-DD`.'
            start_time:
              type: string
              description: '`HH:MM`, 24-hour.'
            end_date:
              type: string
              description: '`YYYY-MM-DD`.'
            end_time:
              type: string
              description: '`HH:MM`, 24-hour.'
        offer:
          type: object
          description: Extra details for an `OFFER` post.
          properties:
            coupon_code:
              type: string
              description: Code customers use.
            redeem_url:
              type: string
              description: Link where the offer is redeemed.
            terms:
              type: string
              description: Terms and conditions.
        gallery_category:
          type: string
          enum:
            - COVER
            - PROFILE
            - LOGO
            - EXTERIOR
            - INTERIOR
            - PRODUCT
            - AT_WORK
            - FOOD_AND_DRINK
            - MENU
            - COMMON_AREA
            - ROOMS
            - TEAMS
            - ADDITIONAL
          description: >-
            For `post_type` `GALLERY`: where the item goes in the gallery. A
            gallery video goes with `ADDITIONAL`.
    PostContent:
      type: object
      description: One part of a post.
      required:
        - text
        - media
        - cover_image
        - is_first_comment
        - first_comment_delay
      properties:
        text:
          type: string
          nullable: true
          description: The text, as saved (LinkedIn tags included).
        media:
          type: array
          items:
            $ref: '#/components/schemas/APIMedia'
          description: The part's files, in order. `[]` when it has none.
        cover_image:
          type: object
          nullable: true
          description: The video cover, or null. Only the first part's is used.
          required:
            - thumbnail
            - video_cover_timestamp_ms
          properties:
            thumbnail:
              type: object
              nullable: true
              allOf:
                - $ref: '#/components/schemas/APIMedia'
              description: >-
                The cover picture (YouTube, Facebook, and Instagram Reels), or
                null.
            video_cover_timestamp_ms:
              type: integer
              nullable: true
              description: >-
                The video frame used as the cover, in milliseconds (TikTok,
                Instagram), or null.
        is_first_comment:
          type: boolean
          description: True for the part posted as the first comment.
        first_comment_delay:
          type: integer
          nullable: true
          description: >-
            Minutes after publishing that the first comment goes out; null on
            other parts.
    PostCommentModeration:
      type: object
      description: >-
        Comment moderation on the post: the rules that remove comments as they
        come in.
      required:
        - enabled
        - settings
      properties:
        enabled:
          type: boolean
        settings:
          type: object
          properties:
            remove_profanity:
              type: boolean
              description: Remove comments with swearing.
            remove_negativity:
              type: boolean
              description: Remove negative comments.
            remove_all_comments:
              type: boolean
              description: Remove every comment.
            remove_custom_topics:
              type: boolean
              description: Remove comments about the topics in `custom_topics_list`.
            custom_topics_list:
              type: array
              items:
                type: string
              description: The topics for `remove_custom_topics`. Needed when it's on.
            remove_urls:
              type: boolean
              description: Remove comments with links.
            remove_emails:
              type: boolean
              description: Remove comments with email addresses.
            remove_phones:
              type: boolean
              description: Remove comments with phone numbers.
            remove_mentions:
              type: boolean
              description: Remove comments that mention someone.
            mentions_list:
              type: array
              items:
                type: string
              description: The handles `remove_mentions` looks for; empty for any mention.
            remove_hashtags:
              type: boolean
              description: Remove comments with hashtags.
            hashtags_list:
              type: array
              items:
                type: string
              description: The hashtags `remove_hashtags` looks for; empty for any hashtag.
            remove_keywords:
              type: boolean
              description: Remove comments with the words in `keywords_list`.
            keywords_list:
              type: array
              items:
                type: string
              description: The words for `remove_keywords`. Needed when it's on.
            ai_reply:
              type: boolean
              description: Reply to comments with AI.
          required:
            - remove_profanity
            - remove_negativity
            - remove_all_comments
            - remove_custom_topics
            - custom_topics_list
            - remove_urls
            - remove_emails
            - remove_phones
            - remove_mentions
            - mentions_list
            - remove_hashtags
            - hashtags_list
            - remove_keywords
            - keywords_list
            - ai_reply
    PostContactCollection:
      type: object
      description: >-
        Contact collection on the post: people who comment are added to CRM
        lists.
      required:
        - enabled
        - settings
      properties:
        enabled:
          type: boolean
        settings:
          type: object
          required:
            - mode
            - list_id
            - keyword_rules
            - keyword_case_sensitive
          properties:
            mode:
              type: string
              nullable: true
              enum:
                - keyword_rules
                - add_all
                - null
              description: >-
                `add_all`: everyone who comments goes to `list_id`.
                `keyword_rules`: a comment with a rule's keyword goes to that
                rule's list.
            list_id:
              type: integer
              nullable: true
              description: The list for `add_all`.
            keyword_rules:
              type: array
              items:
                $ref: '#/components/schemas/PostContactKeywordRule'
            keyword_case_sensitive:
              type: boolean
              description: >-
                True: a keyword matches only with the same upper and lower case,
                so `Coffee` doesn't match `coffee`. False: case is ignored.
    Workspace:
      type: object
      description: A workspace the key can reach.
      required:
        - id
        - owner_id
        - name
        - type
        - logo
        - timezone
        - queue_slot
        - is_auto_repost_enabled_by_default
        - auto_repost_settings
        - is_auto_plug_enabled_by_default
        - auto_plug_settings
        - comments_settings
        - is_comment_moderation_enabled
        - credits
      properties:
        id:
          type: integer
          description: The workspace's id. Other routes take it as `workspace_id`.
        owner_id:
          type: integer
          description: >-
            The id of the user who owns the workspace. Their plan sets the
            workspace's limits.
        name:
          type: string
        type:
          type: string
          enum:
            - PERSONAL
            - TEAM
            - ORGANIZATION
            - CLIENT
            - PROJECT
            - DEPARTMENT
            - EVENT
            - TEMPORARY
            - COMMUNITY
            - BRAND
            - AGENCY
          description: What the workspace is for, as picked when it was made.
        logo:
          type: string
          description: The logo, or an avatar made from the name when there is none.
        timezone:
          type: string
          description: >-
            The workspace's time zone, an IANA name like `Europe/London`. Post
            times are in it.
        queue_slot:
          description: >-
            The posting queue's times, keyed by the 24-hour time. `days` has 7
            entries, Monday first: true when the time is used that day. A
            workspace with no queue times has `[]`, an empty list, not an
            object.
          oneOf:
            - type: object
              title: Queue times
              additionalProperties:
                type: object
                required:
                  - time_24
                  - time_12
                  - days
                properties:
                  time_24:
                    type: string
                    description: The time, like `08:30`.
                  time_12:
                    type: string
                    description: The same time on a 12-hour clock, like `8:30 am`.
                  days:
                    type: array
                    minItems: 7
                    maxItems: 7
                    items:
                      type: boolean
            - type: array
              title: No queue times
              maxItems: 0
              items: {}
        is_auto_repost_enabled_by_default:
          type: boolean
          description: >-
            Whether posts made in the PostSyncer app repeat by default, with
            `auto_repost_settings`. Posts made through the API or MCP don't take
            this default: send `repeatable` and its fields yourself.
        auto_repost_settings:
          type: object
          description: >-
            How auto-repost repeats a post. Without settings of its own a
            workspace has 6 hours and 2 times.
          properties:
            repeatable_gap:
              type: integer
              description: The wait between reposts, in `repeatable_gap_unit`.
            repeatable_gap_unit:
              type: string
              description: The unit of `repeatable_gap`, like `hours`.
            repeatable_times:
              type: integer
              description: How many times the post goes out again.
        is_auto_plug_enabled_by_default:
          type: boolean
          description: >-
            Whether posts made in the PostSyncer app get the default auto-plug
            from `auto_plug_settings`. Posts made through the API or MCP don't
            take this default: send `auto_plug` yourself.
        auto_plug_settings:
          type: array
          description: >-
            The workspace's auto-plugs: a reply posted when a post reaches a
            number of likes, reposts, replies or views. `[]` when there are
            none.
          items:
            type: object
            properties:
              id:
                type: string
              name:
                type: string
              is_default:
                type: boolean
                description: >-
                  True for the auto-plug new posts get when
                  `is_auto_plug_enabled_by_default` is on.
              reply_text:
                type: string
                description: The reply posted.
              likes:
                $ref: '#/components/schemas/WorkspaceAutoPlugTrigger'
              reposts:
                $ref: '#/components/schemas/WorkspaceAutoPlugTrigger'
              replies:
                $ref: '#/components/schemas/WorkspaceAutoPlugTrigger'
              views:
                $ref: '#/components/schemas/WorkspaceAutoPlugTrigger'
        comments_settings:
          type: object
          description: >-
            The comment moderation rules: what to remove, and whether AI replies
            are on. Each `remove_…` is true when that kind of comment is
            removed; the `…_list` fields hold the topics, mentions, hashtags and
            keywords to look for.
          properties:
            remove_profanity:
              type: boolean
            remove_negativity:
              type: boolean
            remove_all_comments:
              type: boolean
            remove_custom_topics:
              type: boolean
            custom_topics_list:
              type: array
              items:
                type: string
            remove_urls:
              type: boolean
            remove_emails:
              type: boolean
            remove_phones:
              type: boolean
            remove_mentions:
              type: boolean
            mentions_list:
              type: array
              items:
                type: string
            remove_hashtags:
              type: boolean
            hashtags_list:
              type: array
              items:
                type: string
            remove_keywords:
              type: boolean
            keywords_list:
              type: array
              items:
                type: string
            ai_reply:
              type: boolean
              description: Whether AI replies to comments.
        is_comment_moderation_enabled:
          type: boolean
          description: Whether comment moderation is on.
        accounts:
          type: array
          description: >-
            Only in List workspaces: the workspace's connected accounts, as
            [List accounts](/api-reference/accounts/list) gives them but without
            `boards`.
          items:
            $ref: '#/components/schemas/Account'
        brand_voice:
          type: string
          nullable: true
          description: >-
            Only in List workspaces: how the workspace sounds, in one line of up
            to 200 characters, from its brand. Null when the brand has no voice
            yet. [Get brand](/api-reference/brand/get) has the whole brand.
        credits:
          type: integer
          description: >-
            The AI credits the workspace owner has left. Every member's key sees
            the owner's credits: AI work in the workspace spends them.
    PostLabel:
      type: object
      description: >-
        A label as a post carries it: no `workspace`. [Get a
        label](/api-reference/labels/get) has the whole label.
      required:
        - id
        - name
        - color
      properties:
        id:
          type: integer
        name:
          type: string
        color:
          type: string
          description: A hex color, like `#0EA5E9`.
    Campaign:
      type: object
      description: A campaign that groups posts.
      required:
        - id
        - name
        - status
        - start_date
        - end_date
        - description
        - workspace
      properties:
        id:
          type: integer
          description: The campaign's id. Send it as a post's `campaign_id`.
        name:
          type: string
          maxLength: 255
        status:
          type: string
          enum:
            - DRAFT
            - SCHEDULED
            - ACTIVE
            - COMPLETED
            - CANCELLED
          description: >-
            `SCHEDULED` until `start_date`, `ACTIVE` until `end_date`, then
            `COMPLETED`: these follow the dates when the campaign is read.
            `DRAFT` and `CANCELLED` are holds set on the campaign, which stay
            until it is changed. The status only describes the campaign: it
            doesn't hold back or send its posts.
        start_date:
          type: string
          description: When it starts, in the workspace's timezone, as `Y-m-d H:i`.
        end_date:
          type: string
          description: When it ends, in the workspace's timezone, as `Y-m-d H:i`.
        description:
          type: string
          nullable: true
          maxLength: 255
        workspace:
          allOf:
            - $ref: '#/components/schemas/Workspace'
          description: >-
            The campaign's workspace, as [List
            workspaces](/api-reference/workspaces/list) gives it, with no
            `accounts` or `brand_voice`.
    PlatformPost:
      type: object
      description: >-
        The post on one account. `progress`, `error_message`, `analytics` and
        `post_url` appear only in the statuses named.
      required:
        - platform
        - posted_on
        - status
        - settings
        - notes
      properties:
        platform:
          type: string
          enum:
            - twitter
            - instagram
            - facebook
            - linkedin
            - youtube
            - tiktok
            - pinterest
            - threads
            - telegram
            - bluesky
            - mastodon
            - google_business
          description: The network.
        account_id:
          type: integer
          nullable: true
          description: >-
            The account this row posts to. Null only for an old row whose
            account was removed.
        posted_on:
          type: array
          items:
            type: string
          description: When it went out on this account, in the workspace's timezone.
        status:
          type: string
          enum:
            - PENDING
            - IN_PROGRESS
            - PUBLISHED
            - FAILED
          description: >-
            `PENDING`: not sent yet. `IN_PROGRESS`: being sent now. `PUBLISHED`:
            live on the network. `FAILED`: the last try failed (`error_message`
            says why).
        settings:
          type: object
          nullable: true
          additionalProperties: true
          description: >-
            This account's options, as sent in `accounts[].settings`, with the
            platform's defaults filled in. When the account posts its own media,
            `settings.media` lists those files as media objects. You can send
            them back unchanged.
        notes:
          type: array
          items:
            $ref: '#/components/schemas/PublishNote'
          description: What went partly wrong in a published result. `[]` when nothing did.
        progress:
          type: object
          nullable: true
          description: >-
            Only while `IN_PROGRESS`: what the account is doing, or null while
            it is simply posting. Read the post again to follow it.
          required:
            - stage
            - message
          properties:
            stage:
              type: string
              enum:
                - preparing_video
            message:
              type: string
              description: Like "Preparing video for TikTok".
        error_message:
          type: string
          nullable: true
          description: 'Only when `FAILED`: the network''s reason for the last try, in words.'
        analytics:
          $ref: '#/components/schemas/PlatformPostAnalytics'
        post_url:
          type: string
          description: >-
            Only when `PUBLISHED`: the post on the network, when the network
            gives a link.
    PostAutoPlug:
      type: object
      description: >-
        A reply posted on the post once it reaches any one of the thresholds
        that are on.
      required:
        - id
        - name
        - is_default
        - reply_text
        - likes
        - reposts
        - replies
        - views
      properties:
        id:
          type: string
        name:
          type: string
        is_default:
          type: boolean
        reply_text:
          type: string
        likes:
          $ref: '#/components/schemas/PostAutoPlugThreshold'
        reposts:
          $ref: '#/components/schemas/PostAutoPlugThreshold'
        replies:
          $ref: '#/components/schemas/PostAutoPlugThreshold'
        views:
          $ref: '#/components/schemas/PostAutoPlugThreshold'
    APIComment:
      type: object
      description: >-
        A comment on a post: from a network (`source: SOCIAL`), or written in
        PostSyncer (team, approval and share-link comments). `mentions`,
        `media`, `replies` and `user` are left out of a reply's
        `parent_comment`.
      required:
        - id
        - user_id
        - crm_contact_id
        - post_id
        - platform_post_id
        - parent_comment_id
        - source
        - comment_url
        - platform
        - platform_post_comment_id
        - author_name
        - author_avatar_url
        - content
        - moderation_message
        - moderation_reason
        - is_resolved
        - is_approved
        - is_deleted_on_platform
        - is_hidden_on_platform
        - media_hidden_by_platform
        - needs_reply
        - quote
        - anchor
        - account_id
        - account
        - likes_count
        - created_at
        - updated_at
      properties:
        id:
          type: integer
        user_id:
          type: integer
          nullable: true
          description: >-
            The PostSyncer member behind it: who wrote a team comment or a reply
            sent from PostSyncer (an auto-reply has the post's author, or the
            workspace owner). On a comment read from a network, the member who
            connected the account when the connected account itself wrote it.
            Null on other people's comments from a network and on a client's
            share-link comment.
        crm_contact_id:
          type: integer
          nullable: true
          description: >-
            The CRM contact saved for the commenter of a comment read from a
            network, whatever contact collection is set to. Null on team,
            approval and share-link comments, on replies sent from PostSyncer,
            and when the network withheld the author.
        post_id:
          type: integer
        platform_post_id:
          type: integer
          nullable: true
          description: >-
            The post's copy on one account (a `platforms[].id` of the post) that
            the comment is on. Null on team, approval and share-link comments.
        parent_comment_id:
          type: integer
          nullable: true
          description: The comment this one answers; null on a top-level comment.
        source:
          type: string
          enum:
            - SOCIAL
            - INTERNAL
            - APPROVAL
            - PUBLIC_SHARE
          description: >-
            `SOCIAL`: from a network, or a reply to one sent from PostSyncer.
            `INTERNAL`: a team comment, which stays in PostSyncer. `APPROVAL`: a
            note left when approving or asking for changes. `PUBLIC_SHARE`: a
            client's comment on the post's share link.
        comment_url:
          type: string
          nullable: true
          description: >-
            A link to the comment, or to the post it is on, on the network. Null
            when the network gives none.
        platform:
          type: string
          nullable: true
          description: >-
            The network, like `instagram`. Null on team, approval and share-link
            comments.
        platform_post_comment_id:
          type: string
          nullable: true
          description: >-
            The comment's id on the network. Null on a reply that hasn't gone
            out yet, and on comments that stay in PostSyncer.
        author_name:
          type: string
          nullable: true
          description: >-
            The member's name when a member wrote it; else the name or handle
            the network gives.
        author_avatar_url:
          type: string
          nullable: true
        content:
          type: string
          nullable: true
          description: >-
            The text. Null on a comment with only media. An Instagram comment
            with a picture Instagram doesn't share has `""`: see
            `media_hidden_by_platform`.
        moderation_message:
          type: string
          nullable: true
          description: What moderation did, in words.
        moderation_reason:
          type: string
          nullable: true
          description: >-
            Why moderation acted on the comment. On a comment moderation removed
            (is_deleted_on_platform true), the rule it broke:
            remove_all_comments, urls_detected, emails_detected,
            phone_numbers_detected, mentions_detected, hashtags_detected,
            keywords_detected, profanity_detected, negativity_detected or
            custom_topics_detected. On a reply the auto-reply sent:
            ai_reply_generated. Null when moderation did nothing, as on a
            comment its author deleted.
        is_resolved:
          type: boolean
          nullable: true
          description: >-
            The thread is marked resolved. Null only in the answer to [Create a
            comment](/api-reference/comments/create) when the request left it
            out; it is stored as `false`.
        is_approved:
          type: boolean
          nullable: true
          description: >-
            A flag of your own, set when the comment was created. Null when it
            wasn't set.
        is_deleted_on_platform:
          type: boolean
          nullable: true
          description: >-
            Removed on the network: deleted from PostSyncer (on YouTube, someone
            else's comment is rejected, which can't be undone), by moderation,
            or by its author. On Bluesky, a delete or moderation also marks
            someone else's reply `true`, though it stays up there. Null only in
            the answer to Create a comment.
        is_hidden_on_platform:
          type: boolean
          nullable: true
          description: >-
            Hidden on the network: by Hide, by moderation, or by a delete on X
            or Threads, which hide instead of deleting someone else's comment.
            Null only in the answer to Create a comment.
        media_hidden_by_platform:
          type: boolean
          description: >-
            Instagram: the comment holds a GIF, sticker or photo Instagram
            doesn't share. Instagram sends such a comment with no text, so its
            content is "" (an empty string) and its media is []. False on every
            other comment.
        needs_reply:
          type: boolean
          description: >-
            A top-level social comment that asks something (?, ؟ or ？), is not
            hidden or deleted, and has no reply from the workspace yet. A reply
            counts as the workspace's when it was sent from PostSyncer or
            written by the connected account in the network's own app.
        quote:
          type: string
          nullable: true
          description: 'Team comments: the words of the post this comment is about.'
        anchor:
          type: object
          nullable: true
          description: 'Team comments: where the quoted words are.'
          required:
            - thread
            - network
          properties:
            thread:
              type: integer
              description: 'The content item: 0 is the post.'
            network:
              type: string
              nullable: true
              description: >-
                The network whose own text holds the words; null for the post's
                text.
        mentions:
          type: array
          description: >-
            Team comments: the people it tags. Picture and name only, never an
            email.
          items:
            type: object
            required:
              - id
              - name
              - avatar
            properties:
              id:
                type: integer
              name:
                type: string
              avatar:
                type: string
                nullable: true
                description: A link to their picture; null when they have none.
        account_id:
          type: integer
          nullable: true
          description: >-
            A social comment: which of the post's connected accounts it is on,
            the one a reply to it is sent as. Null on team, client and approval
            comments.
        account:
          type: object
          nullable: true
          description: The account `account_id` names. Null with it.
          required:
            - id
            - name
            - username
            - avatar
          properties:
            id:
              type: integer
            name:
              type: string
              nullable: true
            username:
              type: string
              nullable: true
            avatar:
              type: string
              nullable: true
        likes_count:
          type: integer
          nullable: true
          description: >-
            The likes the network counted when PostSyncer last read the comment.
            Null when not known: team and client comments, replies sent from
            PostSyncer, Instagram and Threads.
        created_at:
          type: string
          format: date-time
          description: UTC, ISO 8601.
        updated_at:
          type: string
          format: date-time
          description: UTC, ISO 8601.
        parent_comment:
          type: object
          nullable: true
          allOf:
            - $ref: '#/components/schemas/APIComment'
          description: >-
            Get, create and update only: the comment this one answers, without
            its `mentions`, `media`, `replies` or `user`. Null on a top-level
            comment.
        replies:
          type: array
          description: >-
            The answers to it, nested up to five levels. On a list with
            `include_replies=false` it is left out.
          items:
            $ref: '#/components/schemas/APIComment'
        media:
          type: array
          description: >-
            A social comment: the photos, GIFs, videos and audio clips in it, in
            the order the comment shows them. A team comment: its attachments.
            Instagram doesn't share the pictures in comments, so an Instagram
            comment has none. On Threads, a GIF in a reply with text isn't kept.
          items:
            $ref: '#/components/schemas/APICommentMedia'
        user:
          type: object
          description: The member who wrote it. Left out when `user_id` is null.
          required:
            - id
            - name
            - avatar
          properties:
            id:
              type: integer
            name:
              type: string
            avatar:
              type: string
              nullable: true
              description: A link to their picture; null when they have none.
    APIMedia:
      type: object
      description: >-
        A file in the media library: what list, get and the uploads give, and
        what posts and comments hold.
      required:
        - id
        - workspace_id
        - folder_id
        - name
        - url
        - mime_type
        - size
        - is_processing
        - type
        - ai_generated_id
        - is_reference
        - progress
        - alt
        - duration_seconds
      properties:
        id:
          type: integer
          description: The file's id. Posts take it in `content[].media`.
        workspace_id:
          type: integer
        folder_id:
          type: integer
          nullable: true
          description: The folder it is in; null at the top of the library.
        name:
          type: string
          description: The file name.
        url:
          type: string
          format: uri
          description: The file itself, at a public link.
        thumb_url:
          type: string
          format: uri
          description: >-
            A picture's small copy (about 400 px on its long edge) for cards and
            lists, or a video's still. Left out until one is made: use `url`
            then. See [Picture
            copies](/api-reference/media/overview#picture-copies).
        medium_url:
          type: string
          format: uri
          description: >-
            A picture's medium copy (about 800 px on its long edge) for large
            tiles and previews. Left out until one is made, and for a picture no
            bigger than 800 px on its long edge, which needs none: use `url`
            then. Videos, GIFs and documents have none.
        mime_type:
          type: string
          nullable: true
          description: The file's type, like `image/jpeg`.
        size:
          type: integer
          nullable: true
          description: The size in bytes.
        is_processing:
          type: boolean
          description: >-
            True while the file is still being made (an AI video, for example).
            It can't go on a post or be deleted until it is ready.
        type:
          type: string
          nullable: true
          enum:
            - image
            - video
            - audio
            - document
            - null
          description: >-
            The kind of file, from `mime_type`: `document` is a PDF, Word or
            PowerPoint file. Null for any other type.
        ai_generated_id:
          type: integer
          nullable: true
          description: Set when PostSyncer's AI made the file; null for uploads.
        is_reference:
          type: boolean
          description: True for a reference picture kept for AI video, not for posting.
        progress:
          type: integer
          description: Always 100.
        alt:
          type: string
          nullable: true
          description: The alt text, when set.
        duration_seconds:
          type: number
          nullable: true
          description: >-
            A video's or sound's length in seconds, read when it was uploaded.
            Null for pictures and documents, and for files stored before lengths
            were read.
    PostContactKeywordRule:
      type: object
      required:
        - keyword
        - list_id
      properties:
        keyword:
          type: string
          description: The word to look for in a comment.
        list_id:
          type: integer
          description: The CRM list a matching commenter goes to.
    WorkspaceAutoPlugTrigger:
      type: object
      description: 'One trigger of an auto-plug: on, and the count that fires it.'
      properties:
        enabled:
          type: boolean
        count:
          type: integer
          minimum: 0
    Account:
      type: object
      description: A connected social account.
      required:
        - id
        - workspace_id
        - platform
        - username
        - name
        - avatar
        - has_expired
        - needs_reconnect
        - reconnect_reason
        - platform_hold
        - renewal_failing
        - sign_in_ends_at
        - profile_url
        - is_default
        - support_threads
        - is_verified
        - plan_allows_posting
        - analytics_unavailable
      properties:
        id:
          type: integer
          description: The account's id. Posts take it in `accounts[].id`.
        workspace_id:
          type: integer
        platform:
          type: string
          enum:
            - twitter
            - linkedin
            - instagram
            - facebook
            - tiktok
            - youtube
            - threads
            - pinterest
            - bluesky
            - telegram
            - mastodon
            - google_business
          description: >-
            The network. `twitter` is X; `google_business` is Google Business
            Profile.
        username:
          type: string
          nullable: true
          description: >-
            The handle on the network, without `@` (a Mastodon handle includes
            its server).
        name:
          type: string
          nullable: true
          description: The display name on the network.
        avatar:
          type: string
          description: >-
            The profile picture, or an avatar made from the name when there is
            none.
        has_expired:
          type: boolean
          description: The same as `needs_reconnect`, kept for older integrations.
        needs_reconnect:
          type: boolean
          description: >-
            True when the sign-in no longer works, so the account can't post
            until someone reconnects it in PostSyncer. A new post leaves it out
            and lists it in `skipped_accounts`.
        reconnect_reason:
          type: string
          nullable: true
          description: >-
            The network's reason the account needs reconnecting, when it gave
            one. Null when `needs_reconnect` is false.
        platform_hold:
          type: object
          nullable: true
          description: >-
            Set when the network holds the account until its owner acts there
            (an identity check, a lock, a suspension, a restriction, the bot
            removed from a channel). The sign-in still works, so no reconnect is
            needed: posts to it fail with the network's reason until the hold is
            resolved there, and trying a failed post again asks the network
            again. Null when not held.
          required:
            - reason
            - scope
            - since
            - next_check_at
          properties:
            reason:
              type: string
              nullable: true
              description: The network's own words.
            scope:
              type: string
              nullable: true
              enum:
                - publish
                - all
                - null
              description: >-
                `publish`: only posting is held. `all`: everything the account
                does is.
            since:
              type: string
              format: date-time
              nullable: true
              description: When the network first refused.
            next_check_at:
              type: string
              format: date-time
              nullable: true
              description: >-
                When PostSyncer asks the network again (every 3 hours). Null
                while a retry is letting posts through.
        renewal_failing:
          type: object
          nullable: true
          description: >-
            Set when the network refused to renew a sign-in that still works.
            The account keeps posting until `works_until`; if the renewal is
            still refused then, it needs a reconnect. Null when renewals are
            fine.
          required:
            - reason
            - since
            - works_until
          properties:
            reason:
              type: string
              nullable: true
              description: The network's reason for refusing.
            since:
              type: string
              format: date-time
              nullable: true
              description: When the renewal was first refused.
            works_until:
              type: string
              format: date-time
              nullable: true
              description: >-
                When the sign-in stops working. Reconnect the account before
                then.
        sign_in_ends_at:
          type: string
          format: date-time
          nullable: true
          description: >-
            When the network ends this sign-in whatever PostSyncer does
            (LinkedIn: a year after it was connected). Reconnect the account
            before then. Null when the network doesn't say.
        profile_url:
          type: string
          nullable: true
          description: >-
            The account's own page on its network. Null when PostSyncer can't
            make one, for example a Mastodon account without its server, or a
            Telegram channel with no public name.
        is_default:
          type: boolean
          description: Whether the account is picked by default for new posts.
        support_threads:
          type: boolean
          nullable: true
          description: >-
            Whether a post can be a thread of several parts on this network (X,
            Threads, Bluesky and Mastodon).
        is_verified:
          type: boolean
          nullable: true
          description: >-
            Whether the network marks the account verified (X only; false
            elsewhere).
        plan_allows_posting:
          type: boolean
          description: >-
            False when the owner's plan doesn't let new posts go to this account
            (Free outside a first week: 2 picked accounts). Drafts, replies and
            analytics still work.
        can_publish_articles:
          type: boolean
          description: >-
            X accounts only: true when X lets the account publish Articles (X
            Premium or Premium+). Absent for other networks.
        analytics_unavailable:
          type: object
          nullable: true
          description: >-
            Why this account's post numbers can't be read, or null when they
            can. Its posts' numbers are not read meanwhile.
          required:
            - reason
            - message
          properties:
            reason:
              type: string
              enum:
                - x_private
                - linkedin_reconnect
                - pinterest_not_business
                - google_business_no_post_stats
                - telegram_private
              description: >-
                `x_private`: a private X account. `linkedin_reconnect`: a
                LinkedIn profile on the older connection; reconnect it.
                `pinterest_not_business`: not a Pinterest business account.
                `google_business_no_post_stats`: Google gives numbers for a
                location, never for one post. `telegram_private`: a private
                Telegram channel shows no views (subscribers are still counted).
            message:
              type: string
              description: The same, in words to show a person.
        is_page:
          type: boolean
          description: >-
            LinkedIn accounts only: true for a Company Page, false for a person.
            Absent for other networks.
        location:
          type: object
          description: >-
            Google Business Profile accounts only: the location this account is.
            Absent for other networks.
          required:
            - address
            - verified
            - can_post
            - maps_uri
            - new_review_uri
          properties:
            address:
              type: string
              nullable: true
            verified:
              type: boolean
              description: Whether Google verified the location.
            can_post:
              type: boolean
              description: Whether Google lets the location publish posts.
            maps_uri:
              type: string
              nullable: true
              description: The location on Google Maps.
            new_review_uri:
              type: string
              nullable: true
              description: The link that opens Google's form for a new review.
        boards:
          type: array
          description: >-
            List accounts and Get account only. A Pinterest account's boards,
            read from Pinterest; `[]` for other networks, and when Pinterest
            can't be read. Pass a board's `id` as `accounts[].settings.board_id`
            on a post.
          items:
            type: object
            required:
              - id
              - name
              - image_cover_url
            properties:
              id:
                type: string
                nullable: true
              name:
                type: string
              image_cover_url:
                type: string
                nullable: true
        playlists:
          type: array
          nullable: true
          description: >-
            Get account only. A YouTube channel's own playlists, read from
            YouTube, up to 500. `[]` for other networks and when
            `playlists_reconnect` is `true`. `null` when YouTube didn't answer:
            the channel may still have playlists, so try again later. Pass a
            playlist's `id` as `accounts[].settings.playlist_id` on a post to
            add the video to it.
          items:
            type: object
            required:
              - id
              - title
              - privacy_status
              - video_count
            properties:
              id:
                type: string
              title:
                type: string
              privacy_status:
                type: string
                nullable: true
                enum:
                  - public
                  - unlisted
                  - private
                  - null
                description: Who can see the playlist.
              video_count:
                type: integer
                nullable: true
                description: How many videos it holds.
        playlists_reconnect:
          type: boolean
          description: >-
            Get account only. `true` for a YouTube channel that must be
            reconnected to list its playlists and add videos to them: it was
            connected before PostSyncer asked YouTube for that permission, or
            its sign-in no longer works. `false` for every other account.
        scheduled_posts:
          type: object
          description: >-
            Get account only. Scheduled posts still to go out to this account.
            Deleting the account moves the ones that go only to it to drafts
            (they keep their time); the others still go to their other accounts.
          required:
            - total
            - only_this_account
          properties:
            total:
              type: integer
            only_this_account:
              type: integer
              description: The ones with no other account.
        posts_to_put_back:
          type: object
          nullable: true
          description: >-
            Get account only. Set when this profile was disconnected and
            connected again to the same workspace, and posts it was on can get
            it back with [Put back account
            posts](/api-reference/accounts/put-back-posts). Null otherwise.
          required:
            - posts
            - counts
            - relinked
            - disconnected_at
          properties:
            posts:
              type: integer
              description: Posts that would get the account back.
            counts:
              $ref: '#/components/schemas/PutBackCounts'
            relinked:
              type: integer
              description: >-
                Published posts already linked to the account again, with their
                link, numbers and comments. That happens on its own at the
                reconnect and sends nothing.
            disconnected_at:
              type: string
              format: date-time
              nullable: true
              description: When the profile was disconnected.
    PublishNote:
      type: object
      required:
        - type
        - message
      properties:
        type:
          type: string
          enum:
            - thread_unposted
            - unconfirmed
            - thumbnail_error
            - text_shortened
            - mentions_untagged
            - repeat_failed
            - setting_not_applied
          description: >-
            `thread_unposted`: some parts of the thread didn't go out.
            `unconfirmed`: the network never said the video was ready.
            `thumbnail_error`: the custom cover wasn't applied.
            `text_shortened`: X text was cut to fit the account, or a YouTube
            description to 5,000 bytes. `mentions_untagged`: LinkedIn people who
            couldn't be tagged went out as plain names. `repeat_failed`: a
            repeat didn't go out; the earlier post is still live.
            `setting_not_applied`: a network setting that is applied after the
            post is made didn't take, such as a YouTube playlist, a Telegram pin
            or a Bluesky reply rule; `setting` names it. The post itself is
            live.
        message:
          type: string
          description: What happened, in words.
        items:
          type: array
          nullable: true
          items:
            type: integer
          description: 'For `thread_unposted` and `text_shortened`: the parts it is about.'
        setting:
          type: string
          description: >-
            For `setting_not_applied`: the `accounts[].settings` key that didn't
            take, such as `playlist_id`.
    PlatformPostAnalytics:
      type: object
      description: >-
        Only when `PUBLISHED`: the post's numbers on this network. A number the
        network doesn't report is null, never 0.
      required:
        - comments
        - likes
        - shares
        - impressions
        - quotes
        - saves
        - views
        - reach
        - clicks
        - profile_visits
        - engagement_rate
        - pending
        - synced_at
      properties:
        comments:
          type: integer
          nullable: true
        likes:
          type: integer
          nullable: true
        shares:
          type: integer
          nullable: true
          description: Shares and reposts together.
        impressions:
          type: integer
          nullable: true
        quotes:
          type: integer
          nullable: true
        saves:
          type: integer
          nullable: true
        views:
          type: integer
          nullable: true
        reach:
          type: integer
          nullable: true
        clicks:
          type: integer
          nullable: true
        profile_visits:
          type: integer
          nullable: true
        engagement_rate:
          type: number
          nullable: true
          description: >-
            Interactions over impressions, in percent with 2 decimals (9.62 is
            9.62%). Null without impressions.
        pending:
          type: boolean
          description: True until the numbers were read once.
        synced_at:
          type: string
          format: date-time
          nullable: true
          description: When the numbers were last read.
    PostAutoPlugThreshold:
      type: object
      required:
        - enabled
        - count
      properties:
        enabled:
          type: boolean
        count:
          type: integer
          nullable: true
          description: The number that fires the reply.
    APICommentMedia:
      description: >-
        A picture, GIF, video or audio clip in a social comment, or a file
        attached to a team comment: a media library item, plus its kind and
        whether the network marked it sensitive.
      allOf:
        - $ref: '#/components/schemas/APIMedia'
        - type: object
          required:
            - kind
            - sensitive
          properties:
            kind:
              type: string
              enum:
                - photo
                - gif
                - video
                - audio
                - file
              description: >-
                On a social comment, what the network sent: photo, gif, video or
                audio. type is the saved file's type, so the two can differ: a
                video kept as its still has type image and kind video; a saved
                video file's still is at thumb_url once it is made. On a team
                comment, kind follows the file's type: photo, gif, video, audio,
                or file for anything else (a PDF, for example).
            sensitive:
              type: boolean
              description: >-
                True when the network marked the picture sensitive, for example
                a Mastodon post marked sensitive or a Bluesky post with an adult
                or graphic label.
    PutBackCounts:
      type: object
      description: >-
        Posts by what putting back does with them (all 11 are always there):
        `scheduled_again` (a draft the disconnect took off the schedule,
        unchanged since, scheduled again at its time), `added_to_scheduled`
        (scheduled or waiting for approval: the account is added, the time
        stays), `added_to_draft` (a draft stays a draft),
        `added_to_draft_time_passed` and `added_to_draft_changed` (taken off the
        schedule by the disconnect, but its time passed or it was edited since,
        so it stays a draft), `added_to_draft_refused` (kept a draft because the
        plan's post limit refused scheduling it), `skipped_deleted`,
        `skipped_already_there`, `skipped_went_out` (published, failed or
        sending), `skipped_time_passed` (due within 5 minutes), and `not_done`
        (an error stopped it; calling again tries it again).
      required:
        - scheduled_again
        - added_to_scheduled
        - added_to_draft
        - added_to_draft_time_passed
        - added_to_draft_changed
        - added_to_draft_refused
        - skipped_deleted
        - skipped_already_there
        - skipped_went_out
        - skipped_time_passed
        - not_done
      properties:
        scheduled_again:
          type: integer
        added_to_scheduled:
          type: integer
        added_to_draft:
          type: integer
        added_to_draft_time_passed:
          type: integer
        added_to_draft_changed:
          type: integer
        added_to_draft_refused:
          type: integer
        skipped_deleted:
          type: integer
        skipped_already_there:
          type: integer
        skipped_went_out:
          type: integer
        skipped_time_passed:
          type: integer
        not_done:
          type: integer
  examples:
    PostScheduledSaved:
      summary: Scheduled
      value:
        id: 4182
        content:
          - text: >-
              Our spring menu starts today. The lavender oat latte is back, and
              so is the rhubarb bun.
            media:
              - id: 9051
                workspace_id: 12
                folder_id: null
                name: latte-art.jpg
                url: https://cdn.postsyncer.com/examples/latte-art.jpg
                thumb_url: https://cdn.postsyncer.com/examples/latte-art-thumb.jpg
                medium_url: https://cdn.postsyncer.com/examples/latte-art-medium.jpg
                mime_type: image/jpeg
                size: 482113
                is_processing: false
                type: image
                ai_generated_id: null
                is_reference: false
                progress: 100
                alt: Latte art in a blue cup
                duration_seconds: null
            cover_image: null
            is_first_comment: false
            first_comment_delay: null
          - text: Find us at 14 Mill Lane, open 7 to 4 every day.
            media: []
            cover_image: null
            is_first_comment: true
            first_comment_delay: 1
        status: SCHEDULED
        content_version: 1
        posted_on: []
        scheduled_at: 2030-03-15 09:00
        repeatable: null
        repeatable_times: null
        repeatable_gap: null
        repeatable_gap_unit: null
        repeatable_accounts: null
        remaining_posts: null
        comments_settings: null
        contact_collection_settings: null
        created_at: 2030-03-01 10:24
        updated_at: 2030-03-01 10:24
        workspace:
          id: 12
          owner_id: 7
          name: Halden Coffee
          type: BRAND
          logo: https://cdn.postsyncer.com/examples/halden-coffee-logo.png
          timezone: Europe/London
          queue_slot:
            '09:00':
              time_24: '09:00'
              time_12: 9:00 am
              days:
                - true
                - true
                - true
                - true
                - true
                - false
                - false
          is_auto_repost_enabled_by_default: false
          auto_repost_settings:
            repeatable_gap: 6
            repeatable_gap_unit: hours
            repeatable_times: 2
          is_auto_plug_enabled_by_default: false
          auto_plug_settings: []
          comments_settings:
            remove_profanity: false
            remove_negativity: false
            remove_all_comments: false
            remove_custom_topics: false
            custom_topics_list: []
            remove_urls: false
            remove_emails: false
            remove_phones: false
            remove_mentions: false
            mentions_list: []
            remove_hashtags: false
            hashtags_list: []
            remove_keywords: false
            keywords_list: []
            ai_reply: false
          is_comment_moderation_enabled: false
          credits: 240
        labels: []
        campaign: null
        platforms:
          - platform: instagram
            account_id: 301
            posted_on: []
            status: PENDING
            settings:
              post_type: POST
              caption: null
              reel_trial_enabled: false
              graduation_strategy: MANUAL
              collaborators: []
            notes: []
          - platform: linkedin
            account_id: 302
            posted_on: []
            status: PENDING
            settings:
              visibility: PUBLIC
              link: null
              title: null
            notes: []
        auto_plug: null
        skipped_accounts: []
        needs_media: []
  responses:
    Unauthorized401:
      description: No API key, or not a valid one.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
          examples:
            unauthenticated:
              summary: No valid API key
              value:
                message: Unauthenticated.
    RateLimited429:
      description: >-
        More than 60 requests in a minute from this key's user (the API and the
        MCP server share the count). Wait `Retry-After` seconds.
      headers:
        Retry-After:
          description: Seconds until requests are allowed again.
          schema:
            type: integer
        X-RateLimit-Limit:
          description: Requests allowed a minute.
          schema:
            type: integer
        X-RateLimit-Remaining:
          description: Requests left this minute.
          schema:
            type: integer
        X-RateLimit-Reset:
          description: When requests are allowed again, as a Unix timestamp.
          schema:
            type: integer
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
          examples:
            too_many_attempts:
              summary: Too many requests
              value:
                message: Too Many Attempts.
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.