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

# Update a post

> Change a post's content, accounts or settings, or move it to another time.

> [!NOTE]
>
> Needs `posts:update`. `schedule` also needs `posts:schedule`, and `publish_now` also needs `posts:publish`. Editing a post that is scheduled or waiting for approval keeps it so, which needs `posts:schedule` too. A key with only `posts:update` can change drafts and take posts off the schedule (`schedule_type: draft`). See [Permissions](/docs/essentials/authentication.md#permissions).

Send `workspace_id` and the whole `content`, every part. Every other field you leave out keeps what the post has: its time, `accounts`, `labels`, `campaign_id`, `auto_plug` and the repeat settings. So editing a scheduled post's text without `schedule_type` keeps it at its time.

The answer is the post as saved ([the post object](/docs/api-reference/posts/object.md)) plus `skipped_accounts` and `needs_media`, the accounts that still need a photo or video (see [Networks that need a photo or video](/docs/api-reference/posts/create.md#networks-that-need-a-photo-or-video)). A refused update saves nothing.

## What each field does when sent

* `schedule_type`: `draft` takes the post off the schedule; `schedule` moves it to `schedule_for`, and without it keeps the post's own time while that is ahead, or else takes the next free queue time; `publish_now` sends it at once. When no queue time is free, `schedule` with no `schedule_for` and no time ahead 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 nothing is saved; from someone whose role can't publish it is sent for approval instead, with the time it has, or none. Leaving it out depends on the post's status, below.
* `accounts`: replaces the post's accounts and each account's `settings`. An account the post was already published to, or is publishing to now, is never removed. Send an account's `settings.media` again to keep its own media.
* `labels: []` removes the labels. `campaign_id: null` removes the campaign.
* `repeatable: false` stops the repeats.
* A content part without `cover_image` keeps the cover it has. `"cover_image": null` removes it.

A failed or partly failed post given `schedule` or `publish_now` goes out again to the accounts it failed on. The accounts it was published to don't get it again.

## Leaving out `schedule_type`

| The post's status | What the update does |
| - | - |
| `SCHEDULED` | Stays scheduled at its time while it is ahead. A time that has passed moves to the next free queue time, or stays when none is free (it goes out at the next run). With no time at all it takes the next free queue time, and is refused with `422` when none is free: a scheduled post is never left without a time. Refused with `403` if your role can't publish (see below). Needs `posts:schedule`. |
| `PENDING_APPROVAL` | Keeps waiting for approval, at its time while it is ahead; otherwise at the next free queue time, or with its time (or none) when none is free. The app's Publish now, from someone whose role can't publish, sends a post for approval with no time. Needs `posts:schedule`. |
| `DRAFT` | Stays a draft, with its time. |
| `FAILED`, `PARTIALLY_FAILED`, `REJECTED` | Becomes a `DRAFT`, with its time. Nothing is sent: its failed accounts stay `FAILED` until you send `schedule` or `publish_now`. |
| `PUBLISHED`, with repeats still to go | Stays published; the edit is what its next repeats send. |
| `PUBLISHED`, not repeating | Refused with `409`. |
| `IN_QUEUE`, `IN_PROGRESS` | Refused with `409` while it is being published. |

## Don't overwrite someone else's change

Send the `content_version` you read the post at. If the post changed since (in the app, or by another key), the update is refused with `409` and `error: post_changed_elsewhere`, and `content_version` in the answer is the post's version now. Read the post again, apply your change, and send it with the new version. Without `content_version`, the update always overwrites.

## When an update is refused

* A post being published right now answers `409`; try again in a moment.
* A published post that doesn't repeat refuses every update with `409`, even one that only changes `labels` or `campaign_id`. A published post with repeats still to go takes edits, and they are what its next repeats send. Neither can be sent again with `schedule` or `publish_now` (`409`). To post a new version, [create a post](/docs/api-reference/posts/create.md).
* A post can't move to another workspace (`422`).
* Someone whose role can't publish can't change an approved, scheduled post without `schedule_type` or with `draft`: `403` "This post is already approved and scheduled. Changing it needs a new approval: make your changes and use Request approval. Here, send the change with schedule\_type: schedule to ask for a new approval.", and nothing is saved. Their edits with `schedule` or `publish_now` send it for approval again (`PENDING_APPROVAL`), and its approvers are asked again. They can't take a repeating post back to a draft either (`403`). A client can't edit posts.

When one API key or agent takes 10 or more scheduled posts off the schedule, or deletes them, within an hour, the workspace owner and managers get an email and a [`posts.bulk_removed`](/docs/api-reference/webhooks/overview#other-events) webhook is sent. The posts taken off the schedule can be put back with the email's link for 7 days: each goes back to the time it had, unless it changed since, that time has passed, or it has no account left. Deleted posts are gone and can't be put back; the email only says how many were deleted.

## Free plan

A post counts once toward the Free plan's 20 posts a month, when it is first scheduled, published or sent for approval. Updating a post that already counted, or sending a failed one again, doesn't count again. Taking a draft onto the schedule past the 20 is refused with `403`, `error: plan_limit_reached`, `limit: posts`. Adding labels or a campaign on Free is refused with `limit: labels` or `limit: campaigns`. On Free outside a first week, scheduling or publishing to an account whose `plan_allows_posting` is `false` is refused with `limit: free_accounts`; editing the text of a post a first week or a drop to Free covers keeps all its accounts. See [Plan limits](/docs/plan-limits.md#accounts-on-free).

## Platform-specific settings

The keys are the same as on [Create a post](/docs/api-reference/posts/create.md#platform-specific-settings), which has examples: own media for one account, Instagram trial Reels and collaborators, Pinterest boards, X Articles and [LinkedIn mentions](/docs/api-reference/posts/create.md#linkedin-mentions).

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).

## Errors

| Status | `error` | When | Retry? |
| - | - | - | - |
| 401 | | No API key, or not a valid one. | No: fix the key. |
| 403 | | The key lacks `posts:update`, or the `posts:schedule` or `posts:publish` the `schedule_type` needs. Or the key's user is inactive. | No: grant it in Settings → API. |
| 403 | | Your role can't edit posts, or can't change an approved or repeating post. | No. |
| 403 | `plan_limit_reached` | Free plan: this month's 20 posts are used, labels or a campaign were added, or the post goes to an account whose `plan_allows_posting` is `false` (`limit: free_accounts`). | After `resets_at` for posts. For `free_accounts`, leave the account out or save a draft. |
| 404 | | No post with that id in the workspaces the key can reach. | No. |
| 409 | `post_changed_elsewhere` | The post changed since the `content_version` you sent. | Yes: read the post, then send again. |
| 409 | | The post is being published right now, or is already published. | Yes in a moment for the first; no for the second. |
| 422 | | A field is missing or wrong, the time has passed, no queue time is free for a post that needs one (`schedule_for`), or `workspace_id` isn't the post's. `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, and `content_version`.
* [Get a post](/docs/api-reference/posts/get.md): read the post before you change it.
* [Post history](/docs/api-reference/posts/history.md): who changed it, and when.


## OpenAPI

````yaml PUT /posts/{id}
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/{id}:
    put:
      tags:
        - Posts
      summary: Update a post
      description: >-
        Needs `posts:update`. `schedule` also needs `posts:schedule`, and
        `publish_now` also needs `posts:publish`. Send `workspace_id` and the
        whole `content`; every other field left out keeps what the post has.
        Leaving out `schedule_type` keeps a `SCHEDULED` post scheduled and a
        `PENDING_APPROVAL` post waiting, at their time while it is ahead
        (`schedule_type` says what a time that has passed, or none, becomes),
        which needs `posts:schedule` too; a `DRAFT`, `FAILED`,
        `PARTIALLY_FAILED` or `REJECTED` post is saved as a `DRAFT`, and its
        failed accounts stay `FAILED`. If your role can't publish, changing a
        `SCHEDULED` post with `schedule_type` left out or `draft` is refused
        with `403`; send `schedule` to ask for a new approval. A `PUBLISHED`
        post that doesn't repeat refuses every update with `409`, even one that
        only changes `labels` or `campaign_id`. A failed post given `schedule`
        or `publish_now` goes out again to the accounts it failed on. 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. The answer has
        `skipped_accounts` and `needs_media` as Create a post's does: a draft
        whose Instagram, TikTok, Pinterest or YouTube account has no photo or
        video is saved, and lists that account in `needs_media`.
      operationId: updatePost
      parameters:
        - name: id
          in: path
          required: true
          description: The post's id.
          schema:
            type: integer
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
                - workspace_id
                - content
              properties:
                workspace_id:
                  type: integer
                  description: >-
                    The post's workspace. It must be the post's own: a post
                    can't move to another workspace (`422`).
                content:
                  type: array
                  minItems: 1
                  items:
                    $ref: '#/components/schemas/PostContentThread'
                  description: >-
                    The whole content, every part: it replaces what the post
                    has. At least one part with text or media.
                schedule_type:
                  type: string
                  enum:
                    - draft
                    - schedule
                    - publish_now
                  description: >-
                    Leave it out and what the post becomes depends on its
                    status. `SCHEDULED` stays scheduled at its time while that
                    time is ahead; a time that has passed moves to the next free
                    queue time, or stays when none is free (the post goes out at
                    the next run); with no time it takes the next free queue
                    time, or is refused with `422` under `schedule_for` when
                    none is free. `PENDING_APPROVAL` keeps waiting, at its time
                    while that time is ahead, otherwise at the next free queue
                    time, or with its time (or none) when none is free. Both
                    need `posts:schedule`. A `PUBLISHED` post that still repeats
                    stays published; `DRAFT`, `FAILED`, `PARTIALLY_FAILED` and
                    `REJECTED` are saved as a `DRAFT` with their time, and
                    failed accounts stay `FAILED`. `draft` saves it and sends
                    nothing; it needs only `posts:update`. If your role in the
                    workspace can't publish, changing a `SCHEDULED` post with
                    `draft` or with `schedule_type` left out is refused with
                    `403`. `schedule` goes out at `schedule_for`; without it, it
                    keeps the post's own time while that time is ahead, or else
                    takes the workspace's next free queue time, and is refused
                    with `422` under `schedule_for` when none is free. It needs
                    `posts:schedule`. `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 `schedule` with no free
                    queue time keeps the time the post has, or none.
                schedule_for:
                  type: object
                  nullable: true
                  allOf:
                    - $ref: '#/components/schemas/PostScheduleFor'
                  description: >-
                    When the post goes out, with `schedule`. Leave it out to
                    keep the post's time when it is still ahead; `null` clears a
                    draft's time.
                accounts:
                  type: array
                  items:
                    $ref: '#/components/schemas/PostAccount'
                  description: >-
                    The accounts to post to, with their options. It replaces the
                    post's accounts; an account it was already published to, or
                    is publishing to now, is kept. Leave it out to keep them. 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.
                labels:
                  type: array
                  items:
                    type: integer
                  description: >-
                    Label ids from the workspace. Paid plans only. Leave it out
                    to keep the post's labels; `[]` removes them.
                campaign_id:
                  type: integer
                  nullable: true
                  description: >-
                    A campaign id from the workspace. Paid plans only. Leave it
                    out to keep the post's campaign; `null` removes it.
                repeatable:
                  type: boolean
                  nullable: true
                  description: >-
                    True to repeat the post after it first goes out. `false`
                    stops the repeats. Leave it out to keep the repeat settings.
                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. Leave it out to keep the post's.
                content_version:
                  type: integer
                  minimum: 1
                  description: >-
                    The `content_version` you read the post at. When the post
                    changed since, the update is refused (`409`,
                    `post_changed_elsewhere`) instead of overwriting that
                    change. Leave it out to always overwrite.
            examples:
              default:
                summary: Change the text, keep the time
                value:
                  workspace_id: 12
                  content_version: 1
                  content:
                    - text: >-
                        Our spring menu starts today. The lavender oat latte is
                        back, with oat or whole milk.
                      media:
                        - 9051
                    - text: Find us at 14 Mill Lane, open 7 to 4 every day.
                      is_first_comment: true
              reschedule:
                summary: Move it to another 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
                  schedule_for:
                    date: '2030-03-16'
                    time: '10:30'
              unschedule:
                summary: Take it off the schedule
                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
      responses:
        '200':
          description: The post as saved.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PostWithSkippedAccounts'
              examples:
                default:
                  summary: Text changed, same time
                  value:
                    id: 4182
                    content:
                      - text: >-
                          Our spring menu starts today. The lavender oat latte
                          is back, with oat or whole milk.
                        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: 2
                    posted_on: []
                    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-02 11:05
                    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: []
        '401':
          $ref: '#/components/responses/Unauthorized401'
        '403':
          description: >-
            The key lacks a permission this needs, 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`). A person who can't publish can't change a
            `SCHEDULED` post, or a post that repeats after it went out, with
            `schedule_type` left out or `draft`; for a `SCHEDULED` post,
            `schedule` sends the change for a new approval instead. Nothing was
            saved.
          content:
            application/json:
              schema:
                anyOf:
                  - $ref: '#/components/schemas/PlanLimitError'
                  - $ref: '#/components/schemas/Error'
              examples:
                missing_permission:
                  summary: The key lacks posts:publish
                  value:
                    message: >-
                      This API key does not have the "posts:publish" permission.
                      Edit the key in PostSyncer under Settings → API to grant
                      it.
                role:
                  summary: The role can't edit posts
                  value:
                    message: >-
                      Your role in the workspace "Halden Coffee" does not allow
                      you to edit posts. Ask the workspace owner or a manager to
                      do it, or to change your role.
                approved_post:
                  summary: 'Not a publisher: the post is approved and scheduled'
                  value:
                    message: >-
                      This post is already approved and scheduled. Changing it
                      needs a new approval: make your changes and use Request
                      approval. Here, send the change with schedule_type:
                      schedule to ask for a new approval.
                repeating_post:
                  summary: 'Not a publisher: the post repeats'
                  value:
                    message: >-
                      This post repeats, and its next repeats send what was
                      approved. Ask someone who can publish to change it, or
                      duplicate it and send the copy for approval.
                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
                inactive_account:
                  summary: The key's user is inactive
                  value:
                    message: Your account is inactive.
        '404':
          $ref: '#/components/responses/NotFound404'
        '409':
          description: >-
            The post changed since the `content_version` you sent, it is being
            published right now, or it is already published. Nothing was saved.
          content:
            application/json:
              schema:
                allOf:
                  - $ref: '#/components/schemas/Error'
                  - type: object
                    properties:
                      error:
                        type: string
                        enum:
                          - post_changed_elsewhere
                        description: >-
                          Only when the post changed after the `content_version`
                          you sent.
                      content_version:
                        type: integer
                        description: >-
                          With `post_changed_elsewhere`: the post's version now.
                          Read the post again before saving.
              examples:
                post_changed_elsewhere:
                  summary: Changed since you read it
                  value:
                    message: This post was changed somewhere else since you opened it.
                    error: post_changed_elsewhere
                    content_version: 4
                publishing_now:
                  summary: Being published right now
                  value:
                    message: >-
                      This post is being published right now, so it cannot be
                      changed. Try again in a moment.
                already_published:
                  summary: Already published
                  value:
                    message: This post is already published.
                published_content:
                  summary: 'Published: the content can''t change'
                  value:
                    message: >-
                      This post is already published, so its content cannot
                      change. Duplicate it to post a new version.
        '422':
          description: >-
            The request didn't pass validation, and nothing was saved. When no
            queue time is free, two saves are refused under `schedule_for`:
            `schedule` with no `schedule_for` on a post with no time ahead (if
            your role can't publish, it is sent for approval instead, with the
            time it has, or none), and an update that leaves `schedule_type` out
            of a `SCHEDULED` post with no time. A scheduled post is never left
            without a time. Rarely, a save that fails for another reason answers
            `422` with only `message`; try again.
          content:
            application/json:
              schema:
                anyOf:
                  - $ref: '#/components/schemas/ValidationError'
                  - $ref: '#/components/schemas/Error'
              examples:
                other_workspace:
                  summary: Another workspace
                  value:
                    message: >-
                      Post #4182 belongs to workspace #12; a post cannot be
                      moved to another workspace.
                    errors:
                      workspace_id:
                        - >-
                          Post #4182 belongs to workspace #12; a post cannot be
                          moved to another workspace.
                time_passed:
                  summary: The time has passed
                  value:
                    message: The scheduled time must be in the future.
                    errors:
                      schedule_for.time:
                        - The scheduled time must be in the future.
                label_not_in_workspace:
                  summary: A label from another workspace
                  value:
                    message: 'Label #88 does not belong to the specified workspace.'
                    errors:
                      labels.0:
                        - 'Label #88 does not belong to the specified workspace.'
                no_free_slot:
                  summary: No time ahead, 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.
        '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
  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.
    NotFound404:
      description: Nothing with that id in the workspaces the key can reach.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
          examples:
            not_found:
              summary: Not found
              value:
                message: Not found.
    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.