# Posts API reference

Base URL `https://api.beplan.io/v1`. Every operation is listed with its scope, permission, inputs, answers, errors and an example. Conventions: https://beplan.io/docs/api.md. OpenAPI document: https://beplan.io/docs/api/openapi.json.

Pages of this area:

- Posts (main): https://beplan.io/docs/api/posts.md
- Review, approval, previews and links: https://beplan.io/docs/api/posts/review-and-approval.md

## Create a post

`POST /organizations/{organizationId}/workspaces/{workspaceId}/posts` · operationId `posts.create`

- Scope: `posts:write`
- Role permission: Create posts (`post:create`)
- Effect (`write`): Changes data in Beplan.
- Idempotency: Send an `Idempotency-Key` to retry safely: the same key with the same body within 24 hours returns the stored response.
- Stability: Beta (May still change before it is marked stable.) Since 2026-11-19.

Creates a draft post (status `idea`) with whatever you send: every field is optional. `platforms` lists the connected accounts it goes to (ids from `GET …/social-accounts`), each with its own caption, media, thread and platform options (`additionalParams`) when they differ from the post's. `media` are ids of the workspace's media library: upload or import the files there first. Nothing is published: schedule the post (`POST …/posts/:postId/schedule`) or publish it now (`POST …/posts/:postId/publish-now`) once it is complete. Answers `201` with the post. People with the post open in Beplan see it appear on their drafts board.

**Parameters**

| Name | In | Type | Required | Description |
|---|---|---|---|---|
| `organizationId` | path | string | yes | 1–128 characters |
| `workspaceId` | path | string (uuid) | yes |  |

**Request body** (JSON, required)

- `baseUpdatedAt` (string (date-time), optional): Optional precondition: the post's `updatedAt` you last read. When the post changed since, nothing is written (`409 POST_CHANGED_ELSEWHERE`): read it again and retry. Omitted, the save overwrites.
- `liveEpoch` (integer, optional): Beplan's own editor only (live co-editing). Integrations omit it. at least 0.
- `title` (string, optional): at most 255 characters.
- `caption` (string, optional): The caption every account uses unless it has its own `customCaption`. Captions (the post's, an account's `customCaption` and thread posts) can hold two tokens, replaced when the post goes out: `{{post:<postId|this>:<socialAccountId>}}` links to another publication (a post on one account; `this` is the post being written), becoming its public URL; the post then waits for that publication and can only be scheduled after it (find targets with `posts.linkTargets.list`, check with `posts.linkStatus.get`). `{{link:<trackedLinkId>}}` shares a tracked short link (`trackedLinks.create`) that counts clicks per publication. Limits count a post link as a 90-character URL and a tracked link as a 40-character one. at most 63206 characters.
- `hashtags` (string, optional): at most 5000 characters.
- `formatIds` (array of string (uuid), optional): The post's formats (the workspace's content types), in order; replaces the list. at most 50 items.
- `ignoreOpenFormatSlots` (boolean, optional)
- `media` (array of object, optional): The post's media, in publishing order; replaces the list. Each must be in the workspace's media library. at most 35 items.
  - `mediaId` (string (uuid), required)
  - `altText` (string, optional, nullable): at most 1500 characters.
  - `crop` (object, optional, nullable, MediaCrop): The part of an image published, as fractions (0 to 1) of the image's displayed size: `x`, `y` (top left corner), `width`, `height`. The crop must stay inside the image: `x + width` and `y + height` at most 1.
    - `version` (number, required): always `1`.
    - `unit` (string, required): always `"percent"`.
    - `x` (number, required): from 0 to 1.
    - `y` (number, required): from 0 to 1.
    - `width` (number, required): above 0 to 1.
    - `height` (number, required): above 0 to 1.
    - `aspectRatio` (number, optional): greater than 0.
- `platforms` (array of object, optional): Where the post goes, one entry per account to change (accounts not listed are left as they are). `isActive: false` keeps the account's settings without publishing there. at most 30 items.
  - `socialAccountId` (string (uuid), required): A connected account of the workspace (`GET …/social-accounts`).
  - `isActive` (boolean, required)
  - `type` (string, optional): one of `post`, `story`.
  - `customCaption` (string, optional, nullable): at most 63206 characters.
  - `additionalParams` (map of any, optional): The account's platform options, keyed `<platform>_<option>`; send only the keys you want to set, the others are kept. Common keys: `tiktok_privacyLevel` (`PUBLIC_TO_EVERYONE`, `MUTUAL_FOLLOW_FRIENDS`, `FOLLOWER_OF_CREATOR`, `SELF_ONLY`; required before a TikTok post can be scheduled), `tiktok_allowComments`, `tiktok_allowDuet`, `tiktok_allowStitch`, `tiktok_isAigc`, `tiktok_brandOrganic`, `tiktok_brandContent` (booleans), `tiktok_photoTitle`, `tiktok_firstComment`; `youtube_title` (at most 100 characters), `youtube_privacyStatus` (`public`, `unlisted`, `private`), `youtube_notifySubscribers`, `youtube_isMadeForKids`, `youtube_containsSyntheticMedia` (booleans), `youtube_categoryId`, `youtube_tags` (strings); `instagram_shareToFeed`, `instagram_trialReels` (booleans), `instagram_collaborators` (up to 3 handles); `linkedin_visibility` (`PUBLIC`, `LOGGED_IN`, `CONNECTIONS`); `pinterest_title`, `pinterest_link`, `pinterest_boardId`; `facebook_link`; `threads_link`, `threads_replyControl`; `x_replySettings` (`all`, `followers`, `verified`, `subscribers`, `mentionedUsers`); `bluesky_langs` (up to 3 language codes); `discord_channelId`; `<platform>_hashtags` (a hashtag line for that platform only). A wrong value for a known key is refused with `400 VALIDATION_FAILED`.
  - `media` (array of object, optional, nullable): at most 35 items.
    - `mediaId` (string (uuid), required)
    - `altText` (string, optional, nullable): at most 1500 characters.
    - `crop` (object, optional, nullable, MediaCrop): The part of an image published, as fractions (0 to 1) of the image's displayed size: `x`, `y` (top left corner), `width`, `height`. The crop must stay inside the image: `x + width` and `y + height` at most 1.
      - `version` (number, required): always `1`.
      - `unit` (string, required): always `"percent"`.
      - `x` (number, required): from 0 to 1.
      - `y` (number, required): from 0 to 1.
      - `width` (number, required): above 0 to 1.
      - `height` (number, required): above 0 to 1.
      - `aspectRatio` (number, optional): greater than 0.
  - `thread` (array of object, optional): at most 24 items.
    - `id` (string (uuid), optional)
    - `caption` (string, required): at most 63206 characters.
    - `media` (array of object, required): at most 35 items.
      - `mediaId` (string (uuid), required)
      - `altText` (string, optional, nullable): at most 1500 characters.
      - `crop` (object, optional, nullable, MediaCrop): The part of an image published, as fractions (0 to 1) of the image's displayed size: `x`, `y` (top left corner), `width`, `height`. The crop must stay inside the image: `x + width` and `y + height` at most 1.
        - `version` (number, required): always `1`.
        - `unit` (string, required): always `"percent"`.
        - `x` (number, required): from 0 to 1.
        - `y` (number, required): from 0 to 1.
        - `width` (number, required): above 0 to 1.
        - `height` (number, required): above 0 to 1.
        - `aspectRatio` (number, optional): greater than 0.

**201 Created**

- `data` (object, required, EditorPost)
  - `id` (string, required)
  - `title` (string, required)
  - `caption` (string, required)
  - `hashtags` (string, required)
  - `formatIds` (array of string, required)
  - `ignoreOpenFormatSlots` (boolean, required)
  - `status` (string, required): Where the post stands: `idea`, `in_progress`, `in_review` (drafts), `ready` (finished, in the ready queue, not scheduled), `scheduled` (waits for `scheduledAt`), `in_process` (being published), `posted` (published), `failed` (failed on at least one account: see `platforms[].publishState`). A post waiting for a person's approval keeps its status and has `pendingApproval`. one of `idea`, `in_progress`, `in_review`, `ready`, `scheduled`, `in_process`, `posted`, `failed`.
  - `scheduledAt` (string (date-time), required, nullable): When it goes out (or went out), ISO 8601 UTC.
  - `media` (array of object, required)
    - `mediaId` (string, required)
    - `altText` (string, required, nullable)
    - `item` (object, required, MediaItem)
      - `id` (string, required)
      - `folderId` (string, required, nullable): The folder holding the media; `null` at the root of the library.
      - `filename` (string, required)
      - `altText` (string, required, nullable)
      - `mediaType` (string, required): one of `image`, `video`, `gif`, `audio`.
      - `mimeType` (string, required, nullable)
      - `size` (number, required, nullable): File size in bytes, when known.
      - `width` (number, required, nullable): Width in pixels, when known (images at upload, videos once processed); `null` for audio.
      - `height` (number, required, nullable): Height in pixels, when known (images at upload, videos once processed); `null` for audio.
      - `aspectRatio` (number, required): Display ratio (width / height) from the dimensions, clamped to [0.45, 2.4]; `1` when unknown and for audio.
      - `duration` (number, required, nullable): Length in seconds, for videos, GIFs and audio once known (`null` for images).
      - `waveform` (array of number, required, nullable): Audio only: up to 1000 peaks (integers 0–100, 100 = full scale) spread evenly over `duration`. `null` while processing, when processing failed, and for every other type.
      - `createdAt` (string (date-time), required)
      - `formats` (array of object, required)
        - `id` (string, required)
        - `name` (string, required)
        - `color` (string, required)
      - `usage` (string, required): Where the media is used: `unused`; `used` in a post still to publish; `published` only in posts already published (or failed). one of `unused`, `used`, `published`.
      - `processing` (object, required): Upload and processing state: `processing` (videos and audio are being processed), `ready`, or `failed` with a readable `error`. A media can be put in a post while processing.
        - `state` (string, required): one of `processing`, `ready`, `failed`.
        - `error` (string, required, nullable)
      - `previewUrl` (string, required, nullable): Signed URL (valid about one hour) of the image itself or of the video's poster; `null` while there is none yet, and always for audio.
      - `mediaUrl` (string, required): Signed URL (valid about one hour) of the original file, served inline. To save the file under its name, use the media's `download-url`.
      - `playback` (object, required, nullable): HLS playback of a processed video (`manifestUrl`, loaded by the Beplan app's player with its session), else `null`. Always `null` through the public API (`/v1`) and MCP: use `mediaUrl`, or the media's `download-url`, to fetch the file.
        - `manifestUrl` (string, required)
      - `publishCopy` (object, required, nullable): The copy sent to platforms that cannot take the original (a JPEG for images, an H.264/AAC MP4 of at most 1080p for videos): its type, pixels and bytes. `null` when every platform takes the original, or while it is being made.
        - `mimeType` (string, required)
        - `width` (number, required)
        - `height` (number, required)
        - `size` (number, required)
      - `transcriptMatch` (object, optional, MediaTranscriptMatch)
        - `snippet` (string, required)
        - `startMs` (number, required)
        - `source` (string, optional): one of `speech`, `scene`.
    - `crop` (object, optional, nullable, MediaCrop): The part of an image published, as fractions (0 to 1) of the image's displayed size: `x`, `y` (top left corner), `width`, `height`. The crop must stay inside the image: `x + width` and `y + height` at most 1.
      - `version` (number, required): always `1`.
      - `unit` (string, required): always `"percent"`.
      - `x` (number, required): from 0 to 1.
      - `y` (number, required): from 0 to 1.
      - `width` (number, required): above 0 to 1.
      - `height` (number, required): above 0 to 1.
      - `aspectRatio` (number, optional): greater than 0.
  - `platforms` (array of object, required)
    - `socialAccountId` (string, required)
    - `platform` (string, required, SocialPlatform): one of `x`, `instagram`, `facebook`, `tiktok`, `linkedin`, `threads`, `pinterest`, `youtube`, `discord`, `bluesky` (may gain values).
    - `isActive` (boolean, required)
    - `type` (string, required): one of `post`, `story`.
    - `customCaption` (string, required, nullable)
    - `additionalParams` (map of any, required): The account's platform options, keyed `<platform>_<option>`; send only the keys you want to set, the others are kept. Common keys: `tiktok_privacyLevel` (`PUBLIC_TO_EVERYONE`, `MUTUAL_FOLLOW_FRIENDS`, `FOLLOWER_OF_CREATOR`, `SELF_ONLY`; required before a TikTok post can be scheduled), `tiktok_allowComments`, `tiktok_allowDuet`, `tiktok_allowStitch`, `tiktok_isAigc`, `tiktok_brandOrganic`, `tiktok_brandContent` (booleans), `tiktok_photoTitle`, `tiktok_firstComment`; `youtube_title` (at most 100 characters), `youtube_privacyStatus` (`public`, `unlisted`, `private`), `youtube_notifySubscribers`, `youtube_isMadeForKids`, `youtube_containsSyntheticMedia` (booleans), `youtube_categoryId`, `youtube_tags` (strings); `instagram_shareToFeed`, `instagram_trialReels` (booleans), `instagram_collaborators` (up to 3 handles); `linkedin_visibility` (`PUBLIC`, `LOGGED_IN`, `CONNECTIONS`); `pinterest_title`, `pinterest_link`, `pinterest_boardId`; `facebook_link`; `threads_link`, `threads_replyControl`; `x_replySettings` (`all`, `followers`, `verified`, `subscribers`, `mentionedUsers`); `bluesky_langs` (up to 3 language codes); `discord_channelId`; `<platform>_hashtags` (a hashtag line for that platform only). A wrong value for a known key is refused with `400 VALIDATION_FAILED`.
    - `media` (array of object, required, nullable)
      - `mediaId` (string, required)
      - `altText` (string, required, nullable)
      - `item` (object, required, MediaItem)
        - `id` (string, required)
        - `folderId` (string, required, nullable): The folder holding the media; `null` at the root of the library.
        - `filename` (string, required)
        - `altText` (string, required, nullable)
        - `mediaType` (string, required): one of `image`, `video`, `gif`, `audio`.
        - `mimeType` (string, required, nullable)
        - `size` (number, required, nullable): File size in bytes, when known.
        - `width` (number, required, nullable): Width in pixels, when known (images at upload, videos once processed); `null` for audio.
        - `height` (number, required, nullable): Height in pixels, when known (images at upload, videos once processed); `null` for audio.
        - `aspectRatio` (number, required): Display ratio (width / height) from the dimensions, clamped to [0.45, 2.4]; `1` when unknown and for audio.
        - `duration` (number, required, nullable): Length in seconds, for videos, GIFs and audio once known (`null` for images).
        - `waveform` (array of number, required, nullable): Audio only: up to 1000 peaks (integers 0–100, 100 = full scale) spread evenly over `duration`. `null` while processing, when processing failed, and for every other type.
        - `createdAt` (string (date-time), required)
        - `formats` (array of object, required)
          - `id` (string, required)
          - `name` (string, required)
          - `color` (string, required)
        - `usage` (string, required): Where the media is used: `unused`; `used` in a post still to publish; `published` only in posts already published (or failed). one of `unused`, `used`, `published`.
        - `processing` (object, required): Upload and processing state: `processing` (videos and audio are being processed), `ready`, or `failed` with a readable `error`. A media can be put in a post while processing.
          - `state` (string, required): one of `processing`, `ready`, `failed`.
          - `error` (string, required, nullable)
        - `previewUrl` (string, required, nullable): Signed URL (valid about one hour) of the image itself or of the video's poster; `null` while there is none yet, and always for audio.
        - `mediaUrl` (string, required): Signed URL (valid about one hour) of the original file, served inline. To save the file under its name, use the media's `download-url`.
        - `playback` (object, required, nullable): HLS playback of a processed video (`manifestUrl`, loaded by the Beplan app's player with its session), else `null`. Always `null` through the public API (`/v1`) and MCP: use `mediaUrl`, or the media's `download-url`, to fetch the file.
          - `manifestUrl` (string, required)
        - `publishCopy` (object, required, nullable): The copy sent to platforms that cannot take the original (a JPEG for images, an H.264/AAC MP4 of at most 1080p for videos): its type, pixels and bytes. `null` when every platform takes the original, or while it is being made.
          - `mimeType` (string, required)
          - `width` (number, required)
          - `height` (number, required)
          - `size` (number, required)
        - `transcriptMatch` (object, optional, MediaTranscriptMatch)
          - `snippet` (string, required)
          - `startMs` (number, required)
          - `source` (string, optional): one of `speech`, `scene`.
      - `crop` (object, optional, nullable, MediaCrop): The part of an image published, as fractions (0 to 1) of the image's displayed size: `x`, `y` (top left corner), `width`, `height`. The crop must stay inside the image: `x + width` and `y + height` at most 1.
        - `version` (number, required): always `1`.
        - `unit` (string, required): always `"percent"`.
        - `x` (number, required): from 0 to 1.
        - `y` (number, required): from 0 to 1.
        - `width` (number, required): above 0 to 1.
        - `height` (number, required): above 0 to 1.
        - `aspectRatio` (number, optional): greater than 0.
    - `thread` (array of object, required)
      - `id` (string, optional)
      - `caption` (string, required)
      - `media` (array of object, required)
        - `mediaId` (string, required)
        - `altText` (string, required, nullable)
        - `item` (object, required, MediaItem)
          - `id` (string, required)
          - `folderId` (string, required, nullable): The folder holding the media; `null` at the root of the library.
          - `filename` (string, required)
          - `altText` (string, required, nullable)
          - `mediaType` (string, required): one of `image`, `video`, `gif`, `audio`.
          - `mimeType` (string, required, nullable)
          - `size` (number, required, nullable): File size in bytes, when known.
          - `width` (number, required, nullable): Width in pixels, when known (images at upload, videos once processed); `null` for audio.
          - `height` (number, required, nullable): Height in pixels, when known (images at upload, videos once processed); `null` for audio.
          - `aspectRatio` (number, required): Display ratio (width / height) from the dimensions, clamped to [0.45, 2.4]; `1` when unknown and for audio.
          - `duration` (number, required, nullable): Length in seconds, for videos, GIFs and audio once known (`null` for images).
          - `waveform` (array of number, required, nullable): Audio only: up to 1000 peaks (integers 0–100, 100 = full scale) spread evenly over `duration`. `null` while processing, when processing failed, and for every other type.
          - `createdAt` (string (date-time), required)
          - `formats` (array of object, required)
            - `id` (string, required)
            - `name` (string, required)
            - `color` (string, required)
          - `usage` (string, required): Where the media is used: `unused`; `used` in a post still to publish; `published` only in posts already published (or failed). one of `unused`, `used`, `published`.
          - `processing` (object, required): Upload and processing state: `processing` (videos and audio are being processed), `ready`, or `failed` with a readable `error`. A media can be put in a post while processing.
            - `state` (string, required): one of `processing`, `ready`, `failed`.
            - `error` (string, required, nullable)
          - `previewUrl` (string, required, nullable): Signed URL (valid about one hour) of the image itself or of the video's poster; `null` while there is none yet, and always for audio.
          - `mediaUrl` (string, required): Signed URL (valid about one hour) of the original file, served inline. To save the file under its name, use the media's `download-url`.
          - `playback` (object, required, nullable): HLS playback of a processed video (`manifestUrl`, loaded by the Beplan app's player with its session), else `null`. Always `null` through the public API (`/v1`) and MCP: use `mediaUrl`, or the media's `download-url`, to fetch the file.
            - `manifestUrl` (string, required)
          - `publishCopy` (object, required, nullable): The copy sent to platforms that cannot take the original (a JPEG for images, an H.264/AAC MP4 of at most 1080p for videos): its type, pixels and bytes. `null` when every platform takes the original, or while it is being made.
            - `mimeType` (string, required)
            - `width` (number, required)
            - `height` (number, required)
            - `size` (number, required)
          - `transcriptMatch` (object, optional, MediaTranscriptMatch)
            - `snippet` (string, required)
            - `startMs` (number, required)
            - `source` (string, optional): one of `speech`, `scene`.
        - `crop` (object, optional, nullable, MediaCrop): The part of an image published, as fractions (0 to 1) of the image's displayed size: `x`, `y` (top left corner), `width`, `height`. The crop must stay inside the image: `x + width` and `y + height` at most 1.
          - `version` (number, required): always `1`.
          - `unit` (string, required): always `"percent"`.
          - `x` (number, required): from 0 to 1.
          - `y` (number, required): from 0 to 1.
          - `width` (number, required): above 0 to 1.
          - `height` (number, required): above 0 to 1.
          - `aspectRatio` (number, optional): greater than 0.
    - `publishedUrl` (string, optional, nullable)
    - `publishedUrlKind` (string, optional, nullable): one of `post`, `studio`.
    - `publishState` (string, optional): one of `pending`, `published`, `failed`.
    - `publishError` (string, optional, nullable)
  - `updatedAt` (string (date-time), required): Last change. Send it back as `baseUpdatedAt` when saving so you never overwrite a change you haven't read.
  - `pendingApproval` (object, optional, nullable, EditorPostPendingApproval)
    - `id` (string (uuid), required)
    - `action` (string, required): one of `schedule`, `publish_now`.
    - `scheduledAt` (string (date-time), required, nullable)
    - `createdAt` (string (date-time), required)
    - `url` (string, required)
  - `scheduledVia` (object, optional, nullable, PostVia)
    - `kind` (string, required, PublicConnectionKind): one of `personal_token`, `app`, `mcp`.
    - `name` (string, required)
  - `beplanPromotion` (object, optional, nullable, EditorBeplanPromotion)
    - `userId` (string, required)
    - `userName` (string, required)
    - `disclosure` (string, required)
    - `mentionsBeplan` (boolean, required)

**Errors**

| Status | Code | Message |
|---|---|---|
| 400 | `VALIDATION_FAILED` | Some of the information sent is invalid. |
| 403 | `MISSING_PERMISSION` | You don't have permission to do this. |
| 404 | `FORMAT_NOT_FOUND` | One of the formats doesn't exist in this workspace. |
| 404 | `MEDIA_NOT_FOUND` | This media doesn't exist or was deleted. |
| 404 | `ORGANIZATION_NOT_FOUND` | This organization doesn't exist or you're not a member of it. |
| 404 | `SOCIAL_ACCOUNT_NOT_FOUND` | This account isn't connected to this workspace anymore. |
| 404 | `WORKSPACE_NOT_FOUND` | This workspace doesn't exist or you don't have access to it. |

Also, like every operation: `APP_SUSPENDED` (401), `TOKEN_EXPIRED` (401), `TOKEN_REVOKED` (401), `UNAUTHENTICATED` (401), `INSUFFICIENT_SCOPE` (403), `INTEGRATION_BLOCKED_BY_ORGANIZATION` (403), `INTEGRATION_PENDING_APPROVAL` (403), `CONFLICT` (409), `IDEMPOTENCY_KEY_REUSED` (409), `PAYLOAD_TOO_LARGE` (413), `UNSUPPORTED_MEDIA_TYPE` (415), `RATE_LIMITED` (429), `INTERNAL_ERROR` (500).

**Example: A LinkedIn post with one image**

```bash
curl -X POST "https://api.beplan.io/v1/organizations/ORGANIZATION_ID/workspaces/WORKSPACE_ID/posts" \
  -H "Authorization: Bearer beplan_pat_…" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{
  "title": "Spring drop teaser",
  "caption": "Something new lands Thursday.",
  "hashtags": "#springdrop",
  "media": [
    {
      "mediaId": "c3d4e5f6-a7b8-4c9d-8e0f-1a2b3c4d5e6f",
      "altText": "The spring collection on a table"
    }
  ],
  "platforms": [
    {
      "socialAccountId": "0b6f5c1e-2a7d-4c3b-9e8f-1a2b3c4d5e6f",
      "isActive": true,
      "additionalParams": {
        "linkedin_visibility": "PUBLIC"
      }
    }
  ]
}'
```

Answers 201:

```json
{
  "data": {
    "id": "6f1c2a3b-4d5e-4f60-8a71-92b3c4d5e6f7",
    "title": "Spring drop teaser",
    "caption": "Something new lands Thursday.",
    "hashtags": "#springdrop",
    "formatIds": [],
    "ignoreOpenFormatSlots": false,
    "status": "idea",
    "scheduledAt": null,
    "media": [
      {
        "mediaId": "c3d4e5f6-a7b8-4c9d-8e0f-1a2b3c4d5e6f",
        "altText": "The spring collection on a table",
        "item": {
          "id": "c3d4e5f6-a7b8-4c9d-8e0f-1a2b3c4d5e6f",
          "folderId": null,
          "filename": "spring-collection.jpg",
          "altText": "The spring collection on a table",
          "mediaType": "image",
          "mimeType": "image/jpeg",
          "size": 482133,
          "width": 1080,
          "height": 1350,
          "aspectRatio": 0.8,
          "duration": null,
          "waveform": null,
          "createdAt": "2026-11-18T09:30:00.000Z",
          "formats": [],
          "usage": "used",
          "processing": {
            "state": "ready",
            "error": null
          },
          "previewUrl": "https://storage.beplan.io/org-media/…/preview?X-Amz-Signature=…",
          "mediaUrl": "https://storage.beplan.io/org-media/…?X-Amz-Signature=…",
          "playback": null,
          "publishCopy": null
        },
        "crop": null
      }
    ],
    "platforms": [
      {
        "socialAccountId": "0b6f5c1e-2a7d-4c3b-9e8f-1a2b3c4d5e6f",
        "platform": "linkedin",
        "isActive": true,
        "type": "post",
        "customCaption": null,
        "additionalParams": {
          "linkedin_visibility": "PUBLIC"
        },
        "media": null,
        "thread": [],
        "publishedUrl": null,
        "publishedUrlKind": null,
        "publishState": "pending",
        "publishError": null
      }
    ],
    "updatedAt": "2026-11-19T10:12:00.000Z",
    "pendingApproval": null,
    "scheduledVia": null
  }
}
```


## List ready posts

`GET /organizations/{organizationId}/workspaces/{workspaceId}/posts/ready` · operationId `posts.ready.list`

- Scope: `posts:read`
- Role permission: Any member who can see it
- Effect (`read`): Changes nothing.
- Stability: Beta (May still change before it is marked stable.) Since 2026-11-19.

Lists the workspace's ready queue: posts that are finished but not scheduled yet, in the order the team set (`order`; Quick Fill takes them in this order). Paginated with `limit` (1–100, default 25) and `cursor` (the previous page's `page.nextCursor`); the first page also carries `total`, the number of posts in the queue.

**Parameters**

| Name | In | Type | Required | Description |
|---|---|---|---|---|
| `organizationId` | path | string | yes | 1–128 characters |
| `workspaceId` | path | string (uuid) | yes |  |
| `limit` | query | integer | no | from 1 to 100 |
| `cursor` | query | string | no | at most 512 characters |
| `heldOnly` | query | string (true, false) | no | `true`: only the posts waiting for a person's approval (`pendingApproval` set). |

**200 OK**

- `data` (array of object, required)
  - `id` (string, required)
  - `title` (string, required)
  - `caption` (string, required, nullable)
  - `status` (string, required): `ready` (finished, not scheduled), `scheduled` (waits for `scheduledAt`), `in_process` (being published), `posted` (published), `failed` (failed on at least one account: see `platforms[].state`). one of `ready`, `scheduled`, `in_process`, `posted`, `failed`.
  - `scheduledAt` (string (date-time), required, nullable)
  - `order` (number, required): Position in the ready queue: Quick Fill takes ready posts in this order.
  - `formats` (array of object, required)
    - `id` (string, required)
    - `name` (string, required)
    - `color` (string, required)
  - `platforms` (array of object, required)
    - `platform` (string, required)
    - `state` (string, required): one of `pending`, `published`, `failed`.
    - `url` (string, required, nullable)
    - `error` (string, required, nullable)
    - `views` (number, optional, nullable)
  - `media` (array of object, required)
    - `type` (string, required): one of `image`, `video`, `gif`.
    - `thumbnailUrl` (string, required, nullable)
  - `mediaCount` (number, required)
  - `linkWindow` (object, optional, PostLinkWindow)
    - `after` (object, required, nullable, LinkedPostRef)
      - `id` (string, required)
      - `title` (string, required)
      - `scheduledAt` (string (date-time), required, nullable)
    - `before` (object, required, nullable, LinkedPostRef)
      - `id` (string, required)
      - `title` (string, required)
      - `scheduledAt` (string (date-time), required, nullable)
  - `pendingApproval` (object, optional, nullable, PostCardPendingApproval): The approval request the post waits on (an integration asked to schedule or publish it); `null` when none is pending.
    - `id` (string (uuid), required)
    - `action` (string, required): `schedule` (at `scheduledAt`) or `publish_now`. one of `schedule`, `publish_now`.
    - `scheduledAt` (string (date-time), required, nullable): The time asked for (`schedule`); `null` for `publish_now`.
  - `scheduledVia` (object, optional, nullable, PostVia): The integration that last scheduled the post (an app's or assistant's name; a personal token's own name only for its own member, "API token" for anyone else); `null` when a person did it, or never.
    - `kind` (string, required, PublicConnectionKind): one of `personal_token`, `app`, `mcp`.
    - `name` (string, required)
- `page` (object, required)
  - `nextCursor` (string, required, nullable)
  - `hasMore` (boolean, required)
- `total` (number, optional): Posts in the whole queue (held ones only with `heldOnly=true`); on the first page only (no `cursor`).

**Errors**

| Status | Code | Message |
|---|---|---|
| 400 | `VALIDATION_FAILED` | Some of the information sent is invalid. |
| 404 | `ORGANIZATION_NOT_FOUND` | This organization doesn't exist or you're not a member of it. |
| 404 | `WORKSPACE_NOT_FOUND` | This workspace doesn't exist or you don't have access to it. |

Also, like every operation: `APP_SUSPENDED` (401), `TOKEN_EXPIRED` (401), `TOKEN_REVOKED` (401), `UNAUTHENTICATED` (401), `INSUFFICIENT_SCOPE` (403), `INTEGRATION_BLOCKED_BY_ORGANIZATION` (403), `INTEGRATION_PENDING_APPROVAL` (403), `RATE_LIMITED` (429), `INTERNAL_ERROR` (500).

**Example: The first page of the queue**

```bash
curl -X GET "https://api.beplan.io/v1/organizations/ORGANIZATION_ID/workspaces/WORKSPACE_ID/posts/ready?limit=25" \
  -H "Authorization: Bearer beplan_pat_…"
```

Answers 200:

```json
{
  "data": [
    {
      "id": "6f1c2a3b-4d5e-4f60-8a71-92b3c4d5e6f7",
      "title": "Spring drop teaser",
      "caption": "Something new lands Thursday.",
      "status": "ready",
      "scheduledAt": null,
      "order": 0,
      "formats": [],
      "platforms": [
        {
          "platform": "linkedin",
          "state": "pending",
          "url": null,
          "error": null
        }
      ],
      "media": [
        {
          "type": "image",
          "thumbnailUrl": "https://storage.beplan.io/org-media/…/preview?X-Amz-Signature=…"
        }
      ],
      "mediaCount": 1
    }
  ],
  "page": {
    "nextCursor": null,
    "hasMore": false
  },
  "total": 1
}
```


## Get a post

`GET /organizations/{organizationId}/workspaces/{workspaceId}/posts/{postId}` · operationId `posts.get`

- Scope: `posts:read`
- Role permission: Any member who can see it
- Effect (`read`): Changes nothing.
- Stability: Beta (May still change before it is marked stable.) Since 2026-11-19.

Returns one post in full: its texts, formats, media (with short-lived signed URLs; `playback` is always `null` through the API), and for each account its own caption, media, thread and options, and where the post stands there (`publishState`: `pending`, `published` with `publishedUrl`, or `failed` with `publishError`). `pendingApproval` is set while the post waits for a person's approval, and `scheduledVia` names the integration that scheduled it. Use it to follow a post after scheduling it.

**Parameters**

| Name | In | Type | Required | Description |
|---|---|---|---|---|
| `organizationId` | path | string | yes | 1–128 characters |
| `workspaceId` | path | string (uuid) | yes |  |
| `postId` | path | string (uuid) | yes |  |

**200 OK**

- `data` (object, required, EditorPost)
  - `id` (string, required)
  - `title` (string, required)
  - `caption` (string, required)
  - `hashtags` (string, required)
  - `formatIds` (array of string, required)
  - `ignoreOpenFormatSlots` (boolean, required)
  - `status` (string, required): Where the post stands: `idea`, `in_progress`, `in_review` (drafts), `ready` (finished, in the ready queue, not scheduled), `scheduled` (waits for `scheduledAt`), `in_process` (being published), `posted` (published), `failed` (failed on at least one account: see `platforms[].publishState`). A post waiting for a person's approval keeps its status and has `pendingApproval`. one of `idea`, `in_progress`, `in_review`, `ready`, `scheduled`, `in_process`, `posted`, `failed` (may gain values).
  - `scheduledAt` (string (date-time), required, nullable): When it goes out (or went out), ISO 8601 UTC.
  - `media` (array of object, required)
    - `mediaId` (string, required)
    - `altText` (string, required, nullable)
    - `item` (object, required, MediaItem)
      - `id` (string, required)
      - `folderId` (string, required, nullable): The folder holding the media; `null` at the root of the library.
      - `filename` (string, required)
      - `altText` (string, required, nullable)
      - `mediaType` (string, required): one of `image`, `video`, `gif`, `audio`.
      - `mimeType` (string, required, nullable)
      - `size` (number, required, nullable): File size in bytes, when known.
      - `width` (number, required, nullable): Width in pixels, when known (images at upload, videos once processed); `null` for audio.
      - `height` (number, required, nullable): Height in pixels, when known (images at upload, videos once processed); `null` for audio.
      - `aspectRatio` (number, required): Display ratio (width / height) from the dimensions, clamped to [0.45, 2.4]; `1` when unknown and for audio.
      - `duration` (number, required, nullable): Length in seconds, for videos, GIFs and audio once known (`null` for images).
      - `waveform` (array of number, required, nullable): Audio only: up to 1000 peaks (integers 0–100, 100 = full scale) spread evenly over `duration`. `null` while processing, when processing failed, and for every other type.
      - `createdAt` (string (date-time), required)
      - `formats` (array of object, required)
        - `id` (string, required)
        - `name` (string, required)
        - `color` (string, required)
      - `usage` (string, required): Where the media is used: `unused`; `used` in a post still to publish; `published` only in posts already published (or failed). one of `unused`, `used`, `published`.
      - `processing` (object, required): Upload and processing state: `processing` (videos and audio are being processed), `ready`, or `failed` with a readable `error`. A media can be put in a post while processing.
        - `state` (string, required): one of `processing`, `ready`, `failed`.
        - `error` (string, required, nullable)
      - `previewUrl` (string, required, nullable): Signed URL (valid about one hour) of the image itself or of the video's poster; `null` while there is none yet, and always for audio.
      - `mediaUrl` (string, required): Signed URL (valid about one hour) of the original file, served inline. To save the file under its name, use the media's `download-url`.
      - `playback` (object, required, nullable): HLS playback of a processed video (`manifestUrl`, loaded by the Beplan app's player with its session), else `null`. Always `null` through the public API (`/v1`) and MCP: use `mediaUrl`, or the media's `download-url`, to fetch the file.
        - `manifestUrl` (string, required)
      - `publishCopy` (object, required, nullable): The copy sent to platforms that cannot take the original (a JPEG for images, an H.264/AAC MP4 of at most 1080p for videos): its type, pixels and bytes. `null` when every platform takes the original, or while it is being made.
        - `mimeType` (string, required)
        - `width` (number, required)
        - `height` (number, required)
        - `size` (number, required)
      - `transcriptMatch` (object, optional, MediaTranscriptMatch)
        - `snippet` (string, required)
        - `startMs` (number, required)
        - `source` (string, optional): one of `speech`, `scene`.
    - `crop` (object, optional, nullable, MediaCrop): The part of an image published, as fractions (0 to 1) of the image's displayed size: `x`, `y` (top left corner), `width`, `height`. The crop must stay inside the image: `x + width` and `y + height` at most 1.
      - `version` (number, required): always `1`.
      - `unit` (string, required): always `"percent"`.
      - `x` (number, required): from 0 to 1.
      - `y` (number, required): from 0 to 1.
      - `width` (number, required): above 0 to 1.
      - `height` (number, required): above 0 to 1.
      - `aspectRatio` (number, optional): greater than 0.
  - `platforms` (array of object, required)
    - `socialAccountId` (string, required)
    - `platform` (string, required, SocialPlatform): one of `x`, `instagram`, `facebook`, `tiktok`, `linkedin`, `threads`, `pinterest`, `youtube`, `discord`, `bluesky` (may gain values).
    - `isActive` (boolean, required)
    - `type` (string, required): one of `post`, `story`.
    - `customCaption` (string, required, nullable)
    - `additionalParams` (map of any, required): The account's platform options, keyed `<platform>_<option>`; send only the keys you want to set, the others are kept. Common keys: `tiktok_privacyLevel` (`PUBLIC_TO_EVERYONE`, `MUTUAL_FOLLOW_FRIENDS`, `FOLLOWER_OF_CREATOR`, `SELF_ONLY`; required before a TikTok post can be scheduled), `tiktok_allowComments`, `tiktok_allowDuet`, `tiktok_allowStitch`, `tiktok_isAigc`, `tiktok_brandOrganic`, `tiktok_brandContent` (booleans), `tiktok_photoTitle`, `tiktok_firstComment`; `youtube_title` (at most 100 characters), `youtube_privacyStatus` (`public`, `unlisted`, `private`), `youtube_notifySubscribers`, `youtube_isMadeForKids`, `youtube_containsSyntheticMedia` (booleans), `youtube_categoryId`, `youtube_tags` (strings); `instagram_shareToFeed`, `instagram_trialReels` (booleans), `instagram_collaborators` (up to 3 handles); `linkedin_visibility` (`PUBLIC`, `LOGGED_IN`, `CONNECTIONS`); `pinterest_title`, `pinterest_link`, `pinterest_boardId`; `facebook_link`; `threads_link`, `threads_replyControl`; `x_replySettings` (`all`, `followers`, `verified`, `subscribers`, `mentionedUsers`); `bluesky_langs` (up to 3 language codes); `discord_channelId`; `<platform>_hashtags` (a hashtag line for that platform only). A wrong value for a known key is refused with `400 VALIDATION_FAILED`.
    - `media` (array of object, required, nullable)
      - `mediaId` (string, required)
      - `altText` (string, required, nullable)
      - `item` (object, required, MediaItem)
        - `id` (string, required)
        - `folderId` (string, required, nullable): The folder holding the media; `null` at the root of the library.
        - `filename` (string, required)
        - `altText` (string, required, nullable)
        - `mediaType` (string, required): one of `image`, `video`, `gif`, `audio`.
        - `mimeType` (string, required, nullable)
        - `size` (number, required, nullable): File size in bytes, when known.
        - `width` (number, required, nullable): Width in pixels, when known (images at upload, videos once processed); `null` for audio.
        - `height` (number, required, nullable): Height in pixels, when known (images at upload, videos once processed); `null` for audio.
        - `aspectRatio` (number, required): Display ratio (width / height) from the dimensions, clamped to [0.45, 2.4]; `1` when unknown and for audio.
        - `duration` (number, required, nullable): Length in seconds, for videos, GIFs and audio once known (`null` for images).
        - `waveform` (array of number, required, nullable): Audio only: up to 1000 peaks (integers 0–100, 100 = full scale) spread evenly over `duration`. `null` while processing, when processing failed, and for every other type.
        - `createdAt` (string (date-time), required)
        - `formats` (array of object, required)
          - `id` (string, required)
          - `name` (string, required)
          - `color` (string, required)
        - `usage` (string, required): Where the media is used: `unused`; `used` in a post still to publish; `published` only in posts already published (or failed). one of `unused`, `used`, `published`.
        - `processing` (object, required): Upload and processing state: `processing` (videos and audio are being processed), `ready`, or `failed` with a readable `error`. A media can be put in a post while processing.
          - `state` (string, required): one of `processing`, `ready`, `failed`.
          - `error` (string, required, nullable)
        - `previewUrl` (string, required, nullable): Signed URL (valid about one hour) of the image itself or of the video's poster; `null` while there is none yet, and always for audio.
        - `mediaUrl` (string, required): Signed URL (valid about one hour) of the original file, served inline. To save the file under its name, use the media's `download-url`.
        - `playback` (object, required, nullable): HLS playback of a processed video (`manifestUrl`, loaded by the Beplan app's player with its session), else `null`. Always `null` through the public API (`/v1`) and MCP: use `mediaUrl`, or the media's `download-url`, to fetch the file.
          - `manifestUrl` (string, required)
        - `publishCopy` (object, required, nullable): The copy sent to platforms that cannot take the original (a JPEG for images, an H.264/AAC MP4 of at most 1080p for videos): its type, pixels and bytes. `null` when every platform takes the original, or while it is being made.
          - `mimeType` (string, required)
          - `width` (number, required)
          - `height` (number, required)
          - `size` (number, required)
        - `transcriptMatch` (object, optional, MediaTranscriptMatch)
          - `snippet` (string, required)
          - `startMs` (number, required)
          - `source` (string, optional): one of `speech`, `scene`.
      - `crop` (object, optional, nullable, MediaCrop): The part of an image published, as fractions (0 to 1) of the image's displayed size: `x`, `y` (top left corner), `width`, `height`. The crop must stay inside the image: `x + width` and `y + height` at most 1.
        - `version` (number, required): always `1`.
        - `unit` (string, required): always `"percent"`.
        - `x` (number, required): from 0 to 1.
        - `y` (number, required): from 0 to 1.
        - `width` (number, required): above 0 to 1.
        - `height` (number, required): above 0 to 1.
        - `aspectRatio` (number, optional): greater than 0.
    - `thread` (array of object, required)
      - `id` (string, optional)
      - `caption` (string, required)
      - `media` (array of object, required)
        - `mediaId` (string, required)
        - `altText` (string, required, nullable)
        - `item` (object, required, MediaItem)
          - `id` (string, required)
          - `folderId` (string, required, nullable): The folder holding the media; `null` at the root of the library.
          - `filename` (string, required)
          - `altText` (string, required, nullable)
          - `mediaType` (string, required): one of `image`, `video`, `gif`, `audio`.
          - `mimeType` (string, required, nullable)
          - `size` (number, required, nullable): File size in bytes, when known.
          - `width` (number, required, nullable): Width in pixels, when known (images at upload, videos once processed); `null` for audio.
          - `height` (number, required, nullable): Height in pixels, when known (images at upload, videos once processed); `null` for audio.
          - `aspectRatio` (number, required): Display ratio (width / height) from the dimensions, clamped to [0.45, 2.4]; `1` when unknown and for audio.
          - `duration` (number, required, nullable): Length in seconds, for videos, GIFs and audio once known (`null` for images).
          - `waveform` (array of number, required, nullable): Audio only: up to 1000 peaks (integers 0–100, 100 = full scale) spread evenly over `duration`. `null` while processing, when processing failed, and for every other type.
          - `createdAt` (string (date-time), required)
          - `formats` (array of object, required)
            - `id` (string, required)
            - `name` (string, required)
            - `color` (string, required)
          - `usage` (string, required): Where the media is used: `unused`; `used` in a post still to publish; `published` only in posts already published (or failed). one of `unused`, `used`, `published`.
          - `processing` (object, required): Upload and processing state: `processing` (videos and audio are being processed), `ready`, or `failed` with a readable `error`. A media can be put in a post while processing.
            - `state` (string, required): one of `processing`, `ready`, `failed`.
            - `error` (string, required, nullable)
          - `previewUrl` (string, required, nullable): Signed URL (valid about one hour) of the image itself or of the video's poster; `null` while there is none yet, and always for audio.
          - `mediaUrl` (string, required): Signed URL (valid about one hour) of the original file, served inline. To save the file under its name, use the media's `download-url`.
          - `playback` (object, required, nullable): HLS playback of a processed video (`manifestUrl`, loaded by the Beplan app's player with its session), else `null`. Always `null` through the public API (`/v1`) and MCP: use `mediaUrl`, or the media's `download-url`, to fetch the file.
            - `manifestUrl` (string, required)
          - `publishCopy` (object, required, nullable): The copy sent to platforms that cannot take the original (a JPEG for images, an H.264/AAC MP4 of at most 1080p for videos): its type, pixels and bytes. `null` when every platform takes the original, or while it is being made.
            - `mimeType` (string, required)
            - `width` (number, required)
            - `height` (number, required)
            - `size` (number, required)
          - `transcriptMatch` (object, optional, MediaTranscriptMatch)
            - `snippet` (string, required)
            - `startMs` (number, required)
            - `source` (string, optional): one of `speech`, `scene`.
        - `crop` (object, optional, nullable, MediaCrop): The part of an image published, as fractions (0 to 1) of the image's displayed size: `x`, `y` (top left corner), `width`, `height`. The crop must stay inside the image: `x + width` and `y + height` at most 1.
          - `version` (number, required): always `1`.
          - `unit` (string, required): always `"percent"`.
          - `x` (number, required): from 0 to 1.
          - `y` (number, required): from 0 to 1.
          - `width` (number, required): above 0 to 1.
          - `height` (number, required): above 0 to 1.
          - `aspectRatio` (number, optional): greater than 0.
    - `publishedUrl` (string, optional, nullable)
    - `publishedUrlKind` (string, optional, nullable): one of `post`, `studio`.
    - `publishState` (string, optional): one of `pending`, `published`, `failed`.
    - `publishError` (string, optional, nullable)
  - `updatedAt` (string (date-time), required): Last change. Send it back as `baseUpdatedAt` when saving so you never overwrite a change you haven't read.
  - `pendingApproval` (object, optional, nullable, EditorPostPendingApproval)
    - `id` (string (uuid), required)
    - `action` (string, required): one of `schedule`, `publish_now`.
    - `scheduledAt` (string (date-time), required, nullable)
    - `createdAt` (string (date-time), required)
    - `url` (string, required)
  - `scheduledVia` (object, optional, nullable, PostVia)
    - `kind` (string, required, PublicConnectionKind): one of `personal_token`, `app`, `mcp`.
    - `name` (string, required)
  - `beplanPromotion` (object, optional, nullable, EditorBeplanPromotion)
    - `userId` (string, required)
    - `userName` (string, required)
    - `disclosure` (string, required)
    - `mentionsBeplan` (boolean, required)

**Errors**

| Status | Code | Message |
|---|---|---|
| 404 | `ORGANIZATION_NOT_FOUND` | This organization doesn't exist or you're not a member of it. |
| 404 | `POST_NOT_FOUND` | This post doesn't exist or was deleted. |
| 404 | `WORKSPACE_NOT_FOUND` | This workspace doesn't exist or you don't have access to it. |

Also, like every operation: `VALIDATION_FAILED` (400), `APP_SUSPENDED` (401), `TOKEN_EXPIRED` (401), `TOKEN_REVOKED` (401), `UNAUTHENTICATED` (401), `INSUFFICIENT_SCOPE` (403), `INTEGRATION_BLOCKED_BY_ORGANIZATION` (403), `INTEGRATION_PENDING_APPROVAL` (403), `RATE_LIMITED` (429), `INTERNAL_ERROR` (500).

**Example: A draft for LinkedIn**

```bash
curl -X GET "https://api.beplan.io/v1/organizations/ORGANIZATION_ID/workspaces/WORKSPACE_ID/posts/6f1c2a3b-4d5e-4f60-8a71-92b3c4d5e6f7" \
  -H "Authorization: Bearer beplan_pat_…"
```

Answers 200:

```json
{
  "data": {
    "id": "6f1c2a3b-4d5e-4f60-8a71-92b3c4d5e6f7",
    "title": "Spring drop teaser",
    "caption": "Something new lands Thursday.",
    "hashtags": "#springdrop",
    "formatIds": [],
    "ignoreOpenFormatSlots": false,
    "status": "idea",
    "scheduledAt": null,
    "media": [],
    "platforms": [
      {
        "socialAccountId": "0b6f5c1e-2a7d-4c3b-9e8f-1a2b3c4d5e6f",
        "platform": "linkedin",
        "isActive": true,
        "type": "post",
        "customCaption": null,
        "additionalParams": {
          "linkedin_visibility": "PUBLIC"
        },
        "media": null,
        "thread": [],
        "publishedUrl": null,
        "publishedUrlKind": null,
        "publishState": "pending",
        "publishError": null
      }
    ],
    "updatedAt": "2026-11-19T10:12:00.000Z",
    "pendingApproval": null,
    "scheduledVia": null
  }
}
```


## Edit a post

`PATCH /organizations/{organizationId}/workspaces/{workspaceId}/posts/{postId}` · operationId `posts.update`

- Scope: `posts:write`
- Role permission: Edit posts (`post:update`)
- Effect (`write`): Changes data in Beplan.
- Stability: Beta (May still change before it is marked stable.) Since 2026-11-19.

Changes a post: send only the fields to change. `media` and `formatIds` replace the whole list; `platforms` updates the accounts you list and leaves the others as they are; an account's `media: null` makes it follow the post's media again. Send the `updatedAt` you last read as `baseUpdatedAt` so you never overwrite a change you haven't seen (`409 POST_CHANGED_ELSEWHERE`: read the post again). Ignore `liveEpoch` (Beplan's editor only).

While someone has the post open in Beplan's editor, a change to its content (title, caption, hashtags, formats, media, accounts) is refused with `409 POST_OPEN_IN_EDITOR` and a `Retry-After` header: retry later. A post being published or published can't change (`422 POST_ALREADY_PUBLISHED`). Editing a scheduled post keeps it scheduled (its publication is queued again when its accounts change); when the organization requires approval for integrations, editing a scheduled post sends it back to a pending approval request for the same time, editing a post waiting for approval replaces its request with one for the new content, and an edit landing while a person's approval is being carried out answers `409 POST_CHANGED_ELSEWHERE` (read the post again). Once the organization stops requiring approval, editing a post waiting for approval withdraws its request.

**Parameters**

| Name | In | Type | Required | Description |
|---|---|---|---|---|
| `organizationId` | path | string | yes | 1–128 characters |
| `workspaceId` | path | string (uuid) | yes |  |
| `postId` | path | string (uuid) | yes |  |

**Request body** (JSON, required)

- `baseUpdatedAt` (string (date-time), optional): Optional precondition: the post's `updatedAt` you last read. When the post changed since, nothing is written (`409 POST_CHANGED_ELSEWHERE`): read it again and retry. Omitted, the save overwrites.
- `liveEpoch` (integer, optional): Beplan's own editor only (live co-editing). Integrations omit it. at least 0.
- `title` (string, optional): at most 255 characters.
- `caption` (string, optional): The caption every account uses unless it has its own `customCaption`. Captions (the post's, an account's `customCaption` and thread posts) can hold two tokens, replaced when the post goes out: `{{post:<postId|this>:<socialAccountId>}}` links to another publication (a post on one account; `this` is the post being written), becoming its public URL; the post then waits for that publication and can only be scheduled after it (find targets with `posts.linkTargets.list`, check with `posts.linkStatus.get`). `{{link:<trackedLinkId>}}` shares a tracked short link (`trackedLinks.create`) that counts clicks per publication. Limits count a post link as a 90-character URL and a tracked link as a 40-character one. at most 63206 characters.
- `hashtags` (string, optional): at most 5000 characters.
- `formatIds` (array of string (uuid), optional): The post's formats (the workspace's content types), in order; replaces the list. at most 50 items.
- `ignoreOpenFormatSlots` (boolean, optional)
- `media` (array of object, optional): The post's media, in publishing order; replaces the list. Each must be in the workspace's media library. at most 35 items.
  - `mediaId` (string (uuid), required)
  - `altText` (string, optional, nullable): at most 1500 characters.
  - `crop` (object, optional, nullable, MediaCrop): The part of an image published, as fractions (0 to 1) of the image's displayed size: `x`, `y` (top left corner), `width`, `height`. The crop must stay inside the image: `x + width` and `y + height` at most 1.
    - `version` (number, required): always `1`.
    - `unit` (string, required): always `"percent"`.
    - `x` (number, required): from 0 to 1.
    - `y` (number, required): from 0 to 1.
    - `width` (number, required): above 0 to 1.
    - `height` (number, required): above 0 to 1.
    - `aspectRatio` (number, optional): greater than 0.
- `platforms` (array of object, optional): Where the post goes, one entry per account to change (accounts not listed are left as they are). `isActive: false` keeps the account's settings without publishing there. at most 30 items.
  - `socialAccountId` (string (uuid), required): A connected account of the workspace (`GET …/social-accounts`).
  - `isActive` (boolean, required)
  - `type` (string, optional): one of `post`, `story`.
  - `customCaption` (string, optional, nullable): at most 63206 characters.
  - `additionalParams` (map of any, optional): The account's platform options, keyed `<platform>_<option>`; send only the keys you want to set, the others are kept. Common keys: `tiktok_privacyLevel` (`PUBLIC_TO_EVERYONE`, `MUTUAL_FOLLOW_FRIENDS`, `FOLLOWER_OF_CREATOR`, `SELF_ONLY`; required before a TikTok post can be scheduled), `tiktok_allowComments`, `tiktok_allowDuet`, `tiktok_allowStitch`, `tiktok_isAigc`, `tiktok_brandOrganic`, `tiktok_brandContent` (booleans), `tiktok_photoTitle`, `tiktok_firstComment`; `youtube_title` (at most 100 characters), `youtube_privacyStatus` (`public`, `unlisted`, `private`), `youtube_notifySubscribers`, `youtube_isMadeForKids`, `youtube_containsSyntheticMedia` (booleans), `youtube_categoryId`, `youtube_tags` (strings); `instagram_shareToFeed`, `instagram_trialReels` (booleans), `instagram_collaborators` (up to 3 handles); `linkedin_visibility` (`PUBLIC`, `LOGGED_IN`, `CONNECTIONS`); `pinterest_title`, `pinterest_link`, `pinterest_boardId`; `facebook_link`; `threads_link`, `threads_replyControl`; `x_replySettings` (`all`, `followers`, `verified`, `subscribers`, `mentionedUsers`); `bluesky_langs` (up to 3 language codes); `discord_channelId`; `<platform>_hashtags` (a hashtag line for that platform only). A wrong value for a known key is refused with `400 VALIDATION_FAILED`.
  - `media` (array of object, optional, nullable): at most 35 items.
    - `mediaId` (string (uuid), required)
    - `altText` (string, optional, nullable): at most 1500 characters.
    - `crop` (object, optional, nullable, MediaCrop): The part of an image published, as fractions (0 to 1) of the image's displayed size: `x`, `y` (top left corner), `width`, `height`. The crop must stay inside the image: `x + width` and `y + height` at most 1.
      - `version` (number, required): always `1`.
      - `unit` (string, required): always `"percent"`.
      - `x` (number, required): from 0 to 1.
      - `y` (number, required): from 0 to 1.
      - `width` (number, required): above 0 to 1.
      - `height` (number, required): above 0 to 1.
      - `aspectRatio` (number, optional): greater than 0.
  - `thread` (array of object, optional): at most 24 items.
    - `id` (string (uuid), optional)
    - `caption` (string, required): at most 63206 characters.
    - `media` (array of object, required): at most 35 items.
      - `mediaId` (string (uuid), required)
      - `altText` (string, optional, nullable): at most 1500 characters.
      - `crop` (object, optional, nullable, MediaCrop): The part of an image published, as fractions (0 to 1) of the image's displayed size: `x`, `y` (top left corner), `width`, `height`. The crop must stay inside the image: `x + width` and `y + height` at most 1.
        - `version` (number, required): always `1`.
        - `unit` (string, required): always `"percent"`.
        - `x` (number, required): from 0 to 1.
        - `y` (number, required): from 0 to 1.
        - `width` (number, required): above 0 to 1.
        - `height` (number, required): above 0 to 1.
        - `aspectRatio` (number, optional): greater than 0.

**200 OK**

- `data` (object, required, EditorPost)
  - `id` (string, required)
  - `title` (string, required)
  - `caption` (string, required)
  - `hashtags` (string, required)
  - `formatIds` (array of string, required)
  - `ignoreOpenFormatSlots` (boolean, required)
  - `status` (string, required): Where the post stands: `idea`, `in_progress`, `in_review` (drafts), `ready` (finished, in the ready queue, not scheduled), `scheduled` (waits for `scheduledAt`), `in_process` (being published), `posted` (published), `failed` (failed on at least one account: see `platforms[].publishState`). A post waiting for a person's approval keeps its status and has `pendingApproval`. one of `idea`, `in_progress`, `in_review`, `ready`, `scheduled`, `in_process`, `posted`, `failed` (may gain values).
  - `scheduledAt` (string (date-time), required, nullable): When it goes out (or went out), ISO 8601 UTC.
  - `media` (array of object, required)
    - `mediaId` (string, required)
    - `altText` (string, required, nullable)
    - `item` (object, required, MediaItem)
      - `id` (string, required)
      - `folderId` (string, required, nullable): The folder holding the media; `null` at the root of the library.
      - `filename` (string, required)
      - `altText` (string, required, nullable)
      - `mediaType` (string, required): one of `image`, `video`, `gif`, `audio`.
      - `mimeType` (string, required, nullable)
      - `size` (number, required, nullable): File size in bytes, when known.
      - `width` (number, required, nullable): Width in pixels, when known (images at upload, videos once processed); `null` for audio.
      - `height` (number, required, nullable): Height in pixels, when known (images at upload, videos once processed); `null` for audio.
      - `aspectRatio` (number, required): Display ratio (width / height) from the dimensions, clamped to [0.45, 2.4]; `1` when unknown and for audio.
      - `duration` (number, required, nullable): Length in seconds, for videos, GIFs and audio once known (`null` for images).
      - `waveform` (array of number, required, nullable): Audio only: up to 1000 peaks (integers 0–100, 100 = full scale) spread evenly over `duration`. `null` while processing, when processing failed, and for every other type.
      - `createdAt` (string (date-time), required)
      - `formats` (array of object, required)
        - `id` (string, required)
        - `name` (string, required)
        - `color` (string, required)
      - `usage` (string, required): Where the media is used: `unused`; `used` in a post still to publish; `published` only in posts already published (or failed). one of `unused`, `used`, `published`.
      - `processing` (object, required): Upload and processing state: `processing` (videos and audio are being processed), `ready`, or `failed` with a readable `error`. A media can be put in a post while processing.
        - `state` (string, required): one of `processing`, `ready`, `failed`.
        - `error` (string, required, nullable)
      - `previewUrl` (string, required, nullable): Signed URL (valid about one hour) of the image itself or of the video's poster; `null` while there is none yet, and always for audio.
      - `mediaUrl` (string, required): Signed URL (valid about one hour) of the original file, served inline. To save the file under its name, use the media's `download-url`.
      - `playback` (object, required, nullable): HLS playback of a processed video (`manifestUrl`, loaded by the Beplan app's player with its session), else `null`. Always `null` through the public API (`/v1`) and MCP: use `mediaUrl`, or the media's `download-url`, to fetch the file.
        - `manifestUrl` (string, required)
      - `publishCopy` (object, required, nullable): The copy sent to platforms that cannot take the original (a JPEG for images, an H.264/AAC MP4 of at most 1080p for videos): its type, pixels and bytes. `null` when every platform takes the original, or while it is being made.
        - `mimeType` (string, required)
        - `width` (number, required)
        - `height` (number, required)
        - `size` (number, required)
      - `transcriptMatch` (object, optional, MediaTranscriptMatch)
        - `snippet` (string, required)
        - `startMs` (number, required)
        - `source` (string, optional): one of `speech`, `scene`.
    - `crop` (object, optional, nullable, MediaCrop): The part of an image published, as fractions (0 to 1) of the image's displayed size: `x`, `y` (top left corner), `width`, `height`. The crop must stay inside the image: `x + width` and `y + height` at most 1.
      - `version` (number, required): always `1`.
      - `unit` (string, required): always `"percent"`.
      - `x` (number, required): from 0 to 1.
      - `y` (number, required): from 0 to 1.
      - `width` (number, required): above 0 to 1.
      - `height` (number, required): above 0 to 1.
      - `aspectRatio` (number, optional): greater than 0.
  - `platforms` (array of object, required)
    - `socialAccountId` (string, required)
    - `platform` (string, required, SocialPlatform): one of `x`, `instagram`, `facebook`, `tiktok`, `linkedin`, `threads`, `pinterest`, `youtube`, `discord`, `bluesky` (may gain values).
    - `isActive` (boolean, required)
    - `type` (string, required): one of `post`, `story`.
    - `customCaption` (string, required, nullable)
    - `additionalParams` (map of any, required): The account's platform options, keyed `<platform>_<option>`; send only the keys you want to set, the others are kept. Common keys: `tiktok_privacyLevel` (`PUBLIC_TO_EVERYONE`, `MUTUAL_FOLLOW_FRIENDS`, `FOLLOWER_OF_CREATOR`, `SELF_ONLY`; required before a TikTok post can be scheduled), `tiktok_allowComments`, `tiktok_allowDuet`, `tiktok_allowStitch`, `tiktok_isAigc`, `tiktok_brandOrganic`, `tiktok_brandContent` (booleans), `tiktok_photoTitle`, `tiktok_firstComment`; `youtube_title` (at most 100 characters), `youtube_privacyStatus` (`public`, `unlisted`, `private`), `youtube_notifySubscribers`, `youtube_isMadeForKids`, `youtube_containsSyntheticMedia` (booleans), `youtube_categoryId`, `youtube_tags` (strings); `instagram_shareToFeed`, `instagram_trialReels` (booleans), `instagram_collaborators` (up to 3 handles); `linkedin_visibility` (`PUBLIC`, `LOGGED_IN`, `CONNECTIONS`); `pinterest_title`, `pinterest_link`, `pinterest_boardId`; `facebook_link`; `threads_link`, `threads_replyControl`; `x_replySettings` (`all`, `followers`, `verified`, `subscribers`, `mentionedUsers`); `bluesky_langs` (up to 3 language codes); `discord_channelId`; `<platform>_hashtags` (a hashtag line for that platform only). A wrong value for a known key is refused with `400 VALIDATION_FAILED`.
    - `media` (array of object, required, nullable)
      - `mediaId` (string, required)
      - `altText` (string, required, nullable)
      - `item` (object, required, MediaItem)
        - `id` (string, required)
        - `folderId` (string, required, nullable): The folder holding the media; `null` at the root of the library.
        - `filename` (string, required)
        - `altText` (string, required, nullable)
        - `mediaType` (string, required): one of `image`, `video`, `gif`, `audio`.
        - `mimeType` (string, required, nullable)
        - `size` (number, required, nullable): File size in bytes, when known.
        - `width` (number, required, nullable): Width in pixels, when known (images at upload, videos once processed); `null` for audio.
        - `height` (number, required, nullable): Height in pixels, when known (images at upload, videos once processed); `null` for audio.
        - `aspectRatio` (number, required): Display ratio (width / height) from the dimensions, clamped to [0.45, 2.4]; `1` when unknown and for audio.
        - `duration` (number, required, nullable): Length in seconds, for videos, GIFs and audio once known (`null` for images).
        - `waveform` (array of number, required, nullable): Audio only: up to 1000 peaks (integers 0–100, 100 = full scale) spread evenly over `duration`. `null` while processing, when processing failed, and for every other type.
        - `createdAt` (string (date-time), required)
        - `formats` (array of object, required)
          - `id` (string, required)
          - `name` (string, required)
          - `color` (string, required)
        - `usage` (string, required): Where the media is used: `unused`; `used` in a post still to publish; `published` only in posts already published (or failed). one of `unused`, `used`, `published`.
        - `processing` (object, required): Upload and processing state: `processing` (videos and audio are being processed), `ready`, or `failed` with a readable `error`. A media can be put in a post while processing.
          - `state` (string, required): one of `processing`, `ready`, `failed`.
          - `error` (string, required, nullable)
        - `previewUrl` (string, required, nullable): Signed URL (valid about one hour) of the image itself or of the video's poster; `null` while there is none yet, and always for audio.
        - `mediaUrl` (string, required): Signed URL (valid about one hour) of the original file, served inline. To save the file under its name, use the media's `download-url`.
        - `playback` (object, required, nullable): HLS playback of a processed video (`manifestUrl`, loaded by the Beplan app's player with its session), else `null`. Always `null` through the public API (`/v1`) and MCP: use `mediaUrl`, or the media's `download-url`, to fetch the file.
          - `manifestUrl` (string, required)
        - `publishCopy` (object, required, nullable): The copy sent to platforms that cannot take the original (a JPEG for images, an H.264/AAC MP4 of at most 1080p for videos): its type, pixels and bytes. `null` when every platform takes the original, or while it is being made.
          - `mimeType` (string, required)
          - `width` (number, required)
          - `height` (number, required)
          - `size` (number, required)
        - `transcriptMatch` (object, optional, MediaTranscriptMatch)
          - `snippet` (string, required)
          - `startMs` (number, required)
          - `source` (string, optional): one of `speech`, `scene`.
      - `crop` (object, optional, nullable, MediaCrop): The part of an image published, as fractions (0 to 1) of the image's displayed size: `x`, `y` (top left corner), `width`, `height`. The crop must stay inside the image: `x + width` and `y + height` at most 1.
        - `version` (number, required): always `1`.
        - `unit` (string, required): always `"percent"`.
        - `x` (number, required): from 0 to 1.
        - `y` (number, required): from 0 to 1.
        - `width` (number, required): above 0 to 1.
        - `height` (number, required): above 0 to 1.
        - `aspectRatio` (number, optional): greater than 0.
    - `thread` (array of object, required)
      - `id` (string, optional)
      - `caption` (string, required)
      - `media` (array of object, required)
        - `mediaId` (string, required)
        - `altText` (string, required, nullable)
        - `item` (object, required, MediaItem)
          - `id` (string, required)
          - `folderId` (string, required, nullable): The folder holding the media; `null` at the root of the library.
          - `filename` (string, required)
          - `altText` (string, required, nullable)
          - `mediaType` (string, required): one of `image`, `video`, `gif`, `audio`.
          - `mimeType` (string, required, nullable)
          - `size` (number, required, nullable): File size in bytes, when known.
          - `width` (number, required, nullable): Width in pixels, when known (images at upload, videos once processed); `null` for audio.
          - `height` (number, required, nullable): Height in pixels, when known (images at upload, videos once processed); `null` for audio.
          - `aspectRatio` (number, required): Display ratio (width / height) from the dimensions, clamped to [0.45, 2.4]; `1` when unknown and for audio.
          - `duration` (number, required, nullable): Length in seconds, for videos, GIFs and audio once known (`null` for images).
          - `waveform` (array of number, required, nullable): Audio only: up to 1000 peaks (integers 0–100, 100 = full scale) spread evenly over `duration`. `null` while processing, when processing failed, and for every other type.
          - `createdAt` (string (date-time), required)
          - `formats` (array of object, required)
            - `id` (string, required)
            - `name` (string, required)
            - `color` (string, required)
          - `usage` (string, required): Where the media is used: `unused`; `used` in a post still to publish; `published` only in posts already published (or failed). one of `unused`, `used`, `published`.
          - `processing` (object, required): Upload and processing state: `processing` (videos and audio are being processed), `ready`, or `failed` with a readable `error`. A media can be put in a post while processing.
            - `state` (string, required): one of `processing`, `ready`, `failed`.
            - `error` (string, required, nullable)
          - `previewUrl` (string, required, nullable): Signed URL (valid about one hour) of the image itself or of the video's poster; `null` while there is none yet, and always for audio.
          - `mediaUrl` (string, required): Signed URL (valid about one hour) of the original file, served inline. To save the file under its name, use the media's `download-url`.
          - `playback` (object, required, nullable): HLS playback of a processed video (`manifestUrl`, loaded by the Beplan app's player with its session), else `null`. Always `null` through the public API (`/v1`) and MCP: use `mediaUrl`, or the media's `download-url`, to fetch the file.
            - `manifestUrl` (string, required)
          - `publishCopy` (object, required, nullable): The copy sent to platforms that cannot take the original (a JPEG for images, an H.264/AAC MP4 of at most 1080p for videos): its type, pixels and bytes. `null` when every platform takes the original, or while it is being made.
            - `mimeType` (string, required)
            - `width` (number, required)
            - `height` (number, required)
            - `size` (number, required)
          - `transcriptMatch` (object, optional, MediaTranscriptMatch)
            - `snippet` (string, required)
            - `startMs` (number, required)
            - `source` (string, optional): one of `speech`, `scene`.
        - `crop` (object, optional, nullable, MediaCrop): The part of an image published, as fractions (0 to 1) of the image's displayed size: `x`, `y` (top left corner), `width`, `height`. The crop must stay inside the image: `x + width` and `y + height` at most 1.
          - `version` (number, required): always `1`.
          - `unit` (string, required): always `"percent"`.
          - `x` (number, required): from 0 to 1.
          - `y` (number, required): from 0 to 1.
          - `width` (number, required): above 0 to 1.
          - `height` (number, required): above 0 to 1.
          - `aspectRatio` (number, optional): greater than 0.
    - `publishedUrl` (string, optional, nullable)
    - `publishedUrlKind` (string, optional, nullable): one of `post`, `studio`.
    - `publishState` (string, optional): one of `pending`, `published`, `failed`.
    - `publishError` (string, optional, nullable)
  - `updatedAt` (string (date-time), required): Last change. Send it back as `baseUpdatedAt` when saving so you never overwrite a change you haven't read.
  - `pendingApproval` (object, optional, nullable, EditorPostPendingApproval)
    - `id` (string (uuid), required)
    - `action` (string, required): one of `schedule`, `publish_now`.
    - `scheduledAt` (string (date-time), required, nullable)
    - `createdAt` (string (date-time), required)
    - `url` (string, required)
  - `scheduledVia` (object, optional, nullable, PostVia)
    - `kind` (string, required, PublicConnectionKind): one of `personal_token`, `app`, `mcp`.
    - `name` (string, required)
  - `beplanPromotion` (object, optional, nullable, EditorBeplanPromotion)
    - `userId` (string, required)
    - `userName` (string, required)
    - `disclosure` (string, required)
    - `mentionsBeplan` (boolean, required)

**Errors**

| Status | Code | Message |
|---|---|---|
| 400 | `VALIDATION_FAILED` | Some of the information sent is invalid. |
| 403 | `MISSING_PERMISSION` | You don't have permission to do this. |
| 404 | `FORMAT_NOT_FOUND` | One of the formats doesn't exist in this workspace. |
| 404 | `MEDIA_NOT_FOUND` | This media doesn't exist or was deleted. |
| 404 | `ORGANIZATION_NOT_FOUND` | This organization doesn't exist or you're not a member of it. |
| 404 | `POST_NOT_FOUND` | This post doesn't exist or was deleted. |
| 404 | `SOCIAL_ACCOUNT_NOT_FOUND` | This account isn't connected to this workspace anymore. |
| 404 | `WORKSPACE_NOT_FOUND` | This workspace doesn't exist or you don't have access to it. |
| 409 | `POST_CHANGED_ELSEWHERE` | This post was changed somewhere else since you opened it. Reload it or keep your version. |
| 409 | `POST_OPEN_IN_EDITOR` | Someone is editing this post right now. Try again in a moment. |
| 422 | `POST_ALREADY_PUBLISHED` | This post is already published or being published. |
| 422 | `POST_HAS_LINKED_POSTS` | Scheduled posts link to this one. Unschedule them first, or unschedule them together. |
| 422 | `POST_HAS_NO_PLATFORMS` | Select at least one account to publish this post to. |
| 422 | `POST_INVALID_FOR_PLATFORM` | This post doesn't meet a platform's requirements. Open it to fix it. |
| 422 | `POST_LINK_CYCLE` | These posts link to each other in a loop. Remove one of the links. |
| 422 | `POST_LINK_MUST_BE_AFTER` | This post links to a post that goes out at the same time or later. Schedule it after that post. |
| 422 | `POST_LINK_MUST_BE_BEFORE` | Another post links to this one, so this one has to go out first. |
| 422 | `POST_LINK_SELF` | An account's caption links to its own post. Give that account its own caption without the link. |
| 422 | `POST_LINK_TARGET_NOT_PUBLISHED` | This post links to a post that isn't published yet, so it can't go out now. |
| 422 | `POST_LINK_TARGET_NOT_SCHEDULED` | This post links to a post that isn't scheduled yet. Schedule that post first. |
| 422 | `POST_LINK_TARGET_UNAVAILABLE` | This post links to a post that no longer exists, or to an account it no longer goes to. |

Also, like every operation: `APP_SUSPENDED` (401), `TOKEN_EXPIRED` (401), `TOKEN_REVOKED` (401), `UNAUTHENTICATED` (401), `INSUFFICIENT_SCOPE` (403), `INTEGRATION_BLOCKED_BY_ORGANIZATION` (403), `INTEGRATION_PENDING_APPROVAL` (403), `PAYLOAD_TOO_LARGE` (413), `UNSUPPORTED_MEDIA_TYPE` (415), `RATE_LIMITED` (429), `INTERNAL_ERROR` (500).

**Example: A new caption, only if nobody changed the post since it was read**

```bash
curl -X PATCH "https://api.beplan.io/v1/organizations/ORGANIZATION_ID/workspaces/WORKSPACE_ID/posts/6f1c2a3b-4d5e-4f60-8a71-92b3c4d5e6f7" \
  -H "Authorization: Bearer beplan_pat_…" \
  -H "Content-Type: application/json" \
  -d '{
  "baseUpdatedAt": "2026-11-19T10:12:00.000Z",
  "caption": "Something new lands Thursday at 10."
}'
```

Answers 200:

```json
{
  "data": {
    "id": "6f1c2a3b-4d5e-4f60-8a71-92b3c4d5e6f7",
    "title": "Spring drop teaser",
    "caption": "Something new lands Thursday at 10.",
    "hashtags": "#springdrop",
    "formatIds": [],
    "ignoreOpenFormatSlots": false,
    "status": "idea",
    "scheduledAt": null,
    "media": [
      {
        "mediaId": "c3d4e5f6-a7b8-4c9d-8e0f-1a2b3c4d5e6f",
        "altText": "The spring collection on a table",
        "item": {
          "id": "c3d4e5f6-a7b8-4c9d-8e0f-1a2b3c4d5e6f",
          "folderId": null,
          "filename": "spring-collection.jpg",
          "altText": "The spring collection on a table",
          "mediaType": "image",
          "mimeType": "image/jpeg",
          "size": 482133,
          "width": 1080,
          "height": 1350,
          "aspectRatio": 0.8,
          "duration": null,
          "waveform": null,
          "createdAt": "2026-11-18T09:30:00.000Z",
          "formats": [],
          "usage": "used",
          "processing": {
            "state": "ready",
            "error": null
          },
          "previewUrl": "https://storage.beplan.io/org-media/…/preview?X-Amz-Signature=…",
          "mediaUrl": "https://storage.beplan.io/org-media/…?X-Amz-Signature=…",
          "playback": null,
          "publishCopy": null
        },
        "crop": null
      }
    ],
    "platforms": [
      {
        "socialAccountId": "0b6f5c1e-2a7d-4c3b-9e8f-1a2b3c4d5e6f",
        "platform": "linkedin",
        "isActive": true,
        "type": "post",
        "customCaption": null,
        "additionalParams": {
          "linkedin_visibility": "PUBLIC"
        },
        "media": null,
        "thread": [],
        "publishedUrl": null,
        "publishedUrlKind": null,
        "publishState": "pending",
        "publishError": null
      }
    ],
    "updatedAt": "2026-11-19T10:20:00.000Z",
    "pendingApproval": null,
    "scheduledVia": null
  }
}
```


## Delete a post

`DELETE /organizations/{organizationId}/workspaces/{workspaceId}/posts/{postId}` · operationId `posts.delete`

- Scope: `posts:write`
- Role permission: Delete posts (`post:delete`)
- Effect (`destructive`): Deletes data or cannot be undone.
- Stability: Beta (May still change before it is marked stable.) Since 2026-11-19.

Deletes a post for good, with its media links (not the library media), account settings and analytics, and cancels its queued publication. Posts already published stay on the platforms. Refused while it is being published (`422 POST_ALREADY_PUBLISHED`). When scheduled posts link to it, the delete is refused (`422 POST_HAS_LINKED_POSTS`, listed in `details.posts`) unless `withLinkedPosts=true`, which sends them back to Ready. A deal's post that must stay live needs `confirmDeal=true`. Answers `204` with no body.

**Parameters**

| Name | In | Type | Required | Description |
|---|---|---|---|---|
| `organizationId` | path | string | yes | 1–128 characters |
| `workspaceId` | path | string (uuid) | yes |  |
| `postId` | path | string (uuid) | yes |  |
| `withLinkedPosts` | query | string (true, false) | no | `true`: posts scheduled to link to this one (`{{post:…}}` links) go back to Ready with it; otherwise the delete is refused while such posts exist. |
| `confirmDeal` | query | string (0, 1, true, false) | no | `true` (or `1`): confirms deleting a deal's post that must stay live under the deal. |

**204 No content**

No content.

**Errors**

| Status | Code | Message |
|---|---|---|
| 400 | `VALIDATION_FAILED` | Some of the information sent is invalid. |
| 403 | `MISSING_PERMISSION` | You don't have permission to do this. |
| 404 | `ORGANIZATION_NOT_FOUND` | This organization doesn't exist or you're not a member of it. |
| 404 | `POST_NOT_FOUND` | This post doesn't exist or was deleted. |
| 404 | `WORKSPACE_NOT_FOUND` | This workspace doesn't exist or you don't have access to it. |
| 409 | `DEAL_POST_UNDER_OBLIGATION` | This post must stay live under a deal. Confirm to delete it anyway. |
| 422 | `POST_ALREADY_PUBLISHED` | This post is already published or being published. |
| 422 | `POST_HAS_LINKED_POSTS` | Scheduled posts link to this one. Unschedule them first, or unschedule them together. |

Also, like every operation: `APP_SUSPENDED` (401), `TOKEN_EXPIRED` (401), `TOKEN_REVOKED` (401), `UNAUTHENTICATED` (401), `INSUFFICIENT_SCOPE` (403), `INTEGRATION_BLOCKED_BY_ORGANIZATION` (403), `INTEGRATION_PENDING_APPROVAL` (403), `RATE_LIMITED` (429), `INTERNAL_ERROR` (500).

**Example: Delete a draft**

```bash
curl -X DELETE "https://api.beplan.io/v1/organizations/ORGANIZATION_ID/workspaces/WORKSPACE_ID/posts/6f1c2a3b-4d5e-4f60-8a71-92b3c4d5e6f7" \
  -H "Authorization: Bearer beplan_pat_…"
```

Answers 204 with no content.


## Duplicate a post

`POST /organizations/{organizationId}/workspaces/{workspaceId}/posts/{postId}/duplicate` · operationId `posts.duplicate`

- Scope: `posts:write`
- Role permission: Create posts (`post:create`)
- Effect (`write`): Changes data in Beplan.
- Idempotency: Send an `Idempotency-Key` to retry safely: the same key with the same body within 24 hours returns the stored response.
- Stability: Beta (May still change before it is marked stable.) Since 2026-11-19.

Copies a post as a new draft (status `idea`, no date) with its formats, media and account settings. `onlyFailedPlatforms: true` keeps only the accounts where it failed (the title gets a "[Failed]" prefix); `platforms` sends the copy to the workspace's accounts on those platforms instead (one of the two at most). Answers `201` with the new post's id and title; read it with `GET …/posts/:postId`.

**Parameters**

| Name | In | Type | Required | Description |
|---|---|---|---|---|
| `organizationId` | path | string | yes | 1–128 characters |
| `workspaceId` | path | string (uuid) | yes |  |
| `postId` | path | string (uuid) | yes |  |

**Request body** (JSON, required)

- `onlyFailedPlatforms` (boolean, optional)
- `platforms` (array of string, optional): one of `x`, `instagram`, `facebook`, `tiktok`, `linkedin`, `threads`, `pinterest`, `youtube`, `discord`, `bluesky`; 1–10 items.

**201 Created**

- `data` (object, required)
  - `id` (string, required)
  - `title` (string, required)

**Errors**

| Status | Code | Message |
|---|---|---|
| 400 | `VALIDATION_FAILED` | Some of the information sent is invalid. |
| 403 | `MISSING_PERMISSION` | You don't have permission to do this. |
| 404 | `ORGANIZATION_NOT_FOUND` | This organization doesn't exist or you're not a member of it. |
| 404 | `POST_NOT_FOUND` | This post doesn't exist or was deleted. |
| 404 | `WORKSPACE_NOT_FOUND` | This workspace doesn't exist or you don't have access to it. |

Also, like every operation: `APP_SUSPENDED` (401), `TOKEN_EXPIRED` (401), `TOKEN_REVOKED` (401), `UNAUTHENTICATED` (401), `INSUFFICIENT_SCOPE` (403), `INTEGRATION_BLOCKED_BY_ORGANIZATION` (403), `INTEGRATION_PENDING_APPROVAL` (403), `CONFLICT` (409), `IDEMPOTENCY_KEY_REUSED` (409), `PAYLOAD_TOO_LARGE` (413), `UNSUPPORTED_MEDIA_TYPE` (415), `RATE_LIMITED` (429), `INTERNAL_ERROR` (500).

**Example: A copy for the workspace's Instagram accounts**

```bash
curl -X POST "https://api.beplan.io/v1/organizations/ORGANIZATION_ID/workspaces/WORKSPACE_ID/posts/6f1c2a3b-4d5e-4f60-8a71-92b3c4d5e6f7/duplicate" \
  -H "Authorization: Bearer beplan_pat_…" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{
  "platforms": [
    "instagram"
  ]
}'
```

Answers 201:

```json
{
  "data": {
    "id": "1d2e3f40-5a6b-4c7d-8e9f-0a1b2c3d4e5f",
    "title": "Spring drop teaser (copy)"
  }
}
```


## Publish a post now

`POST /organizations/{organizationId}/workspaces/{workspaceId}/posts/{postId}/publish-now` · operationId `posts.publishNow`

- Scope: `posts:publish`
- Role permission: Publish posts (`post:publish`)
- Effect (`external`): Leaves Beplan: publishes, sends a message or an email, or spends paid quota. Counts against the smaller budget of operations that leave Beplan.
- Idempotency: Send an `Idempotency-Key` to retry safely: the same key with the same body within 24 hours returns the stored response.
- Stability: Beta (May still change before it is marked stable.) Since 2026-11-19.

Publishes the post on every active account right away, with the same checks as scheduling (its media must be processed). Publishing takes a moment: the post answers as `in_process`; read it again (`GET …/posts/:postId`) to see each account's `publishState` and `publishedUrl`. No body.

When the organization requires a person's approval for integrations, nothing is published: `202` with the post unchanged and `approval` (see `POST …/schedule`).

**Parameters**

| Name | In | Type | Required | Description |
|---|---|---|---|---|
| `organizationId` | path | string | yes | 1–128 characters |
| `workspaceId` | path | string (uuid) | yes |  |
| `postId` | path | string (uuid) | yes |  |

**200 OK**

- `data` (object, required, EditorPost)
  - `id` (string, required)
  - `title` (string, required)
  - `caption` (string, required)
  - `hashtags` (string, required)
  - `formatIds` (array of string, required)
  - `ignoreOpenFormatSlots` (boolean, required)
  - `status` (string, required): Where the post stands: `idea`, `in_progress`, `in_review` (drafts), `ready` (finished, in the ready queue, not scheduled), `scheduled` (waits for `scheduledAt`), `in_process` (being published), `posted` (published), `failed` (failed on at least one account: see `platforms[].publishState`). A post waiting for a person's approval keeps its status and has `pendingApproval`. one of `idea`, `in_progress`, `in_review`, `ready`, `scheduled`, `in_process`, `posted`, `failed` (may gain values).
  - `scheduledAt` (string (date-time), required, nullable): When it goes out (or went out), ISO 8601 UTC.
  - `media` (array of object, required)
    - `mediaId` (string, required)
    - `altText` (string, required, nullable)
    - `item` (object, required, MediaItem)
      - `id` (string, required)
      - `folderId` (string, required, nullable): The folder holding the media; `null` at the root of the library.
      - `filename` (string, required)
      - `altText` (string, required, nullable)
      - `mediaType` (string, required): one of `image`, `video`, `gif`, `audio`.
      - `mimeType` (string, required, nullable)
      - `size` (number, required, nullable): File size in bytes, when known.
      - `width` (number, required, nullable): Width in pixels, when known (images at upload, videos once processed); `null` for audio.
      - `height` (number, required, nullable): Height in pixels, when known (images at upload, videos once processed); `null` for audio.
      - `aspectRatio` (number, required): Display ratio (width / height) from the dimensions, clamped to [0.45, 2.4]; `1` when unknown and for audio.
      - `duration` (number, required, nullable): Length in seconds, for videos, GIFs and audio once known (`null` for images).
      - `waveform` (array of number, required, nullable): Audio only: up to 1000 peaks (integers 0–100, 100 = full scale) spread evenly over `duration`. `null` while processing, when processing failed, and for every other type.
      - `createdAt` (string (date-time), required)
      - `formats` (array of object, required)
        - `id` (string, required)
        - `name` (string, required)
        - `color` (string, required)
      - `usage` (string, required): Where the media is used: `unused`; `used` in a post still to publish; `published` only in posts already published (or failed). one of `unused`, `used`, `published`.
      - `processing` (object, required): Upload and processing state: `processing` (videos and audio are being processed), `ready`, or `failed` with a readable `error`. A media can be put in a post while processing.
        - `state` (string, required): one of `processing`, `ready`, `failed`.
        - `error` (string, required, nullable)
      - `previewUrl` (string, required, nullable): Signed URL (valid about one hour) of the image itself or of the video's poster; `null` while there is none yet, and always for audio.
      - `mediaUrl` (string, required): Signed URL (valid about one hour) of the original file, served inline. To save the file under its name, use the media's `download-url`.
      - `playback` (object, required, nullable): HLS playback of a processed video (`manifestUrl`, loaded by the Beplan app's player with its session), else `null`. Always `null` through the public API (`/v1`) and MCP: use `mediaUrl`, or the media's `download-url`, to fetch the file.
        - `manifestUrl` (string, required)
      - `publishCopy` (object, required, nullable): The copy sent to platforms that cannot take the original (a JPEG for images, an H.264/AAC MP4 of at most 1080p for videos): its type, pixels and bytes. `null` when every platform takes the original, or while it is being made.
        - `mimeType` (string, required)
        - `width` (number, required)
        - `height` (number, required)
        - `size` (number, required)
      - `transcriptMatch` (object, optional, MediaTranscriptMatch)
        - `snippet` (string, required)
        - `startMs` (number, required)
        - `source` (string, optional): one of `speech`, `scene`.
    - `crop` (object, optional, nullable, MediaCrop): The part of an image published, as fractions (0 to 1) of the image's displayed size: `x`, `y` (top left corner), `width`, `height`. The crop must stay inside the image: `x + width` and `y + height` at most 1.
      - `version` (number, required): always `1`.
      - `unit` (string, required): always `"percent"`.
      - `x` (number, required): from 0 to 1.
      - `y` (number, required): from 0 to 1.
      - `width` (number, required): above 0 to 1.
      - `height` (number, required): above 0 to 1.
      - `aspectRatio` (number, optional): greater than 0.
  - `platforms` (array of object, required)
    - `socialAccountId` (string, required)
    - `platform` (string, required, SocialPlatform): one of `x`, `instagram`, `facebook`, `tiktok`, `linkedin`, `threads`, `pinterest`, `youtube`, `discord`, `bluesky` (may gain values).
    - `isActive` (boolean, required)
    - `type` (string, required): one of `post`, `story`.
    - `customCaption` (string, required, nullable)
    - `additionalParams` (map of any, required): The account's platform options, keyed `<platform>_<option>`; send only the keys you want to set, the others are kept. Common keys: `tiktok_privacyLevel` (`PUBLIC_TO_EVERYONE`, `MUTUAL_FOLLOW_FRIENDS`, `FOLLOWER_OF_CREATOR`, `SELF_ONLY`; required before a TikTok post can be scheduled), `tiktok_allowComments`, `tiktok_allowDuet`, `tiktok_allowStitch`, `tiktok_isAigc`, `tiktok_brandOrganic`, `tiktok_brandContent` (booleans), `tiktok_photoTitle`, `tiktok_firstComment`; `youtube_title` (at most 100 characters), `youtube_privacyStatus` (`public`, `unlisted`, `private`), `youtube_notifySubscribers`, `youtube_isMadeForKids`, `youtube_containsSyntheticMedia` (booleans), `youtube_categoryId`, `youtube_tags` (strings); `instagram_shareToFeed`, `instagram_trialReels` (booleans), `instagram_collaborators` (up to 3 handles); `linkedin_visibility` (`PUBLIC`, `LOGGED_IN`, `CONNECTIONS`); `pinterest_title`, `pinterest_link`, `pinterest_boardId`; `facebook_link`; `threads_link`, `threads_replyControl`; `x_replySettings` (`all`, `followers`, `verified`, `subscribers`, `mentionedUsers`); `bluesky_langs` (up to 3 language codes); `discord_channelId`; `<platform>_hashtags` (a hashtag line for that platform only). A wrong value for a known key is refused with `400 VALIDATION_FAILED`.
    - `media` (array of object, required, nullable)
      - `mediaId` (string, required)
      - `altText` (string, required, nullable)
      - `item` (object, required, MediaItem)
        - `id` (string, required)
        - `folderId` (string, required, nullable): The folder holding the media; `null` at the root of the library.
        - `filename` (string, required)
        - `altText` (string, required, nullable)
        - `mediaType` (string, required): one of `image`, `video`, `gif`, `audio`.
        - `mimeType` (string, required, nullable)
        - `size` (number, required, nullable): File size in bytes, when known.
        - `width` (number, required, nullable): Width in pixels, when known (images at upload, videos once processed); `null` for audio.
        - `height` (number, required, nullable): Height in pixels, when known (images at upload, videos once processed); `null` for audio.
        - `aspectRatio` (number, required): Display ratio (width / height) from the dimensions, clamped to [0.45, 2.4]; `1` when unknown and for audio.
        - `duration` (number, required, nullable): Length in seconds, for videos, GIFs and audio once known (`null` for images).
        - `waveform` (array of number, required, nullable): Audio only: up to 1000 peaks (integers 0–100, 100 = full scale) spread evenly over `duration`. `null` while processing, when processing failed, and for every other type.
        - `createdAt` (string (date-time), required)
        - `formats` (array of object, required)
          - `id` (string, required)
          - `name` (string, required)
          - `color` (string, required)
        - `usage` (string, required): Where the media is used: `unused`; `used` in a post still to publish; `published` only in posts already published (or failed). one of `unused`, `used`, `published`.
        - `processing` (object, required): Upload and processing state: `processing` (videos and audio are being processed), `ready`, or `failed` with a readable `error`. A media can be put in a post while processing.
          - `state` (string, required): one of `processing`, `ready`, `failed`.
          - `error` (string, required, nullable)
        - `previewUrl` (string, required, nullable): Signed URL (valid about one hour) of the image itself or of the video's poster; `null` while there is none yet, and always for audio.
        - `mediaUrl` (string, required): Signed URL (valid about one hour) of the original file, served inline. To save the file under its name, use the media's `download-url`.
        - `playback` (object, required, nullable): HLS playback of a processed video (`manifestUrl`, loaded by the Beplan app's player with its session), else `null`. Always `null` through the public API (`/v1`) and MCP: use `mediaUrl`, or the media's `download-url`, to fetch the file.
          - `manifestUrl` (string, required)
        - `publishCopy` (object, required, nullable): The copy sent to platforms that cannot take the original (a JPEG for images, an H.264/AAC MP4 of at most 1080p for videos): its type, pixels and bytes. `null` when every platform takes the original, or while it is being made.
          - `mimeType` (string, required)
          - `width` (number, required)
          - `height` (number, required)
          - `size` (number, required)
        - `transcriptMatch` (object, optional, MediaTranscriptMatch)
          - `snippet` (string, required)
          - `startMs` (number, required)
          - `source` (string, optional): one of `speech`, `scene`.
      - `crop` (object, optional, nullable, MediaCrop): The part of an image published, as fractions (0 to 1) of the image's displayed size: `x`, `y` (top left corner), `width`, `height`. The crop must stay inside the image: `x + width` and `y + height` at most 1.
        - `version` (number, required): always `1`.
        - `unit` (string, required): always `"percent"`.
        - `x` (number, required): from 0 to 1.
        - `y` (number, required): from 0 to 1.
        - `width` (number, required): above 0 to 1.
        - `height` (number, required): above 0 to 1.
        - `aspectRatio` (number, optional): greater than 0.
    - `thread` (array of object, required)
      - `id` (string, optional)
      - `caption` (string, required)
      - `media` (array of object, required)
        - `mediaId` (string, required)
        - `altText` (string, required, nullable)
        - `item` (object, required, MediaItem)
          - `id` (string, required)
          - `folderId` (string, required, nullable): The folder holding the media; `null` at the root of the library.
          - `filename` (string, required)
          - `altText` (string, required, nullable)
          - `mediaType` (string, required): one of `image`, `video`, `gif`, `audio`.
          - `mimeType` (string, required, nullable)
          - `size` (number, required, nullable): File size in bytes, when known.
          - `width` (number, required, nullable): Width in pixels, when known (images at upload, videos once processed); `null` for audio.
          - `height` (number, required, nullable): Height in pixels, when known (images at upload, videos once processed); `null` for audio.
          - `aspectRatio` (number, required): Display ratio (width / height) from the dimensions, clamped to [0.45, 2.4]; `1` when unknown and for audio.
          - `duration` (number, required, nullable): Length in seconds, for videos, GIFs and audio once known (`null` for images).
          - `waveform` (array of number, required, nullable): Audio only: up to 1000 peaks (integers 0–100, 100 = full scale) spread evenly over `duration`. `null` while processing, when processing failed, and for every other type.
          - `createdAt` (string (date-time), required)
          - `formats` (array of object, required)
            - `id` (string, required)
            - `name` (string, required)
            - `color` (string, required)
          - `usage` (string, required): Where the media is used: `unused`; `used` in a post still to publish; `published` only in posts already published (or failed). one of `unused`, `used`, `published`.
          - `processing` (object, required): Upload and processing state: `processing` (videos and audio are being processed), `ready`, or `failed` with a readable `error`. A media can be put in a post while processing.
            - `state` (string, required): one of `processing`, `ready`, `failed`.
            - `error` (string, required, nullable)
          - `previewUrl` (string, required, nullable): Signed URL (valid about one hour) of the image itself or of the video's poster; `null` while there is none yet, and always for audio.
          - `mediaUrl` (string, required): Signed URL (valid about one hour) of the original file, served inline. To save the file under its name, use the media's `download-url`.
          - `playback` (object, required, nullable): HLS playback of a processed video (`manifestUrl`, loaded by the Beplan app's player with its session), else `null`. Always `null` through the public API (`/v1`) and MCP: use `mediaUrl`, or the media's `download-url`, to fetch the file.
            - `manifestUrl` (string, required)
          - `publishCopy` (object, required, nullable): The copy sent to platforms that cannot take the original (a JPEG for images, an H.264/AAC MP4 of at most 1080p for videos): its type, pixels and bytes. `null` when every platform takes the original, or while it is being made.
            - `mimeType` (string, required)
            - `width` (number, required)
            - `height` (number, required)
            - `size` (number, required)
          - `transcriptMatch` (object, optional, MediaTranscriptMatch)
            - `snippet` (string, required)
            - `startMs` (number, required)
            - `source` (string, optional): one of `speech`, `scene`.
        - `crop` (object, optional, nullable, MediaCrop): The part of an image published, as fractions (0 to 1) of the image's displayed size: `x`, `y` (top left corner), `width`, `height`. The crop must stay inside the image: `x + width` and `y + height` at most 1.
          - `version` (number, required): always `1`.
          - `unit` (string, required): always `"percent"`.
          - `x` (number, required): from 0 to 1.
          - `y` (number, required): from 0 to 1.
          - `width` (number, required): above 0 to 1.
          - `height` (number, required): above 0 to 1.
          - `aspectRatio` (number, optional): greater than 0.
    - `publishedUrl` (string, optional, nullable)
    - `publishedUrlKind` (string, optional, nullable): one of `post`, `studio`.
    - `publishState` (string, optional): one of `pending`, `published`, `failed`.
    - `publishError` (string, optional, nullable)
  - `updatedAt` (string (date-time), required): Last change. Send it back as `baseUpdatedAt` when saving so you never overwrite a change you haven't read.
  - `pendingApproval` (object, optional, nullable, EditorPostPendingApproval)
    - `id` (string (uuid), required)
    - `action` (string, required): one of `schedule`, `publish_now`.
    - `scheduledAt` (string (date-time), required, nullable)
    - `createdAt` (string (date-time), required)
    - `url` (string, required)
  - `scheduledVia` (object, optional, nullable, PostVia)
    - `kind` (string, required, PublicConnectionKind): one of `personal_token`, `app`, `mcp`.
    - `name` (string, required)
  - `beplanPromotion` (object, optional, nullable, EditorBeplanPromotion)
    - `userId` (string, required)
    - `userName` (string, required)
    - `disclosure` (string, required)
    - `mentionsBeplan` (boolean, required)

**202 Accepted**

- `data` (object, required)
  - `id` (string, required)
  - `title` (string, required)
  - `caption` (string, required)
  - `hashtags` (string, required)
  - `formatIds` (array of string, required)
  - `ignoreOpenFormatSlots` (boolean, required)
  - `status` (string, required): Where the post stands: `idea`, `in_progress`, `in_review` (drafts), `ready` (finished, in the ready queue, not scheduled), `scheduled` (waits for `scheduledAt`), `in_process` (being published), `posted` (published), `failed` (failed on at least one account: see `platforms[].publishState`). A post waiting for a person's approval keeps its status and has `pendingApproval`. one of `idea`, `in_progress`, `in_review`, `ready`, `scheduled`, `in_process`, `posted`, `failed` (may gain values).
  - `scheduledAt` (string (date-time), required, nullable): When it goes out (or went out), ISO 8601 UTC.
  - `media` (array of object, required)
    - `mediaId` (string, required)
    - `altText` (string, required, nullable)
    - `item` (object, required, MediaItem)
      - `id` (string, required)
      - `folderId` (string, required, nullable): The folder holding the media; `null` at the root of the library.
      - `filename` (string, required)
      - `altText` (string, required, nullable)
      - `mediaType` (string, required): one of `image`, `video`, `gif`, `audio`.
      - `mimeType` (string, required, nullable)
      - `size` (number, required, nullable): File size in bytes, when known.
      - `width` (number, required, nullable): Width in pixels, when known (images at upload, videos once processed); `null` for audio.
      - `height` (number, required, nullable): Height in pixels, when known (images at upload, videos once processed); `null` for audio.
      - `aspectRatio` (number, required): Display ratio (width / height) from the dimensions, clamped to [0.45, 2.4]; `1` when unknown and for audio.
      - `duration` (number, required, nullable): Length in seconds, for videos, GIFs and audio once known (`null` for images).
      - `waveform` (array of number, required, nullable): Audio only: up to 1000 peaks (integers 0–100, 100 = full scale) spread evenly over `duration`. `null` while processing, when processing failed, and for every other type.
      - `createdAt` (string (date-time), required)
      - `formats` (array of object, required)
        - `id` (string, required)
        - `name` (string, required)
        - `color` (string, required)
      - `usage` (string, required): Where the media is used: `unused`; `used` in a post still to publish; `published` only in posts already published (or failed). one of `unused`, `used`, `published`.
      - `processing` (object, required): Upload and processing state: `processing` (videos and audio are being processed), `ready`, or `failed` with a readable `error`. A media can be put in a post while processing.
        - `state` (string, required): one of `processing`, `ready`, `failed`.
        - `error` (string, required, nullable)
      - `previewUrl` (string, required, nullable): Signed URL (valid about one hour) of the image itself or of the video's poster; `null` while there is none yet, and always for audio.
      - `mediaUrl` (string, required): Signed URL (valid about one hour) of the original file, served inline. To save the file under its name, use the media's `download-url`.
      - `playback` (object, required, nullable): HLS playback of a processed video (`manifestUrl`, loaded by the Beplan app's player with its session), else `null`. Always `null` through the public API (`/v1`) and MCP: use `mediaUrl`, or the media's `download-url`, to fetch the file.
        - `manifestUrl` (string, required)
      - `publishCopy` (object, required, nullable): The copy sent to platforms that cannot take the original (a JPEG for images, an H.264/AAC MP4 of at most 1080p for videos): its type, pixels and bytes. `null` when every platform takes the original, or while it is being made.
        - `mimeType` (string, required)
        - `width` (number, required)
        - `height` (number, required)
        - `size` (number, required)
      - `transcriptMatch` (object, optional, MediaTranscriptMatch)
        - `snippet` (string, required)
        - `startMs` (number, required)
        - `source` (string, optional): one of `speech`, `scene`.
    - `crop` (object, optional, nullable, MediaCrop): The part of an image published, as fractions (0 to 1) of the image's displayed size: `x`, `y` (top left corner), `width`, `height`. The crop must stay inside the image: `x + width` and `y + height` at most 1.
      - `version` (number, required): always `1`.
      - `unit` (string, required): always `"percent"`.
      - `x` (number, required): from 0 to 1.
      - `y` (number, required): from 0 to 1.
      - `width` (number, required): above 0 to 1.
      - `height` (number, required): above 0 to 1.
      - `aspectRatio` (number, optional): greater than 0.
  - `platforms` (array of object, required)
    - `socialAccountId` (string, required)
    - `platform` (string, required, SocialPlatform): one of `x`, `instagram`, `facebook`, `tiktok`, `linkedin`, `threads`, `pinterest`, `youtube`, `discord`, `bluesky` (may gain values).
    - `isActive` (boolean, required)
    - `type` (string, required): one of `post`, `story`.
    - `customCaption` (string, required, nullable)
    - `additionalParams` (map of any, required): The account's platform options, keyed `<platform>_<option>`; send only the keys you want to set, the others are kept. Common keys: `tiktok_privacyLevel` (`PUBLIC_TO_EVERYONE`, `MUTUAL_FOLLOW_FRIENDS`, `FOLLOWER_OF_CREATOR`, `SELF_ONLY`; required before a TikTok post can be scheduled), `tiktok_allowComments`, `tiktok_allowDuet`, `tiktok_allowStitch`, `tiktok_isAigc`, `tiktok_brandOrganic`, `tiktok_brandContent` (booleans), `tiktok_photoTitle`, `tiktok_firstComment`; `youtube_title` (at most 100 characters), `youtube_privacyStatus` (`public`, `unlisted`, `private`), `youtube_notifySubscribers`, `youtube_isMadeForKids`, `youtube_containsSyntheticMedia` (booleans), `youtube_categoryId`, `youtube_tags` (strings); `instagram_shareToFeed`, `instagram_trialReels` (booleans), `instagram_collaborators` (up to 3 handles); `linkedin_visibility` (`PUBLIC`, `LOGGED_IN`, `CONNECTIONS`); `pinterest_title`, `pinterest_link`, `pinterest_boardId`; `facebook_link`; `threads_link`, `threads_replyControl`; `x_replySettings` (`all`, `followers`, `verified`, `subscribers`, `mentionedUsers`); `bluesky_langs` (up to 3 language codes); `discord_channelId`; `<platform>_hashtags` (a hashtag line for that platform only). A wrong value for a known key is refused with `400 VALIDATION_FAILED`.
    - `media` (array of object, required, nullable)
      - `mediaId` (string, required)
      - `altText` (string, required, nullable)
      - `item` (object, required, MediaItem)
        - `id` (string, required)
        - `folderId` (string, required, nullable): The folder holding the media; `null` at the root of the library.
        - `filename` (string, required)
        - `altText` (string, required, nullable)
        - `mediaType` (string, required): one of `image`, `video`, `gif`, `audio`.
        - `mimeType` (string, required, nullable)
        - `size` (number, required, nullable): File size in bytes, when known.
        - `width` (number, required, nullable): Width in pixels, when known (images at upload, videos once processed); `null` for audio.
        - `height` (number, required, nullable): Height in pixels, when known (images at upload, videos once processed); `null` for audio.
        - `aspectRatio` (number, required): Display ratio (width / height) from the dimensions, clamped to [0.45, 2.4]; `1` when unknown and for audio.
        - `duration` (number, required, nullable): Length in seconds, for videos, GIFs and audio once known (`null` for images).
        - `waveform` (array of number, required, nullable): Audio only: up to 1000 peaks (integers 0–100, 100 = full scale) spread evenly over `duration`. `null` while processing, when processing failed, and for every other type.
        - `createdAt` (string (date-time), required)
        - `formats` (array of object, required)
          - `id` (string, required)
          - `name` (string, required)
          - `color` (string, required)
        - `usage` (string, required): Where the media is used: `unused`; `used` in a post still to publish; `published` only in posts already published (or failed). one of `unused`, `used`, `published`.
        - `processing` (object, required): Upload and processing state: `processing` (videos and audio are being processed), `ready`, or `failed` with a readable `error`. A media can be put in a post while processing.
          - `state` (string, required): one of `processing`, `ready`, `failed`.
          - `error` (string, required, nullable)
        - `previewUrl` (string, required, nullable): Signed URL (valid about one hour) of the image itself or of the video's poster; `null` while there is none yet, and always for audio.
        - `mediaUrl` (string, required): Signed URL (valid about one hour) of the original file, served inline. To save the file under its name, use the media's `download-url`.
        - `playback` (object, required, nullable): HLS playback of a processed video (`manifestUrl`, loaded by the Beplan app's player with its session), else `null`. Always `null` through the public API (`/v1`) and MCP: use `mediaUrl`, or the media's `download-url`, to fetch the file.
          - `manifestUrl` (string, required)
        - `publishCopy` (object, required, nullable): The copy sent to platforms that cannot take the original (a JPEG for images, an H.264/AAC MP4 of at most 1080p for videos): its type, pixels and bytes. `null` when every platform takes the original, or while it is being made.
          - `mimeType` (string, required)
          - `width` (number, required)
          - `height` (number, required)
          - `size` (number, required)
        - `transcriptMatch` (object, optional, MediaTranscriptMatch)
          - `snippet` (string, required)
          - `startMs` (number, required)
          - `source` (string, optional): one of `speech`, `scene`.
      - `crop` (object, optional, nullable, MediaCrop): The part of an image published, as fractions (0 to 1) of the image's displayed size: `x`, `y` (top left corner), `width`, `height`. The crop must stay inside the image: `x + width` and `y + height` at most 1.
        - `version` (number, required): always `1`.
        - `unit` (string, required): always `"percent"`.
        - `x` (number, required): from 0 to 1.
        - `y` (number, required): from 0 to 1.
        - `width` (number, required): above 0 to 1.
        - `height` (number, required): above 0 to 1.
        - `aspectRatio` (number, optional): greater than 0.
    - `thread` (array of object, required)
      - `id` (string, optional)
      - `caption` (string, required)
      - `media` (array of object, required)
        - `mediaId` (string, required)
        - `altText` (string, required, nullable)
        - `item` (object, required, MediaItem)
          - `id` (string, required)
          - `folderId` (string, required, nullable): The folder holding the media; `null` at the root of the library.
          - `filename` (string, required)
          - `altText` (string, required, nullable)
          - `mediaType` (string, required): one of `image`, `video`, `gif`, `audio`.
          - `mimeType` (string, required, nullable)
          - `size` (number, required, nullable): File size in bytes, when known.
          - `width` (number, required, nullable): Width in pixels, when known (images at upload, videos once processed); `null` for audio.
          - `height` (number, required, nullable): Height in pixels, when known (images at upload, videos once processed); `null` for audio.
          - `aspectRatio` (number, required): Display ratio (width / height) from the dimensions, clamped to [0.45, 2.4]; `1` when unknown and for audio.
          - `duration` (number, required, nullable): Length in seconds, for videos, GIFs and audio once known (`null` for images).
          - `waveform` (array of number, required, nullable): Audio only: up to 1000 peaks (integers 0–100, 100 = full scale) spread evenly over `duration`. `null` while processing, when processing failed, and for every other type.
          - `createdAt` (string (date-time), required)
          - `formats` (array of object, required)
            - `id` (string, required)
            - `name` (string, required)
            - `color` (string, required)
          - `usage` (string, required): Where the media is used: `unused`; `used` in a post still to publish; `published` only in posts already published (or failed). one of `unused`, `used`, `published`.
          - `processing` (object, required): Upload and processing state: `processing` (videos and audio are being processed), `ready`, or `failed` with a readable `error`. A media can be put in a post while processing.
            - `state` (string, required): one of `processing`, `ready`, `failed`.
            - `error` (string, required, nullable)
          - `previewUrl` (string, required, nullable): Signed URL (valid about one hour) of the image itself or of the video's poster; `null` while there is none yet, and always for audio.
          - `mediaUrl` (string, required): Signed URL (valid about one hour) of the original file, served inline. To save the file under its name, use the media's `download-url`.
          - `playback` (object, required, nullable): HLS playback of a processed video (`manifestUrl`, loaded by the Beplan app's player with its session), else `null`. Always `null` through the public API (`/v1`) and MCP: use `mediaUrl`, or the media's `download-url`, to fetch the file.
            - `manifestUrl` (string, required)
          - `publishCopy` (object, required, nullable): The copy sent to platforms that cannot take the original (a JPEG for images, an H.264/AAC MP4 of at most 1080p for videos): its type, pixels and bytes. `null` when every platform takes the original, or while it is being made.
            - `mimeType` (string, required)
            - `width` (number, required)
            - `height` (number, required)
            - `size` (number, required)
          - `transcriptMatch` (object, optional, MediaTranscriptMatch)
            - `snippet` (string, required)
            - `startMs` (number, required)
            - `source` (string, optional): one of `speech`, `scene`.
        - `crop` (object, optional, nullable, MediaCrop): The part of an image published, as fractions (0 to 1) of the image's displayed size: `x`, `y` (top left corner), `width`, `height`. The crop must stay inside the image: `x + width` and `y + height` at most 1.
          - `version` (number, required): always `1`.
          - `unit` (string, required): always `"percent"`.
          - `x` (number, required): from 0 to 1.
          - `y` (number, required): from 0 to 1.
          - `width` (number, required): above 0 to 1.
          - `height` (number, required): above 0 to 1.
          - `aspectRatio` (number, optional): greater than 0.
    - `publishedUrl` (string, optional, nullable)
    - `publishedUrlKind` (string, optional, nullable): one of `post`, `studio`.
    - `publishState` (string, optional): one of `pending`, `published`, `failed`.
    - `publishError` (string, optional, nullable)
  - `updatedAt` (string (date-time), required): Last change. Send it back as `baseUpdatedAt` when saving so you never overwrite a change you haven't read.
  - `pendingApproval` (object, optional, nullable, EditorPostPendingApproval)
    - `id` (string (uuid), required)
    - `action` (string, required): one of `schedule`, `publish_now`.
    - `scheduledAt` (string (date-time), required, nullable)
    - `createdAt` (string (date-time), required)
    - `url` (string, required)
  - `scheduledVia` (object, optional, nullable, PostVia)
    - `kind` (string, required, PublicConnectionKind): one of `personal_token`, `app`, `mcp`.
    - `name` (string, required)
  - `beplanPromotion` (object, optional, nullable, EditorBeplanPromotion)
    - `userId` (string, required)
    - `userName` (string, required)
    - `disclosure` (string, required)
    - `mentionsBeplan` (boolean, required)
  - `approval` (object, required, PostApprovalSummary)
    - `id` (string (uuid), required)
    - `status` (string, required): one of `pending`, `approved`, `rejected`, `cancelled`, `expired`.
    - `url` (string, required): The post's page in the Beplan web app, where a signed-in member approves or rejects the request. A page for people, not an API URL.

**Errors**

| Status | Code | Message |
|---|---|---|
| 402 | `SCHEDULED_POST_LIMIT_REACHED` | Your plan's scheduled posts for this month are used up. Upgrade to schedule more. |
| 403 | `MISSING_PERMISSION` | You don't have permission to do this. |
| 404 | `ORGANIZATION_NOT_FOUND` | This organization doesn't exist or you're not a member of it. |
| 404 | `POST_NOT_FOUND` | This post doesn't exist or was deleted. |
| 404 | `WORKSPACE_NOT_FOUND` | This workspace doesn't exist or you don't have access to it. |
| 409 | `SOCIAL_ACCOUNT_RECONNECT_REQUIRED` | This account is disconnected. Reconnect it, then try again. |
| 422 | `AMBASSADOR_POST_NEEDS_BEPLAN_MENTION` | A Beplan promotional post must mention Beplan in its caption before it can be scheduled. |
| 422 | `DEAL_EMBARGO` | This post can't go out before the deal's embargo date. |
| 422 | `POST_ALREADY_PUBLISHED` | This post is already published or being published. |
| 422 | `POST_HAS_LINKED_POSTS` | Scheduled posts link to this one. Unschedule them first, or unschedule them together. |
| 422 | `POST_HAS_NO_PLATFORMS` | Select at least one account to publish this post to. |
| 422 | `POST_INVALID_FOR_PLATFORM` | This post doesn't meet a platform's requirements. Open it to fix it. |
| 422 | `POST_LINK_CYCLE` | These posts link to each other in a loop. Remove one of the links. |
| 422 | `POST_LINK_MUST_BE_AFTER` | This post links to a post that goes out at the same time or later. Schedule it after that post. |
| 422 | `POST_LINK_MUST_BE_BEFORE` | Another post links to this one, so this one has to go out first. |
| 422 | `POST_LINK_SELF` | An account's caption links to its own post. Give that account its own caption without the link. |
| 422 | `POST_LINK_TARGET_NOT_PUBLISHED` | This post links to a post that isn't published yet, so it can't go out now. |
| 422 | `POST_LINK_TARGET_NOT_SCHEDULED` | This post links to a post that isn't scheduled yet. Schedule that post first. |
| 422 | `POST_LINK_TARGET_UNAVAILABLE` | This post links to a post that no longer exists, or to an account it no longer goes to. |
| 422 | `POST_MEDIA_FAILED` | One of this post's media failed to upload or process. Replace it, then try again. |
| 422 | `POST_MEDIA_PROCESSING` | This post's media are still processing. Post it once they're ready, or schedule it for later. |
| 422 | `SOCIAL_ACCOUNT_SETUP_REQUIRED` | Finish setting up this account: pick the page or channel it posts as, then try again. |
| 422 | `TIKTOK_BUSINESS_VIDEO_PRIVACY_LEVEL` | TikTok Business accounts can only post videos publicly (to all followers for a private account). Change who can see this TikTok video, then schedule it again. |
| 422 | `TIKTOK_PRIVACY_LEVEL_REQUIRED` | Choose who can view this post on TikTok before scheduling it. |
| 422 | `TRACKED_LINK_UNAVAILABLE` | This post has a tracked link that isn't in this workspace anymore. Remove it and add it again with /link. |
| 422 | `X_LINKS_REQUIRE_PAID_PLAN` | Because of X pricing, links in X posts are only available on paid plans. |

Also, like every operation: `VALIDATION_FAILED` (400), `APP_SUSPENDED` (401), `TOKEN_EXPIRED` (401), `TOKEN_REVOKED` (401), `UNAUTHENTICATED` (401), `INSUFFICIENT_SCOPE` (403), `INTEGRATION_BLOCKED_BY_ORGANIZATION` (403), `INTEGRATION_PENDING_APPROVAL` (403), `CONFLICT` (409), `IDEMPOTENCY_KEY_REUSED` (409), `PAYLOAD_TOO_LARGE` (413), `UNSUPPORTED_MEDIA_TYPE` (415), `RATE_LIMITED` (429), `INTERNAL_ERROR` (500).

**Example: Publish a finished post**

```bash
curl -X POST "https://api.beplan.io/v1/organizations/ORGANIZATION_ID/workspaces/WORKSPACE_ID/posts/6f1c2a3b-4d5e-4f60-8a71-92b3c4d5e6f7/publish-now" \
  -H "Authorization: Bearer beplan_pat_…" \
  -H "Idempotency-Key: $(uuidgen)"
```

Answers 200:

```json
{
  "data": {
    "id": "6f1c2a3b-4d5e-4f60-8a71-92b3c4d5e6f7",
    "title": "Spring drop teaser",
    "caption": "Something new lands Thursday.",
    "hashtags": "#springdrop",
    "formatIds": [],
    "ignoreOpenFormatSlots": false,
    "status": "in_process",
    "scheduledAt": "2026-11-20T09:00:00.000Z",
    "media": [
      {
        "mediaId": "c3d4e5f6-a7b8-4c9d-8e0f-1a2b3c4d5e6f",
        "altText": "The spring collection on a table",
        "item": {
          "id": "c3d4e5f6-a7b8-4c9d-8e0f-1a2b3c4d5e6f",
          "folderId": null,
          "filename": "spring-collection.jpg",
          "altText": "The spring collection on a table",
          "mediaType": "image",
          "mimeType": "image/jpeg",
          "size": 482133,
          "width": 1080,
          "height": 1350,
          "aspectRatio": 0.8,
          "duration": null,
          "waveform": null,
          "createdAt": "2026-11-18T09:30:00.000Z",
          "formats": [],
          "usage": "used",
          "processing": {
            "state": "ready",
            "error": null
          },
          "previewUrl": "https://storage.beplan.io/org-media/…/preview?X-Amz-Signature=…",
          "mediaUrl": "https://storage.beplan.io/org-media/…?X-Amz-Signature=…",
          "playback": null,
          "publishCopy": null
        },
        "crop": null
      }
    ],
    "platforms": [
      {
        "socialAccountId": "0b6f5c1e-2a7d-4c3b-9e8f-1a2b3c4d5e6f",
        "platform": "linkedin",
        "isActive": true,
        "type": "post",
        "customCaption": null,
        "additionalParams": {
          "linkedin_visibility": "PUBLIC"
        },
        "media": null,
        "thread": [],
        "publishedUrl": null,
        "publishedUrlKind": null,
        "publishState": "pending",
        "publishError": null
      }
    ],
    "updatedAt": "2026-11-20T09:00:00.000Z",
    "pendingApproval": null,
    "scheduledVia": {
      "kind": "personal_token",
      "name": "API token"
    }
  }
}
```


## Retry a failed post

`POST /organizations/{organizationId}/workspaces/{workspaceId}/posts/{postId}/retry-failed` · operationId `posts.retryFailed`

- Scope: `posts:publish`
- Role permission: Publish posts (`post:publish`)
- Effect (`external`): Leaves Beplan: publishes, sends a message or an email, or spends paid quota. Counts against the smaller budget of operations that leave Beplan.
- Idempotency: Send an `Idempotency-Key` to retry safely: the same key with the same body within 24 hours returns the stored response.
- Stability: Beta (May still change before it is marked stable.) Since 2026-11-19.

Publishes a `failed` post again right away, only on the accounts where it did not go out (accounts where it was published are left alone). Fix what failed first (`platforms[].publishError` of `GET …/posts/:postId`). The post answers as `in_process` until the platforms answer. No body.

When the organization requires a person's approval for integrations, nothing is published: `202` with the post unchanged (still `failed`) and `approval` (see `POST …/schedule`); once a person approves, only the failed accounts are published again.

**Parameters**

| Name | In | Type | Required | Description |
|---|---|---|---|---|
| `organizationId` | path | string | yes | 1–128 characters |
| `workspaceId` | path | string (uuid) | yes |  |
| `postId` | path | string (uuid) | yes |  |

**200 OK**

- `data` (object, required, CalendarPost)
  - `id` (string, required)
  - `title` (string, required)
  - `caption` (string, required, nullable)
  - `status` (string, required): `ready` (finished, not scheduled), `scheduled` (waits for `scheduledAt`), `in_process` (being published), `posted` (published), `failed` (failed on at least one account: see `platforms[].state`). one of `ready`, `scheduled`, `in_process`, `posted`, `failed` (may gain values).
  - `scheduledAt` (string (date-time), required, nullable)
  - `order` (number, required): Position in the ready queue: Quick Fill takes ready posts in this order.
  - `formats` (array of object, required)
    - `id` (string, required)
    - `name` (string, required)
    - `color` (string, required)
  - `platforms` (array of object, required)
    - `platform` (string, required)
    - `state` (string, required): one of `pending`, `published`, `failed`.
    - `url` (string, required, nullable)
    - `error` (string, required, nullable)
    - `views` (number, optional, nullable)
  - `media` (array of object, required)
    - `type` (string, required): one of `image`, `video`, `gif`.
    - `thumbnailUrl` (string, required, nullable)
  - `mediaCount` (number, required)
  - `linkWindow` (object, optional, PostLinkWindow)
    - `after` (object, required, nullable, LinkedPostRef)
      - `id` (string, required)
      - `title` (string, required)
      - `scheduledAt` (string (date-time), required, nullable)
    - `before` (object, required, nullable, LinkedPostRef)
      - `id` (string, required)
      - `title` (string, required)
      - `scheduledAt` (string (date-time), required, nullable)
  - `pendingApproval` (object, optional, nullable, PostCardPendingApproval): The approval request the post waits on (an integration asked to schedule or publish it); `null` when none is pending.
    - `id` (string (uuid), required)
    - `action` (string, required): `schedule` (at `scheduledAt`) or `publish_now`. one of `schedule`, `publish_now`.
    - `scheduledAt` (string (date-time), required, nullable): The time asked for (`schedule`); `null` for `publish_now`.
  - `scheduledVia` (object, optional, nullable, PostVia): The integration that last scheduled the post (an app's or assistant's name; a personal token's own name only for its own member, "API token" for anyone else); `null` when a person did it, or never.
    - `kind` (string, required, PublicConnectionKind): one of `personal_token`, `app`, `mcp`.
    - `name` (string, required)

**202 Accepted**

- `data` (object, required)
  - `id` (string, required)
  - `title` (string, required)
  - `caption` (string, required, nullable)
  - `status` (string, required): Where the held post stands: unchanged by the request, so a draft stays `idea`, `in_progress` or `in_review` and a finished post `ready`; a post that was `scheduled` left the schedule and is `ready`. It is scheduled (or published) only once a person approves the request. one of `idea`, `in_progress`, `in_review`, `ready`, `scheduled`, `in_process`, `posted`, `failed` (may gain values).
  - `scheduledAt` (string (date-time), required, nullable)
  - `order` (number, required): Position in the ready queue: Quick Fill takes ready posts in this order.
  - `formats` (array of object, required)
    - `id` (string, required)
    - `name` (string, required)
    - `color` (string, required)
  - `platforms` (array of object, required)
    - `platform` (string, required)
    - `state` (string, required): one of `pending`, `published`, `failed`.
    - `url` (string, required, nullable)
    - `error` (string, required, nullable)
    - `views` (number, optional, nullable)
  - `media` (array of object, required)
    - `type` (string, required): one of `image`, `video`, `gif`.
    - `thumbnailUrl` (string, required, nullable)
  - `mediaCount` (number, required)
  - `linkWindow` (object, optional, PostLinkWindow)
    - `after` (object, required, nullable, LinkedPostRef)
      - `id` (string, required)
      - `title` (string, required)
      - `scheduledAt` (string (date-time), required, nullable)
    - `before` (object, required, nullable, LinkedPostRef)
      - `id` (string, required)
      - `title` (string, required)
      - `scheduledAt` (string (date-time), required, nullable)
  - `pendingApproval` (object, optional, nullable, PostCardPendingApproval): The approval request the post waits on (an integration asked to schedule or publish it); `null` when none is pending.
    - `id` (string (uuid), required)
    - `action` (string, required): `schedule` (at `scheduledAt`) or `publish_now`. one of `schedule`, `publish_now`.
    - `scheduledAt` (string (date-time), required, nullable): The time asked for (`schedule`); `null` for `publish_now`.
  - `scheduledVia` (object, optional, nullable, PostVia): The integration that last scheduled the post (an app's or assistant's name; a personal token's own name only for its own member, "API token" for anyone else); `null` when a person did it, or never.
    - `kind` (string, required, PublicConnectionKind): one of `personal_token`, `app`, `mcp`.
    - `name` (string, required)
  - `approval` (object, required, PostApprovalSummary)
    - `id` (string (uuid), required)
    - `status` (string, required): one of `pending`, `approved`, `rejected`, `cancelled`, `expired`.
    - `url` (string, required): The post's page in the Beplan web app, where a signed-in member approves or rejects the request. A page for people, not an API URL.

**Errors**

| Status | Code | Message |
|---|---|---|
| 403 | `MISSING_PERMISSION` | You don't have permission to do this. |
| 404 | `ORGANIZATION_NOT_FOUND` | This organization doesn't exist or you're not a member of it. |
| 404 | `POST_NOT_FOUND` | This post doesn't exist or was deleted. |
| 404 | `WORKSPACE_NOT_FOUND` | This workspace doesn't exist or you don't have access to it. |
| 409 | `SOCIAL_ACCOUNT_RECONNECT_REQUIRED` | This account is disconnected. Reconnect it, then try again. |
| 422 | `POST_ALREADY_PUBLISHED` | This post is already published or being published. |
| 422 | `POST_MEDIA_FAILED` | One of this post's media failed to upload or process. Replace it, then try again. |
| 422 | `POST_MEDIA_PROCESSING` | This post's media are still processing. Post it once they're ready, or schedule it for later. |
| 422 | `POST_NOT_FAILED` | This post has nothing left to publish again. |
| 422 | `SOCIAL_ACCOUNT_SETUP_REQUIRED` | Finish setting up this account: pick the page or channel it posts as, then try again. |
| 422 | `TIKTOK_BUSINESS_VIDEO_PRIVACY_LEVEL` | TikTok Business accounts can only post videos publicly (to all followers for a private account). Change who can see this TikTok video, then schedule it again. |
| 422 | `TIKTOK_PRIVACY_LEVEL_REQUIRED` | Choose who can view this post on TikTok before scheduling it. |

Also, like every operation: `VALIDATION_FAILED` (400), `APP_SUSPENDED` (401), `TOKEN_EXPIRED` (401), `TOKEN_REVOKED` (401), `UNAUTHENTICATED` (401), `INSUFFICIENT_SCOPE` (403), `INTEGRATION_BLOCKED_BY_ORGANIZATION` (403), `INTEGRATION_PENDING_APPROVAL` (403), `CONFLICT` (409), `IDEMPOTENCY_KEY_REUSED` (409), `PAYLOAD_TOO_LARGE` (413), `UNSUPPORTED_MEDIA_TYPE` (415), `RATE_LIMITED` (429), `INTERNAL_ERROR` (500).

**Example: Retry where it failed**

```bash
curl -X POST "https://api.beplan.io/v1/organizations/ORGANIZATION_ID/workspaces/WORKSPACE_ID/posts/6f1c2a3b-4d5e-4f60-8a71-92b3c4d5e6f7/retry-failed" \
  -H "Authorization: Bearer beplan_pat_…" \
  -H "Idempotency-Key: $(uuidgen)"
```

Answers 200:

```json
{
  "data": {
    "id": "6f1c2a3b-4d5e-4f60-8a71-92b3c4d5e6f7",
    "title": "Spring drop teaser",
    "caption": "Something new lands Thursday.",
    "status": "in_process",
    "scheduledAt": "2026-12-03T14:00:00.000Z",
    "order": 0,
    "formats": [],
    "platforms": [
      {
        "platform": "linkedin",
        "state": "pending",
        "url": null,
        "error": null
      }
    ],
    "media": [],
    "mediaCount": 0
  }
}
```


## Schedule a post

`POST /organizations/{organizationId}/workspaces/{workspaceId}/posts/{postId}/schedule` · operationId `posts.schedule`

- Scope: `posts:publish`
- Role permission: Schedule posts (`post:schedule`)
- Effect (`external`): Leaves Beplan: publishes, sends a message or an email, or spends paid quota. Counts against the smaller budget of operations that leave Beplan.
- Idempotency: Send an `Idempotency-Key` to retry safely: the same key with the same body within 24 hours returns the stored response.
- Stability: Beta (May still change before it is marked stable.) Since 2026-11-19.

Schedules (or reschedules) a post to publish on every active account at `scheduledAt` (ISO 8601, in the future). Every check runs now (accounts connected and set up, media processed in time, TikTok privacy level, link rules, the plan's monthly scheduled posts), so a post that could not go out fails here with a precise error. A post already published on some accounts (partly failed) is scheduled only on the others.

Answers `200` with the post, now `scheduled`. When the organization requires a person's approval for posts integrations schedule, the post is **not** scheduled: the answer is `202` with the post unchanged and `approval` (`id`, `status: "pending"`, `url` of the post in Beplan, where a member approves or rejects it). Follow it with `GET …/posts/:postId/approval`; withdraw it with `DELETE …/posts/:postId/approval`. Omit `method` (Beplan's app analytics only).

**Parameters**

| Name | In | Type | Required | Description |
|---|---|---|---|---|
| `organizationId` | path | string | yes | 1–128 characters |
| `workspaceId` | path | string (uuid) | yes |  |
| `postId` | path | string (uuid) | yes |  |

**Request body** (JSON, required)

- `scheduledAt` (string (date-time), required): When to publish, ISO 8601 UTC; must be in the future.
- `method` (string, optional): Beplan's own app only (product analytics). Integrations omit it. one of `calendar_drag`, `calendar_slot`, `quick_fill`, `editor`.

**200 OK**

- `data` (object, required, CalendarPost)
  - `id` (string, required)
  - `title` (string, required)
  - `caption` (string, required, nullable)
  - `status` (string, required): `ready` (finished, not scheduled), `scheduled` (waits for `scheduledAt`), `in_process` (being published), `posted` (published), `failed` (failed on at least one account: see `platforms[].state`). one of `ready`, `scheduled`, `in_process`, `posted`, `failed` (may gain values).
  - `scheduledAt` (string (date-time), required, nullable)
  - `order` (number, required): Position in the ready queue: Quick Fill takes ready posts in this order.
  - `formats` (array of object, required)
    - `id` (string, required)
    - `name` (string, required)
    - `color` (string, required)
  - `platforms` (array of object, required)
    - `platform` (string, required)
    - `state` (string, required): one of `pending`, `published`, `failed`.
    - `url` (string, required, nullable)
    - `error` (string, required, nullable)
    - `views` (number, optional, nullable)
  - `media` (array of object, required)
    - `type` (string, required): one of `image`, `video`, `gif`.
    - `thumbnailUrl` (string, required, nullable)
  - `mediaCount` (number, required)
  - `linkWindow` (object, optional, PostLinkWindow)
    - `after` (object, required, nullable, LinkedPostRef)
      - `id` (string, required)
      - `title` (string, required)
      - `scheduledAt` (string (date-time), required, nullable)
    - `before` (object, required, nullable, LinkedPostRef)
      - `id` (string, required)
      - `title` (string, required)
      - `scheduledAt` (string (date-time), required, nullable)
  - `pendingApproval` (object, optional, nullable, PostCardPendingApproval): The approval request the post waits on (an integration asked to schedule or publish it); `null` when none is pending.
    - `id` (string (uuid), required)
    - `action` (string, required): `schedule` (at `scheduledAt`) or `publish_now`. one of `schedule`, `publish_now`.
    - `scheduledAt` (string (date-time), required, nullable): The time asked for (`schedule`); `null` for `publish_now`.
  - `scheduledVia` (object, optional, nullable, PostVia): The integration that last scheduled the post (an app's or assistant's name; a personal token's own name only for its own member, "API token" for anyone else); `null` when a person did it, or never.
    - `kind` (string, required, PublicConnectionKind): one of `personal_token`, `app`, `mcp`.
    - `name` (string, required)

**202 Accepted**

- `data` (object, required)
  - `id` (string, required)
  - `title` (string, required)
  - `caption` (string, required, nullable)
  - `status` (string, required): Where the held post stands: unchanged by the request, so a draft stays `idea`, `in_progress` or `in_review` and a finished post `ready`; a post that was `scheduled` left the schedule and is `ready`. It is scheduled (or published) only once a person approves the request. one of `idea`, `in_progress`, `in_review`, `ready`, `scheduled`, `in_process`, `posted`, `failed` (may gain values).
  - `scheduledAt` (string (date-time), required, nullable)
  - `order` (number, required): Position in the ready queue: Quick Fill takes ready posts in this order.
  - `formats` (array of object, required)
    - `id` (string, required)
    - `name` (string, required)
    - `color` (string, required)
  - `platforms` (array of object, required)
    - `platform` (string, required)
    - `state` (string, required): one of `pending`, `published`, `failed`.
    - `url` (string, required, nullable)
    - `error` (string, required, nullable)
    - `views` (number, optional, nullable)
  - `media` (array of object, required)
    - `type` (string, required): one of `image`, `video`, `gif`.
    - `thumbnailUrl` (string, required, nullable)
  - `mediaCount` (number, required)
  - `linkWindow` (object, optional, PostLinkWindow)
    - `after` (object, required, nullable, LinkedPostRef)
      - `id` (string, required)
      - `title` (string, required)
      - `scheduledAt` (string (date-time), required, nullable)
    - `before` (object, required, nullable, LinkedPostRef)
      - `id` (string, required)
      - `title` (string, required)
      - `scheduledAt` (string (date-time), required, nullable)
  - `pendingApproval` (object, optional, nullable, PostCardPendingApproval): The approval request the post waits on (an integration asked to schedule or publish it); `null` when none is pending.
    - `id` (string (uuid), required)
    - `action` (string, required): `schedule` (at `scheduledAt`) or `publish_now`. one of `schedule`, `publish_now`.
    - `scheduledAt` (string (date-time), required, nullable): The time asked for (`schedule`); `null` for `publish_now`.
  - `scheduledVia` (object, optional, nullable, PostVia): The integration that last scheduled the post (an app's or assistant's name; a personal token's own name only for its own member, "API token" for anyone else); `null` when a person did it, or never.
    - `kind` (string, required, PublicConnectionKind): one of `personal_token`, `app`, `mcp`.
    - `name` (string, required)
  - `approval` (object, required, PostApprovalSummary)
    - `id` (string (uuid), required)
    - `status` (string, required): one of `pending`, `approved`, `rejected`, `cancelled`, `expired`.
    - `url` (string, required): The post's page in the Beplan web app, where a signed-in member approves or rejects the request. A page for people, not an API URL.

**Errors**

| Status | Code | Message |
|---|---|---|
| 400 | `VALIDATION_FAILED` | Some of the information sent is invalid. |
| 402 | `SCHEDULED_POST_LIMIT_REACHED` | Your plan's scheduled posts for this month are used up. Upgrade to schedule more. |
| 403 | `MISSING_PERMISSION` | You don't have permission to do this. |
| 404 | `ORGANIZATION_NOT_FOUND` | This organization doesn't exist or you're not a member of it. |
| 404 | `POST_NOT_FOUND` | This post doesn't exist or was deleted. |
| 404 | `WORKSPACE_NOT_FOUND` | This workspace doesn't exist or you don't have access to it. |
| 409 | `SOCIAL_ACCOUNT_RECONNECT_REQUIRED` | This account is disconnected. Reconnect it, then try again. |
| 422 | `AMBASSADOR_POST_NEEDS_BEPLAN_MENTION` | A Beplan promotional post must mention Beplan in its caption before it can be scheduled. |
| 422 | `DEAL_EMBARGO` | This post can't go out before the deal's embargo date. |
| 422 | `POST_ALREADY_PUBLISHED` | This post is already published or being published. |
| 422 | `POST_HAS_LINKED_POSTS` | Scheduled posts link to this one. Unschedule them first, or unschedule them together. |
| 422 | `POST_HAS_NO_PLATFORMS` | Select at least one account to publish this post to. |
| 422 | `POST_INVALID_FOR_PLATFORM` | This post doesn't meet a platform's requirements. Open it to fix it. |
| 422 | `POST_LINK_CYCLE` | These posts link to each other in a loop. Remove one of the links. |
| 422 | `POST_LINK_MUST_BE_AFTER` | This post links to a post that goes out at the same time or later. Schedule it after that post. |
| 422 | `POST_LINK_MUST_BE_BEFORE` | Another post links to this one, so this one has to go out first. |
| 422 | `POST_LINK_SELF` | An account's caption links to its own post. Give that account its own caption without the link. |
| 422 | `POST_LINK_TARGET_NOT_PUBLISHED` | This post links to a post that isn't published yet, so it can't go out now. |
| 422 | `POST_LINK_TARGET_NOT_SCHEDULED` | This post links to a post that isn't scheduled yet. Schedule that post first. |
| 422 | `POST_LINK_TARGET_UNAVAILABLE` | This post links to a post that no longer exists, or to an account it no longer goes to. |
| 422 | `POST_MEDIA_FAILED` | One of this post's media failed to upload or process. Replace it, then try again. |
| 422 | `POST_MEDIA_PROCESSING` | This post's media are still processing. Post it once they're ready, or schedule it for later. |
| 422 | `SCHEDULED_AT_IN_PAST` | Pick a time in the future. |
| 422 | `SOCIAL_ACCOUNT_SETUP_REQUIRED` | Finish setting up this account: pick the page or channel it posts as, then try again. |
| 422 | `TIKTOK_BUSINESS_VIDEO_PRIVACY_LEVEL` | TikTok Business accounts can only post videos publicly (to all followers for a private account). Change who can see this TikTok video, then schedule it again. |
| 422 | `TIKTOK_PRIVACY_LEVEL_REQUIRED` | Choose who can view this post on TikTok before scheduling it. |
| 422 | `TRACKED_LINK_UNAVAILABLE` | This post has a tracked link that isn't in this workspace anymore. Remove it and add it again with /link. |
| 422 | `X_LINKS_REQUIRE_PAID_PLAN` | Because of X pricing, links in X posts are only available on paid plans. |

Also, like every operation: `APP_SUSPENDED` (401), `TOKEN_EXPIRED` (401), `TOKEN_REVOKED` (401), `UNAUTHENTICATED` (401), `INSUFFICIENT_SCOPE` (403), `INTEGRATION_BLOCKED_BY_ORGANIZATION` (403), `INTEGRATION_PENDING_APPROVAL` (403), `CONFLICT` (409), `IDEMPOTENCY_KEY_REUSED` (409), `PAYLOAD_TOO_LARGE` (413), `UNSUPPORTED_MEDIA_TYPE` (415), `RATE_LIMITED` (429), `INTERNAL_ERROR` (500).

**Example: Thursday at 14:00 UTC**

```bash
curl -X POST "https://api.beplan.io/v1/organizations/ORGANIZATION_ID/workspaces/WORKSPACE_ID/posts/6f1c2a3b-4d5e-4f60-8a71-92b3c4d5e6f7/schedule" \
  -H "Authorization: Bearer beplan_pat_…" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{
  "scheduledAt": "2026-12-03T14:00:00.000Z"
}'
```

Answers 200:

```json
{
  "data": {
    "id": "6f1c2a3b-4d5e-4f60-8a71-92b3c4d5e6f7",
    "title": "Spring drop teaser",
    "caption": "Something new lands Thursday.",
    "status": "scheduled",
    "scheduledAt": "2026-12-03T14:00:00.000Z",
    "order": 0,
    "formats": [],
    "platforms": [
      {
        "platform": "linkedin",
        "state": "pending",
        "url": null,
        "error": null
      }
    ],
    "media": [],
    "mediaCount": 0
  }
}
```

**Example: The organization requires approval: the post waits for a person**

```bash
curl -X POST "https://api.beplan.io/v1/organizations/ORGANIZATION_ID/workspaces/WORKSPACE_ID/posts/6f1c2a3b-4d5e-4f60-8a71-92b3c4d5e6f7/schedule" \
  -H "Authorization: Bearer beplan_pat_…" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{
  "scheduledAt": "2026-12-03T14:00:00.000Z"
}'
```

Answers 202:

```json
{
  "data": {
    "id": "6f1c2a3b-4d5e-4f60-8a71-92b3c4d5e6f7",
    "title": "Spring drop teaser",
    "caption": "Something new lands Thursday.",
    "status": "ready",
    "scheduledAt": null,
    "order": 0,
    "formats": [],
    "platforms": [
      {
        "platform": "linkedin",
        "state": "pending",
        "url": null,
        "error": null
      }
    ],
    "media": [],
    "mediaCount": 0,
    "approval": {
      "id": "9a8b7c6d-5e4f-4a3b-8c2d-1e0f9a8b7c6d",
      "status": "pending",
      "url": "https://app.beplan.io/…"
    }
  }
}
```


## Schedule a post to its next free slot

`POST /organizations/{organizationId}/workspaces/{workspaceId}/posts/{postId}/schedule-next-slot` · operationId `posts.scheduleNextSlot`

- Scope: `posts:publish`
- Role permission: Schedule posts (`post:schedule`)
- Effect (`external`): Leaves Beplan: publishes, sends a message or an email, or spends paid quota. Counts against the smaller budget of operations that leave Beplan.
- Idempotency: Send an `Idempotency-Key` to retry safely: the same key with the same body within 24 hours returns the stored response.
- Stability: Beta (May still change before it is marked stable.) Since 2026-11-21.

Schedules (or reschedules) a post at the first free occurrence of the workspace's posting slots that fits its formats, Beplan's "Schedule to next slot": no post goes out within 30 minutes of it and no approval request holds it (the post's own current time stays free for it), and the slot's format rules accept the post (the rule of `GET …/calendar/open-slots`). It looks 52 weeks ahead from now, or from `after` when sent. The post is then scheduled exactly as by `POST …/posts/:postId/schedule` at that time: same checks, same errors, the plan's monthly scheduled posts. A slot the post can't take only because of its time (a deal's embargo with a date, media still processing) is passed over for the next fitting one. Two calls at once never pick the same slot. No fitting free slot: `422 NO_OPEN_SLOT_FITS_POST`.

Answers `200` with the post, now `scheduled` (`scheduledAt` is the slot picked). When the organization requires a person's approval for posts integrations schedule, the post is **not** scheduled: the answer is `202` with the post unchanged, `approval` (as for `POST …/posts/:postId/schedule`) and `slotAt`, the slot picked, which the request now holds.

**Parameters**

| Name | In | Type | Required | Description |
|---|---|---|---|---|
| `organizationId` | path | string | yes | 1–128 characters |
| `workspaceId` | path | string (uuid) | yes |  |
| `postId` | path | string (uuid) | yes |  |

**Request body** (JSON)

- `after` (string (date-time), optional): Look for the first free slot after this instant (ISO 8601 UTC) instead of after now.

**200 OK**

- `data` (object, required, CalendarPost)
  - `id` (string, required)
  - `title` (string, required)
  - `caption` (string, required, nullable)
  - `status` (string, required): `ready` (finished, not scheduled), `scheduled` (waits for `scheduledAt`), `in_process` (being published), `posted` (published), `failed` (failed on at least one account: see `platforms[].state`). one of `ready`, `scheduled`, `in_process`, `posted`, `failed` (may gain values).
  - `scheduledAt` (string (date-time), required, nullable)
  - `order` (number, required): Position in the ready queue: Quick Fill takes ready posts in this order.
  - `formats` (array of object, required)
    - `id` (string, required)
    - `name` (string, required)
    - `color` (string, required)
  - `platforms` (array of object, required)
    - `platform` (string, required)
    - `state` (string, required): one of `pending`, `published`, `failed`.
    - `url` (string, required, nullable)
    - `error` (string, required, nullable)
    - `views` (number, optional, nullable)
  - `media` (array of object, required)
    - `type` (string, required): one of `image`, `video`, `gif`.
    - `thumbnailUrl` (string, required, nullable)
  - `mediaCount` (number, required)
  - `linkWindow` (object, optional, PostLinkWindow)
    - `after` (object, required, nullable, LinkedPostRef)
      - `id` (string, required)
      - `title` (string, required)
      - `scheduledAt` (string (date-time), required, nullable)
    - `before` (object, required, nullable, LinkedPostRef)
      - `id` (string, required)
      - `title` (string, required)
      - `scheduledAt` (string (date-time), required, nullable)
  - `pendingApproval` (object, optional, nullable, PostCardPendingApproval): The approval request the post waits on (an integration asked to schedule or publish it); `null` when none is pending.
    - `id` (string (uuid), required)
    - `action` (string, required): `schedule` (at `scheduledAt`) or `publish_now`. one of `schedule`, `publish_now`.
    - `scheduledAt` (string (date-time), required, nullable): The time asked for (`schedule`); `null` for `publish_now`.
  - `scheduledVia` (object, optional, nullable, PostVia): The integration that last scheduled the post (an app's or assistant's name; a personal token's own name only for its own member, "API token" for anyone else); `null` when a person did it, or never.
    - `kind` (string, required, PublicConnectionKind): one of `personal_token`, `app`, `mcp`.
    - `name` (string, required)

**202 Accepted**

- `data` (object, required)
  - `id` (string, required)
  - `title` (string, required)
  - `caption` (string, required, nullable)
  - `status` (string, required): Where the held post stands: unchanged by the request, so a draft stays `idea`, `in_progress` or `in_review` and a finished post `ready`; a post that was `scheduled` left the schedule and is `ready`. It is scheduled (or published) only once a person approves the request. one of `idea`, `in_progress`, `in_review`, `ready`, `scheduled`, `in_process`, `posted`, `failed` (may gain values).
  - `scheduledAt` (string (date-time), required, nullable)
  - `order` (number, required): Position in the ready queue: Quick Fill takes ready posts in this order.
  - `formats` (array of object, required)
    - `id` (string, required)
    - `name` (string, required)
    - `color` (string, required)
  - `platforms` (array of object, required)
    - `platform` (string, required)
    - `state` (string, required): one of `pending`, `published`, `failed`.
    - `url` (string, required, nullable)
    - `error` (string, required, nullable)
    - `views` (number, optional, nullable)
  - `media` (array of object, required)
    - `type` (string, required): one of `image`, `video`, `gif`.
    - `thumbnailUrl` (string, required, nullable)
  - `mediaCount` (number, required)
  - `linkWindow` (object, optional, PostLinkWindow)
    - `after` (object, required, nullable, LinkedPostRef)
      - `id` (string, required)
      - `title` (string, required)
      - `scheduledAt` (string (date-time), required, nullable)
    - `before` (object, required, nullable, LinkedPostRef)
      - `id` (string, required)
      - `title` (string, required)
      - `scheduledAt` (string (date-time), required, nullable)
  - `pendingApproval` (object, optional, nullable, PostCardPendingApproval): The approval request the post waits on (an integration asked to schedule or publish it); `null` when none is pending.
    - `id` (string (uuid), required)
    - `action` (string, required): `schedule` (at `scheduledAt`) or `publish_now`. one of `schedule`, `publish_now`.
    - `scheduledAt` (string (date-time), required, nullable): The time asked for (`schedule`); `null` for `publish_now`.
  - `scheduledVia` (object, optional, nullable, PostVia): The integration that last scheduled the post (an app's or assistant's name; a personal token's own name only for its own member, "API token" for anyone else); `null` when a person did it, or never.
    - `kind` (string, required, PublicConnectionKind): one of `personal_token`, `app`, `mcp`.
    - `name` (string, required)
  - `approval` (object, required, PostApprovalSummary)
    - `id` (string (uuid), required)
    - `status` (string, required): one of `pending`, `approved`, `rejected`, `cancelled`, `expired`.
    - `url` (string, required): The post's page in the Beplan web app, where a signed-in member approves or rejects the request. A page for people, not an API URL.
  - `slotAt` (string (date-time), required): The posting-slot time picked (ISO 8601 UTC): the post is scheduled there once a person approves.

**Errors**

| Status | Code | Message |
|---|---|---|
| 400 | `VALIDATION_FAILED` | Some of the information sent is invalid. |
| 402 | `SCHEDULED_POST_LIMIT_REACHED` | Your plan's scheduled posts for this month are used up. Upgrade to schedule more. |
| 403 | `MISSING_PERMISSION` | You don't have permission to do this. |
| 404 | `ORGANIZATION_NOT_FOUND` | This organization doesn't exist or you're not a member of it. |
| 404 | `POST_NOT_FOUND` | This post doesn't exist or was deleted. |
| 404 | `WORKSPACE_NOT_FOUND` | This workspace doesn't exist or you don't have access to it. |
| 409 | `CONFLICT` | This changed in the meantime. Refresh and try again. |
| 409 | `SOCIAL_ACCOUNT_RECONNECT_REQUIRED` | This account is disconnected. Reconnect it, then try again. |
| 422 | `AMBASSADOR_POST_NEEDS_BEPLAN_MENTION` | A Beplan promotional post must mention Beplan in its caption before it can be scheduled. |
| 422 | `DEAL_EMBARGO` | This post can't go out before the deal's embargo date. |
| 422 | `NO_OPEN_SLOT_FITS_POST` | No free posting slot fits this post's formats in the coming weeks. |
| 422 | `POST_ALREADY_PUBLISHED` | This post is already published or being published. |
| 422 | `POST_HAS_LINKED_POSTS` | Scheduled posts link to this one. Unschedule them first, or unschedule them together. |
| 422 | `POST_HAS_NO_PLATFORMS` | Select at least one account to publish this post to. |
| 422 | `POST_INVALID_FOR_PLATFORM` | This post doesn't meet a platform's requirements. Open it to fix it. |
| 422 | `POST_LINK_CYCLE` | These posts link to each other in a loop. Remove one of the links. |
| 422 | `POST_LINK_MUST_BE_AFTER` | This post links to a post that goes out at the same time or later. Schedule it after that post. |
| 422 | `POST_LINK_MUST_BE_BEFORE` | Another post links to this one, so this one has to go out first. |
| 422 | `POST_LINK_SELF` | An account's caption links to its own post. Give that account its own caption without the link. |
| 422 | `POST_LINK_TARGET_NOT_PUBLISHED` | This post links to a post that isn't published yet, so it can't go out now. |
| 422 | `POST_LINK_TARGET_NOT_SCHEDULED` | This post links to a post that isn't scheduled yet. Schedule that post first. |
| 422 | `POST_LINK_TARGET_UNAVAILABLE` | This post links to a post that no longer exists, or to an account it no longer goes to. |
| 422 | `POST_MEDIA_FAILED` | One of this post's media failed to upload or process. Replace it, then try again. |
| 422 | `POST_MEDIA_PROCESSING` | This post's media are still processing. Post it once they're ready, or schedule it for later. |
| 422 | `SOCIAL_ACCOUNT_SETUP_REQUIRED` | Finish setting up this account: pick the page or channel it posts as, then try again. |
| 422 | `TIKTOK_BUSINESS_VIDEO_PRIVACY_LEVEL` | TikTok Business accounts can only post videos publicly (to all followers for a private account). Change who can see this TikTok video, then schedule it again. |
| 422 | `TIKTOK_PRIVACY_LEVEL_REQUIRED` | Choose who can view this post on TikTok before scheduling it. |
| 422 | `TRACKED_LINK_UNAVAILABLE` | This post has a tracked link that isn't in this workspace anymore. Remove it and add it again with /link. |
| 422 | `X_LINKS_REQUIRE_PAID_PLAN` | Because of X pricing, links in X posts are only available on paid plans. |

Also, like every operation: `APP_SUSPENDED` (401), `TOKEN_EXPIRED` (401), `TOKEN_REVOKED` (401), `UNAUTHENTICATED` (401), `INSUFFICIENT_SCOPE` (403), `INTEGRATION_BLOCKED_BY_ORGANIZATION` (403), `INTEGRATION_PENDING_APPROVAL` (403), `IDEMPOTENCY_KEY_REUSED` (409), `PAYLOAD_TOO_LARGE` (413), `UNSUPPORTED_MEDIA_TYPE` (415), `RATE_LIMITED` (429), `INTERNAL_ERROR` (500).

**Example: The next free slot**

```bash
curl -X POST "https://api.beplan.io/v1/organizations/ORGANIZATION_ID/workspaces/WORKSPACE_ID/posts/6f1c2a3b-4d5e-4f60-8a71-92b3c4d5e6f7/schedule-next-slot" \
  -H "Authorization: Bearer beplan_pat_…" \
  -H "Idempotency-Key: $(uuidgen)"
```

Answers 200:

```json
{
  "data": {
    "id": "6f1c2a3b-4d5e-4f60-8a71-92b3c4d5e6f7",
    "title": "Spring drop teaser",
    "caption": "Something new lands Thursday.",
    "status": "scheduled",
    "scheduledAt": "2026-12-03T14:00:00.000Z",
    "order": 0,
    "formats": [],
    "platforms": [
      {
        "platform": "linkedin",
        "state": "pending",
        "url": null,
        "error": null
      }
    ],
    "media": [],
    "mediaCount": 0
  }
}
```

**Example: The first free slot after the 1st of December**

```bash
curl -X POST "https://api.beplan.io/v1/organizations/ORGANIZATION_ID/workspaces/WORKSPACE_ID/posts/6f1c2a3b-4d5e-4f60-8a71-92b3c4d5e6f7/schedule-next-slot" \
  -H "Authorization: Bearer beplan_pat_…" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{
  "after": "2026-12-01T00:00:00.000Z"
}'
```

Answers 200:

```json
{
  "data": {
    "id": "6f1c2a3b-4d5e-4f60-8a71-92b3c4d5e6f7",
    "title": "Spring drop teaser",
    "caption": "Something new lands Thursday.",
    "status": "scheduled",
    "scheduledAt": "2026-12-03T14:00:00.000Z",
    "order": 0,
    "formats": [],
    "platforms": [
      {
        "platform": "linkedin",
        "state": "pending",
        "url": null,
        "error": null
      }
    ],
    "media": [],
    "mediaCount": 0
  }
}
```

**Example: The organization requires approval: the post waits for a person**

```bash
curl -X POST "https://api.beplan.io/v1/organizations/ORGANIZATION_ID/workspaces/WORKSPACE_ID/posts/6f1c2a3b-4d5e-4f60-8a71-92b3c4d5e6f7/schedule-next-slot" \
  -H "Authorization: Bearer beplan_pat_…" \
  -H "Idempotency-Key: $(uuidgen)"
```

Answers 202:

```json
{
  "data": {
    "id": "6f1c2a3b-4d5e-4f60-8a71-92b3c4d5e6f7",
    "title": "Spring drop teaser",
    "caption": "Something new lands Thursday.",
    "status": "ready",
    "scheduledAt": null,
    "order": 0,
    "formats": [],
    "platforms": [
      {
        "platform": "linkedin",
        "state": "pending",
        "url": null,
        "error": null
      }
    ],
    "media": [],
    "mediaCount": 0,
    "approval": {
      "id": "9a8b7c6d-5e4f-4a3b-8c2d-1e0f9a8b7c6d",
      "status": "pending",
      "url": "https://app.beplan.io/…"
    },
    "slotAt": "2026-12-03T14:00:00.000Z"
  }
}
```


## Unschedule a post

`POST /organizations/{organizationId}/workspaces/{workspaceId}/posts/{postId}/unschedule` · operationId `posts.unschedule`

- Scope: `posts:publish`
- Role permission: Unschedule posts (`post:unschedule`)
- Effect (`write`): Changes data in Beplan.
- Idempotency: Send an `Idempotency-Key` to retry safely: the same key with the same body within 24 hours returns the stored response.
- Stability: Beta (May still change before it is marked stable.) Since 2026-11-19.

Takes a scheduled (or failed) post off the schedule: its publication is cancelled and it goes back to the ready queue. When scheduled posts link to it, it is refused (`422 POST_HAS_LINKED_POSTS`) unless `withLinkedPosts: true`, which unschedules them too. The body is optional.

**Parameters**

| Name | In | Type | Required | Description |
|---|---|---|---|---|
| `organizationId` | path | string | yes | 1–128 characters |
| `workspaceId` | path | string (uuid) | yes |  |
| `postId` | path | string (uuid) | yes |  |

**Request body** (JSON)

- `withLinkedPosts` (boolean, optional): `true`: the scheduled posts that link to this one are unscheduled with it.

**200 OK**

- `data` (object, required, CalendarPost)
  - `id` (string, required)
  - `title` (string, required)
  - `caption` (string, required, nullable)
  - `status` (string, required): `ready` (finished, not scheduled), `scheduled` (waits for `scheduledAt`), `in_process` (being published), `posted` (published), `failed` (failed on at least one account: see `platforms[].state`). one of `ready`, `scheduled`, `in_process`, `posted`, `failed` (may gain values).
  - `scheduledAt` (string (date-time), required, nullable)
  - `order` (number, required): Position in the ready queue: Quick Fill takes ready posts in this order.
  - `formats` (array of object, required)
    - `id` (string, required)
    - `name` (string, required)
    - `color` (string, required)
  - `platforms` (array of object, required)
    - `platform` (string, required)
    - `state` (string, required): one of `pending`, `published`, `failed`.
    - `url` (string, required, nullable)
    - `error` (string, required, nullable)
    - `views` (number, optional, nullable)
  - `media` (array of object, required)
    - `type` (string, required): one of `image`, `video`, `gif`.
    - `thumbnailUrl` (string, required, nullable)
  - `mediaCount` (number, required)
  - `linkWindow` (object, optional, PostLinkWindow)
    - `after` (object, required, nullable, LinkedPostRef)
      - `id` (string, required)
      - `title` (string, required)
      - `scheduledAt` (string (date-time), required, nullable)
    - `before` (object, required, nullable, LinkedPostRef)
      - `id` (string, required)
      - `title` (string, required)
      - `scheduledAt` (string (date-time), required, nullable)
  - `pendingApproval` (object, optional, nullable, PostCardPendingApproval): The approval request the post waits on (an integration asked to schedule or publish it); `null` when none is pending.
    - `id` (string (uuid), required)
    - `action` (string, required): `schedule` (at `scheduledAt`) or `publish_now`. one of `schedule`, `publish_now`.
    - `scheduledAt` (string (date-time), required, nullable): The time asked for (`schedule`); `null` for `publish_now`.
  - `scheduledVia` (object, optional, nullable, PostVia): The integration that last scheduled the post (an app's or assistant's name; a personal token's own name only for its own member, "API token" for anyone else); `null` when a person did it, or never.
    - `kind` (string, required, PublicConnectionKind): one of `personal_token`, `app`, `mcp`.
    - `name` (string, required)

**Errors**

| Status | Code | Message |
|---|---|---|
| 400 | `VALIDATION_FAILED` | Some of the information sent is invalid. |
| 403 | `MISSING_PERMISSION` | You don't have permission to do this. |
| 404 | `ORGANIZATION_NOT_FOUND` | This organization doesn't exist or you're not a member of it. |
| 404 | `POST_NOT_FOUND` | This post doesn't exist or was deleted. |
| 404 | `WORKSPACE_NOT_FOUND` | This workspace doesn't exist or you don't have access to it. |
| 422 | `POST_HAS_LINKED_POSTS` | Scheduled posts link to this one. Unschedule them first, or unschedule them together. |
| 422 | `POST_NOT_SCHEDULED` | This post isn't scheduled. |

Also, like every operation: `APP_SUSPENDED` (401), `TOKEN_EXPIRED` (401), `TOKEN_REVOKED` (401), `UNAUTHENTICATED` (401), `INSUFFICIENT_SCOPE` (403), `INTEGRATION_BLOCKED_BY_ORGANIZATION` (403), `INTEGRATION_PENDING_APPROVAL` (403), `CONFLICT` (409), `IDEMPOTENCY_KEY_REUSED` (409), `PAYLOAD_TOO_LARGE` (413), `UNSUPPORTED_MEDIA_TYPE` (415), `RATE_LIMITED` (429), `INTERNAL_ERROR` (500).

**Example: Back to the ready queue**

```bash
curl -X POST "https://api.beplan.io/v1/organizations/ORGANIZATION_ID/workspaces/WORKSPACE_ID/posts/6f1c2a3b-4d5e-4f60-8a71-92b3c4d5e6f7/unschedule" \
  -H "Authorization: Bearer beplan_pat_…" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{
  "withLinkedPosts": false
}'
```

Answers 200:

```json
{
  "data": {
    "id": "6f1c2a3b-4d5e-4f60-8a71-92b3c4d5e6f7",
    "title": "Spring drop teaser",
    "caption": "Something new lands Thursday.",
    "status": "ready",
    "scheduledAt": null,
    "order": 0,
    "formats": [],
    "platforms": [
      {
        "platform": "linkedin",
        "state": "pending",
        "url": null,
        "error": null
      }
    ],
    "media": [
      {
        "type": "image",
        "thumbnailUrl": "https://storage.beplan.io/org-media/…/preview?X-Amz-Signature=…"
      }
    ],
    "mediaCount": 1
  }
}
```


---
HTML version: https://beplan.io/docs/api/posts/
