Start free
Docs · Posts

API reference

Posts

Read as Markdown

On this page
  1. Create a post
  2. List ready posts
  3. Get a post
  4. Edit a post
  5. Delete a post
  6. Duplicate a post
  7. Publish a post now
  8. Retry a failed post
  9. Schedule a post
  10. Schedule a post to its next free slot
  11. Unschedule a post

Base URL https://api.beplan.io/v1. Authentication, envelopes, pagination, idempotency and rate limits: conventions. OpenAPI document: openapi.json.

All 21 Posts operations

Create a post

POST /organizations/{organizationId}/workspaces/{workspaceId}/posts
Beta Changes data posts.create
Scope
posts:write
Role permission
Create posts (post:create)
Effect
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 Description
organizationId required path string 1–128 characters
workspaceId required path string (uuid)

Request body JSON, required

object · SavePostBody

  • baseUpdatedAtstring (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.
  • liveEpochintegeroptional
    Beplan's own editor only (live co-editing). Integrations omit it.
    at least 0
  • titlestringoptional
    at most 255 characters
  • captionstringoptional
    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
  • hashtagsstringoptional
    at most 5000 characters
  • formatIdsarray of string (uuid)optional
    The post's formats (the workspace's content types), in order; replaces the list.
    at most 50 items
  • ignoreOpenFormatSlotsbooleanoptional
  • mediaarray of objectoptional
    The post's media, in publishing order; replaces the list. Each must be in the workspace's media library.
    at most 35 items
    3fields in each item
    • mediaIdstring (uuid)required
    • altTextstringoptionalnullable
      at most 1500 characters
    • cropobject · MediaCropoptionalnullable
      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.
      7fields
      • versionnumberrequired
        Always 1
      • unitstringrequired
        Always percent
      • xnumberrequired
        from 0 to 1
      • ynumberrequired
        from 0 to 1
      • widthnumberrequired
        above 0 to 1
      • heightnumberrequired
        above 0 to 1
      • aspectRationumberoptional
        greater than 0
  • platformsarray of objectoptional
    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
    7fields in each item
    • socialAccountIdstring (uuid)required
      A connected account of the workspace (GET …/social-accounts).
    • isActivebooleanrequired
    • typestringoptional
      One of: post, story
    • customCaptionstringoptionalnullable
      at most 63206 characters
    • additionalParamsmap of anyoptional
      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.
    • mediaarray of objectoptionalnullable
      at most 35 items
      3fields in each item
      • mediaIdstring (uuid)required
      • altTextstringoptionalnullable
        at most 1500 characters
      • cropobject · MediaCropoptionalnullable
        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.
        7fields
        • versionnumberrequired
          Always 1
        • unitstringrequired
          Always percent
        • xnumberrequired
          from 0 to 1
        • ynumberrequired
          from 0 to 1
        • widthnumberrequired
          above 0 to 1
        • heightnumberrequired
          above 0 to 1
        • aspectRationumberoptional
          greater than 0
    • threadarray of objectoptional
      at most 24 items
      3fields in each item
      • idstring (uuid)optional
      • captionstringrequired
        at most 63206 characters
      • mediaarray of objectrequired
        at most 35 items
        3fields in each item
        • mediaIdstring (uuid)required
        • altTextstringoptionalnullable
          at most 1500 characters
        • cropobject · MediaCropoptionalnullable
          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.
          7fields
          • versionnumberrequired
            Always 1
          • unitstringrequired
            Always percent
          • xnumberrequired
            from 0 to 1
          • ynumberrequired
            from 0 to 1
          • widthnumberrequired
            above 0 to 1
          • heightnumberrequired
            above 0 to 1
          • aspectRationumberoptional
            greater than 0

Responses

201 Created

object · EditorPostResponse

  • dataobject · EditorPostrequired
    14fields
    • idstringrequired
    • titlestringrequired
    • captionstringrequired
    • hashtagsstringrequired
    • formatIdsarray of stringrequired
    • ignoreOpenFormatSlotsbooleanrequired
    • statusstringrequired
      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
    • scheduledAtstring (date-time)requirednullable
      When it goes out (or went out), ISO 8601 UTC.
    • mediaarray of objectrequired
      4fields in each item
      • mediaIdstringrequired
      • altTextstringrequirednullable
      • itemobject · MediaItemrequired
        21fields
        • idstringrequired
        • folderIdstringrequirednullable
          The folder holding the media; null at the root of the library.
        • filenamestringrequired
        • altTextstringrequirednullable
        • mediaTypestringrequired
          One of: image, video, gif, audio
        • mimeTypestringrequirednullable
        • sizenumberrequirednullable
          File size in bytes, when known.
        • widthnumberrequirednullable
          Width in pixels, when known (images at upload, videos once processed); null for audio.
        • heightnumberrequirednullable
          Height in pixels, when known (images at upload, videos once processed); null for audio.
        • aspectRationumberrequired
          Display ratio (width / height) from the dimensions, clamped to [0.45, 2.4]; 1 when unknown and for audio.
        • durationnumberrequirednullable
          Length in seconds, for videos, GIFs and audio once known (null for images).
        • waveformarray of numberrequirednullable
          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.
        • createdAtstring (date-time)required
        • formatsarray of objectrequired
          3fields in each item
          • idstringrequired
          • namestringrequired
          • colorstringrequired
        • usagestringrequired
          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
        • processingobjectrequired
          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.
          2fields
          • statestringrequired
            One of: processing, ready, failed
          • errorstringrequirednullable
        • previewUrlstringrequirednullable
          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.
        • mediaUrlstringrequired
          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.
        • playbackobjectrequirednullable
          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.
          1field
          • manifestUrlstringrequired
        • publishCopyobjectrequirednullable
          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.
          4fields
          • mimeTypestringrequired
          • widthnumberrequired
          • heightnumberrequired
          • sizenumberrequired
        • transcriptMatchobject · MediaTranscriptMatchoptional
          3fields
          • snippetstringrequired
          • startMsnumberrequired
          • sourcestringoptional
            One of: speech, scene
      • cropobject · MediaCropoptionalnullable
        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.
        7fields
        • versionnumberrequired
          Always 1
        • unitstringrequired
          Always percent
        • xnumberrequired
          from 0 to 1
        • ynumberrequired
          from 0 to 1
        • widthnumberrequired
          above 0 to 1
        • heightnumberrequired
          above 0 to 1
        • aspectRationumberoptional
          greater than 0
    • platformsarray of objectrequired
      12fields in each item
      • socialAccountIdstringrequired
      • platformstring · SocialPlatformrequired
        One of (may gain values): x, instagram, facebook, tiktok, linkedin, threads, pinterest, youtube, discord, bluesky
      • isActivebooleanrequired
      • typestringrequired
        One of: post, story
      • customCaptionstringrequirednullable
      • additionalParamsmap of anyrequired
        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.
      • mediaarray of objectrequirednullable
        4fields in each item
        • mediaIdstringrequired
        • altTextstringrequirednullable
        • itemobject · MediaItemrequired
          21fields
          • idstringrequired
          • folderIdstringrequirednullable
            The folder holding the media; null at the root of the library.
          • filenamestringrequired
          • altTextstringrequirednullable
          • mediaTypestringrequired
            One of: image, video, gif, audio
          • mimeTypestringrequirednullable
          • sizenumberrequirednullable
            File size in bytes, when known.
          • widthnumberrequirednullable
            Width in pixels, when known (images at upload, videos once processed); null for audio.
          • heightnumberrequirednullable
            Height in pixels, when known (images at upload, videos once processed); null for audio.
          • aspectRationumberrequired
            Display ratio (width / height) from the dimensions, clamped to [0.45, 2.4]; 1 when unknown and for audio.
          • durationnumberrequirednullable
            Length in seconds, for videos, GIFs and audio once known (null for images).
          • waveformarray of numberrequirednullable
            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.
          • createdAtstring (date-time)required
          • formatsarray of objectrequired
            3fields in each item
            • idstringrequired
            • namestringrequired
            • colorstringrequired
          • usagestringrequired
            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
          • processingobjectrequired
            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.
            2fields
            • statestringrequired
              One of: processing, ready, failed
            • errorstringrequirednullable
          • previewUrlstringrequirednullable
            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.
          • mediaUrlstringrequired
            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.
          • playbackobjectrequirednullable
            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.
            1field
            • manifestUrlstringrequired
          • publishCopyobjectrequirednullable
            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.
            4fields
            • mimeTypestringrequired
            • widthnumberrequired
            • heightnumberrequired
            • sizenumberrequired
          • transcriptMatchobject · MediaTranscriptMatchoptional
            3fields
            • snippetstringrequired
            • startMsnumberrequired
            • sourcestringoptional
              One of: speech, scene
        • cropobject · MediaCropoptionalnullable
          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.
          7fields
          • versionnumberrequired
            Always 1
          • unitstringrequired
            Always percent
          • xnumberrequired
            from 0 to 1
          • ynumberrequired
            from 0 to 1
          • widthnumberrequired
            above 0 to 1
          • heightnumberrequired
            above 0 to 1
          • aspectRationumberoptional
            greater than 0
      • threadarray of objectrequired
        3fields in each item
        • idstringoptional
        • captionstringrequired
        • mediaarray of objectrequired
          4fields in each item
          • mediaIdstringrequired
          • altTextstringrequirednullable
          • itemobject · MediaItemrequired
            21fields
            • idstringrequired
            • folderIdstringrequirednullable
              The folder holding the media; null at the root of the library.
            • filenamestringrequired
            • altTextstringrequirednullable
            • mediaTypestringrequired
              One of: image, video, gif, audio
            • mimeTypestringrequirednullable
            • sizenumberrequirednullable
              File size in bytes, when known.
            • widthnumberrequirednullable
              Width in pixels, when known (images at upload, videos once processed); null for audio.
            • heightnumberrequirednullable
              Height in pixels, when known (images at upload, videos once processed); null for audio.
            • aspectRationumberrequired
              Display ratio (width / height) from the dimensions, clamped to [0.45, 2.4]; 1 when unknown and for audio.
            • durationnumberrequirednullable
              Length in seconds, for videos, GIFs and audio once known (null for images).
            • waveformarray of numberrequirednullable
              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.
            • createdAtstring (date-time)required
            • formatsarray of objectrequired
              3fields in each item
              • idstringrequired
              • namestringrequired
              • colorstringrequired
            • usagestringrequired
              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
            • processingobjectrequired
              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.
              2fields
              • statestringrequired
                One of: processing, ready, failed
              • errorstringrequirednullable
            • previewUrlstringrequirednullable
              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.
            • mediaUrlstringrequired
              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.
            • playbackobjectrequirednullable
              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.
              1field
              • manifestUrlstringrequired
            • publishCopyobjectrequirednullable
              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.
              4fields
              • mimeTypestringrequired
              • widthnumberrequired
              • heightnumberrequired
              • sizenumberrequired
            • transcriptMatchobject · MediaTranscriptMatchoptional
              3fields
              • snippetstringrequired
              • startMsnumberrequired
              • sourcestringoptional
                One of: speech, scene
          • cropobject · MediaCropoptionalnullable
            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.
            7fields
            • versionnumberrequired
              Always 1
            • unitstringrequired
              Always percent
            • xnumberrequired
              from 0 to 1
            • ynumberrequired
              from 0 to 1
            • widthnumberrequired
              above 0 to 1
            • heightnumberrequired
              above 0 to 1
            • aspectRationumberoptional
              greater than 0
      • publishedUrlstringoptionalnullable
      • publishedUrlKindstringoptionalnullable
        One of: post, studio
      • publishStatestringoptional
        One of: pending, published, failed
      • publishErrorstringoptionalnullable
    • updatedAtstring (date-time)required
      Last change. Send it back as baseUpdatedAt when saving so you never overwrite a change you haven't read.
    • pendingApprovalobject · EditorPostPendingApprovaloptionalnullable
      5fields
      • idstring (uuid)required
      • actionstringrequired
        One of: schedule, publish_now
      • scheduledAtstring (date-time)requirednullable
      • createdAtstring (date-time)required
      • urlstringrequired
    • scheduledViaobject · PostViaoptionalnullable
      2fields
      • kindstring · PublicConnectionKindrequired
        One of: personal_token, app, mcp
      • namestringrequired
    • beplanPromotionobject · EditorBeplanPromotionoptionalnullable
      4fields
      • userIdstringrequired
      • userNamestringrequired
      • disclosurestringrequired
      • mentionsBeplanbooleanrequired

Errors answer { error: { code, message, details, requestId } } with status 400, 401, 403, 404, 409, 413, 415, 429, 500.

Error codes

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.
13 more that every operation can answer (tokens, scopes, limits)
401 APP_SUSPENDED This app has been suspended by Beplan and can't access your account.
401 TOKEN_EXPIRED This token has expired. Create a new one or sign in again.
401 TOKEN_REVOKED This token was revoked. Connect again to get a new one.
401 UNAUTHENTICATED Your session has expired. Please sign in again.
403 INSUFFICIENT_SCOPE This token doesn't have the access this needs. Connect again and allow it.
403 INTEGRATION_BLOCKED_BY_ORGANIZATION This organization doesn't allow this integration. Ask an admin of the organization.
403 INTEGRATION_PENDING_APPROVAL An admin of this organization needs to approve this connection first.
409 CONFLICT This changed in the meantime. Refresh and try again.
409 IDEMPOTENCY_KEY_REUSED This Idempotency-Key was already used for a different request. Send a new key.
413 PAYLOAD_TOO_LARGE This request is too large to be sent with an Idempotency-Key. Send a smaller body or no key.
415 UNSUPPORTED_MEDIA_TYPE This API reads JSON bodies only. Send the body as JSON with `Content-Type: application/json`.
429 RATE_LIMITED Too many requests. Wait a moment and try again.
500 INTERNAL_ERROR Something went wrong on our side. Please try again.

Example

A LinkedIn post with one image

curl
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"
      }
    }
  ]
}'
TypeScript
const response = await fetch("https://api.beplan.io/v1/organizations/ORGANIZATION_ID/workspaces/WORKSPACE_ID/posts", {
  method: "POST",
  headers: {
    Authorization: "Bearer beplan_pat_…",
    "Idempotency-Key": crypto.randomUUID(),
    "Content-Type": "application/json",
  },
  body: JSON.stringify({
    "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"
        }
      }
    ]
  }),
});
if (!response.ok) throw new Error((await response.json()).error.code);
const { data } = await response.json();
Python
import uuid

import requests

response = requests.post(
    "https://api.beplan.io/v1/organizations/ORGANIZATION_ID/workspaces/WORKSPACE_ID/posts",
    headers={"Authorization": "Bearer beplan_pat_…", "Idempotency-Key": str(uuid.uuid4())},
    json={
        "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",
                },
            },
        ],
    },
)
response.raise_for_status()
data = response.json()["data"]
Response 201
{
  "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
Beta Reads only posts.ready.list
Scope
posts:read
Role permission
Any member who can see it
Effect
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 Description
organizationId required path string 1–128 characters
workspaceId required path string (uuid)
limit optional query integer from 1 to 100
cursor optional query string at most 512 characters
heldOnly optional query string true: only the posts waiting for a person's approval (pendingApproval set). One of true, false.

Responses

200 OK

object · ReadyPostsResponse

  • dataarray of objectrequired
    13fields in each item
    • idstringrequired
    • titlestringrequired
    • captionstringrequirednullable
    • statusstringrequired
      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
    • scheduledAtstring (date-time)requirednullable
    • ordernumberrequired
      Position in the ready queue: Quick Fill takes ready posts in this order.
    • formatsarray of objectrequired
      3fields in each item
      • idstringrequired
      • namestringrequired
      • colorstringrequired
    • platformsarray of objectrequired
      5fields in each item
      • platformstringrequired
      • statestringrequired
        One of: pending, published, failed
      • urlstringrequirednullable
      • errorstringrequirednullable
      • viewsnumberoptionalnullable
    • mediaarray of objectrequired
      2fields in each item
      • typestringrequired
        One of: image, video, gif
      • thumbnailUrlstringrequirednullable
    • mediaCountnumberrequired
    • linkWindowobject · PostLinkWindowoptional
      2fields
      • afterobject · LinkedPostRefrequirednullable
        3fields
        • idstringrequired
        • titlestringrequired
        • scheduledAtstring (date-time)requirednullable
      • beforeobject · LinkedPostRefrequirednullable
        3fields
        • idstringrequired
        • titlestringrequired
        • scheduledAtstring (date-time)requirednullable
    • pendingApprovalobject · PostCardPendingApprovaloptionalnullable
      The approval request the post waits on (an integration asked to schedule or publish it); null when none is pending.
      3fields
      • idstring (uuid)required
      • actionstringrequired
        schedule (at scheduledAt) or publish_now.
        One of: schedule, publish_now
      • scheduledAtstring (date-time)requirednullable
        The time asked for (schedule); null for publish_now.
    • scheduledViaobject · PostViaoptionalnullable
      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.
      2fields
      • kindstring · PublicConnectionKindrequired
        One of: personal_token, app, mcp
      • namestringrequired
  • pageobjectrequired
    2fields
    • nextCursorstringrequirednullable
    • hasMorebooleanrequired
  • totalnumberoptional
    Posts in the whole queue (held ones only with heldOnly=true); on the first page only (no cursor).

Errors answer { error: { code, message, details, requestId } } with status 400, 401, 403, 404, 429, 500.

Error codes

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.
9 more that every operation can answer (tokens, scopes, limits)
401 APP_SUSPENDED This app has been suspended by Beplan and can't access your account.
401 TOKEN_EXPIRED This token has expired. Create a new one or sign in again.
401 TOKEN_REVOKED This token was revoked. Connect again to get a new one.
401 UNAUTHENTICATED Your session has expired. Please sign in again.
403 INSUFFICIENT_SCOPE This token doesn't have the access this needs. Connect again and allow it.
403 INTEGRATION_BLOCKED_BY_ORGANIZATION This organization doesn't allow this integration. Ask an admin of the organization.
403 INTEGRATION_PENDING_APPROVAL An admin of this organization needs to approve this connection first.
429 RATE_LIMITED Too many requests. Wait a moment and try again.
500 INTERNAL_ERROR Something went wrong on our side. Please try again.

Example

The first page of the queue

curl
curl -X GET "https://api.beplan.io/v1/organizations/ORGANIZATION_ID/workspaces/WORKSPACE_ID/posts/ready?limit=25" \
  -H "Authorization: Bearer beplan_pat_…"
TypeScript
const response = await fetch("https://api.beplan.io/v1/organizations/ORGANIZATION_ID/workspaces/WORKSPACE_ID/posts/ready?limit=25", {
  method: "GET",
  headers: {
    Authorization: "Bearer beplan_pat_…",
  },
});
if (!response.ok) throw new Error((await response.json()).error.code);
const { data } = await response.json();
Python
import requests

response = requests.get(
    "https://api.beplan.io/v1/organizations/ORGANIZATION_ID/workspaces/WORKSPACE_ID/posts/ready?limit=25",
    headers={"Authorization": "Bearer beplan_pat_…"},
)
response.raise_for_status()
data = response.json()["data"]
Response 200
{
  "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}
Beta Reads only posts.get
Scope
posts:read
Role permission
Any member who can see it
Effect
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 Description
organizationId required path string 1–128 characters
workspaceId required path string (uuid)
postId required path string (uuid)

Responses

200 OK

object · EditorPostResponse

  • dataobject · EditorPostrequired
    14fields
    • idstringrequired
    • titlestringrequired
    • captionstringrequired
    • hashtagsstringrequired
    • formatIdsarray of stringrequired
    • ignoreOpenFormatSlotsbooleanrequired
    • statusstringrequired
      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 (may gain values): idea, in_progress, in_review, ready, scheduled, in_process, posted, failed
    • scheduledAtstring (date-time)requirednullable
      When it goes out (or went out), ISO 8601 UTC.
    • mediaarray of objectrequired
      4fields in each item
      • mediaIdstringrequired
      • altTextstringrequirednullable
      • itemobject · MediaItemrequired
        21fields
        • idstringrequired
        • folderIdstringrequirednullable
          The folder holding the media; null at the root of the library.
        • filenamestringrequired
        • altTextstringrequirednullable
        • mediaTypestringrequired
          One of: image, video, gif, audio
        • mimeTypestringrequirednullable
        • sizenumberrequirednullable
          File size in bytes, when known.
        • widthnumberrequirednullable
          Width in pixels, when known (images at upload, videos once processed); null for audio.
        • heightnumberrequirednullable
          Height in pixels, when known (images at upload, videos once processed); null for audio.
        • aspectRationumberrequired
          Display ratio (width / height) from the dimensions, clamped to [0.45, 2.4]; 1 when unknown and for audio.
        • durationnumberrequirednullable
          Length in seconds, for videos, GIFs and audio once known (null for images).
        • waveformarray of numberrequirednullable
          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.
        • createdAtstring (date-time)required
        • formatsarray of objectrequired
          3fields in each item
          • idstringrequired
          • namestringrequired
          • colorstringrequired
        • usagestringrequired
          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
        • processingobjectrequired
          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.
          2fields
          • statestringrequired
            One of: processing, ready, failed
          • errorstringrequirednullable
        • previewUrlstringrequirednullable
          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.
        • mediaUrlstringrequired
          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.
        • playbackobjectrequirednullable
          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.
          1field
          • manifestUrlstringrequired
        • publishCopyobjectrequirednullable
          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.
          4fields
          • mimeTypestringrequired
          • widthnumberrequired
          • heightnumberrequired
          • sizenumberrequired
        • transcriptMatchobject · MediaTranscriptMatchoptional
          3fields
          • snippetstringrequired
          • startMsnumberrequired
          • sourcestringoptional
            One of: speech, scene
      • cropobject · MediaCropoptionalnullable
        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.
        7fields
        • versionnumberrequired
          Always 1
        • unitstringrequired
          Always percent
        • xnumberrequired
          from 0 to 1
        • ynumberrequired
          from 0 to 1
        • widthnumberrequired
          above 0 to 1
        • heightnumberrequired
          above 0 to 1
        • aspectRationumberoptional
          greater than 0
    • platformsarray of objectrequired
      12fields in each item
      • socialAccountIdstringrequired
      • platformstring · SocialPlatformrequired
        One of (may gain values): x, instagram, facebook, tiktok, linkedin, threads, pinterest, youtube, discord, bluesky
      • isActivebooleanrequired
      • typestringrequired
        One of: post, story
      • customCaptionstringrequirednullable
      • additionalParamsmap of anyrequired
        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.
      • mediaarray of objectrequirednullable
        4fields in each item
        • mediaIdstringrequired
        • altTextstringrequirednullable
        • itemobject · MediaItemrequired
          21fields
          • idstringrequired
          • folderIdstringrequirednullable
            The folder holding the media; null at the root of the library.
          • filenamestringrequired
          • altTextstringrequirednullable
          • mediaTypestringrequired
            One of: image, video, gif, audio
          • mimeTypestringrequirednullable
          • sizenumberrequirednullable
            File size in bytes, when known.
          • widthnumberrequirednullable
            Width in pixels, when known (images at upload, videos once processed); null for audio.
          • heightnumberrequirednullable
            Height in pixels, when known (images at upload, videos once processed); null for audio.
          • aspectRationumberrequired
            Display ratio (width / height) from the dimensions, clamped to [0.45, 2.4]; 1 when unknown and for audio.
          • durationnumberrequirednullable
            Length in seconds, for videos, GIFs and audio once known (null for images).
          • waveformarray of numberrequirednullable
            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.
          • createdAtstring (date-time)required
          • formatsarray of objectrequired
            3fields in each item
            • idstringrequired
            • namestringrequired
            • colorstringrequired
          • usagestringrequired
            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
          • processingobjectrequired
            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.
            2fields
            • statestringrequired
              One of: processing, ready, failed
            • errorstringrequirednullable
          • previewUrlstringrequirednullable
            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.
          • mediaUrlstringrequired
            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.
          • playbackobjectrequirednullable
            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.
            1field
            • manifestUrlstringrequired
          • publishCopyobjectrequirednullable
            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.
            4fields
            • mimeTypestringrequired
            • widthnumberrequired
            • heightnumberrequired
            • sizenumberrequired
          • transcriptMatchobject · MediaTranscriptMatchoptional
            3fields
            • snippetstringrequired
            • startMsnumberrequired
            • sourcestringoptional
              One of: speech, scene
        • cropobject · MediaCropoptionalnullable
          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.
          7fields
          • versionnumberrequired
            Always 1
          • unitstringrequired
            Always percent
          • xnumberrequired
            from 0 to 1
          • ynumberrequired
            from 0 to 1
          • widthnumberrequired
            above 0 to 1
          • heightnumberrequired
            above 0 to 1
          • aspectRationumberoptional
            greater than 0
      • threadarray of objectrequired
        3fields in each item
        • idstringoptional
        • captionstringrequired
        • mediaarray of objectrequired
          4fields in each item
          • mediaIdstringrequired
          • altTextstringrequirednullable
          • itemobject · MediaItemrequired
            21fields
            • idstringrequired
            • folderIdstringrequirednullable
              The folder holding the media; null at the root of the library.
            • filenamestringrequired
            • altTextstringrequirednullable
            • mediaTypestringrequired
              One of: image, video, gif, audio
            • mimeTypestringrequirednullable
            • sizenumberrequirednullable
              File size in bytes, when known.
            • widthnumberrequirednullable
              Width in pixels, when known (images at upload, videos once processed); null for audio.
            • heightnumberrequirednullable
              Height in pixels, when known (images at upload, videos once processed); null for audio.
            • aspectRationumberrequired
              Display ratio (width / height) from the dimensions, clamped to [0.45, 2.4]; 1 when unknown and for audio.
            • durationnumberrequirednullable
              Length in seconds, for videos, GIFs and audio once known (null for images).
            • waveformarray of numberrequirednullable
              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.
            • createdAtstring (date-time)required
            • formatsarray of objectrequired
              3fields in each item
              • idstringrequired
              • namestringrequired
              • colorstringrequired
            • usagestringrequired
              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
            • processingobjectrequired
              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.
              2fields
              • statestringrequired
                One of: processing, ready, failed
              • errorstringrequirednullable
            • previewUrlstringrequirednullable
              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.
            • mediaUrlstringrequired
              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.
            • playbackobjectrequirednullable
              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.
              1field
              • manifestUrlstringrequired
            • publishCopyobjectrequirednullable
              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.
              4fields
              • mimeTypestringrequired
              • widthnumberrequired
              • heightnumberrequired
              • sizenumberrequired
            • transcriptMatchobject · MediaTranscriptMatchoptional
              3fields
              • snippetstringrequired
              • startMsnumberrequired
              • sourcestringoptional
                One of: speech, scene
          • cropobject · MediaCropoptionalnullable
            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.
            7fields
            • versionnumberrequired
              Always 1
            • unitstringrequired
              Always percent
            • xnumberrequired
              from 0 to 1
            • ynumberrequired
              from 0 to 1
            • widthnumberrequired
              above 0 to 1
            • heightnumberrequired
              above 0 to 1
            • aspectRationumberoptional
              greater than 0
      • publishedUrlstringoptionalnullable
      • publishedUrlKindstringoptionalnullable
        One of: post, studio
      • publishStatestringoptional
        One of: pending, published, failed
      • publishErrorstringoptionalnullable
    • updatedAtstring (date-time)required
      Last change. Send it back as baseUpdatedAt when saving so you never overwrite a change you haven't read.
    • pendingApprovalobject · EditorPostPendingApprovaloptionalnullable
      5fields
      • idstring (uuid)required
      • actionstringrequired
        One of: schedule, publish_now
      • scheduledAtstring (date-time)requirednullable
      • createdAtstring (date-time)required
      • urlstringrequired
    • scheduledViaobject · PostViaoptionalnullable
      2fields
      • kindstring · PublicConnectionKindrequired
        One of: personal_token, app, mcp
      • namestringrequired
    • beplanPromotionobject · EditorBeplanPromotionoptionalnullable
      4fields
      • userIdstringrequired
      • userNamestringrequired
      • disclosurestringrequired
      • mentionsBeplanbooleanrequired

Errors answer { error: { code, message, details, requestId } } with status 400, 401, 403, 404, 429, 500.

Error codes

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.
10 more that every operation can answer (tokens, scopes, limits)
400 VALIDATION_FAILED Some of the information sent is invalid.
401 APP_SUSPENDED This app has been suspended by Beplan and can't access your account.
401 TOKEN_EXPIRED This token has expired. Create a new one or sign in again.
401 TOKEN_REVOKED This token was revoked. Connect again to get a new one.
401 UNAUTHENTICATED Your session has expired. Please sign in again.
403 INSUFFICIENT_SCOPE This token doesn't have the access this needs. Connect again and allow it.
403 INTEGRATION_BLOCKED_BY_ORGANIZATION This organization doesn't allow this integration. Ask an admin of the organization.
403 INTEGRATION_PENDING_APPROVAL An admin of this organization needs to approve this connection first.
429 RATE_LIMITED Too many requests. Wait a moment and try again.
500 INTERNAL_ERROR Something went wrong on our side. Please try again.

Example

A draft for LinkedIn

curl
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_…"
TypeScript
const response = await fetch("https://api.beplan.io/v1/organizations/ORGANIZATION_ID/workspaces/WORKSPACE_ID/posts/6f1c2a3b-4d5e-4f60-8a71-92b3c4d5e6f7", {
  method: "GET",
  headers: {
    Authorization: "Bearer beplan_pat_…",
  },
});
if (!response.ok) throw new Error((await response.json()).error.code);
const { data } = await response.json();
Python
import requests

response = requests.get(
    "https://api.beplan.io/v1/organizations/ORGANIZATION_ID/workspaces/WORKSPACE_ID/posts/6f1c2a3b-4d5e-4f60-8a71-92b3c4d5e6f7",
    headers={"Authorization": "Bearer beplan_pat_…"},
)
response.raise_for_status()
data = response.json()["data"]
Response 200
{
  "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}
Beta Changes data posts.update
Scope
posts:write
Role permission
Edit posts (post:update)
Effect
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 Description
organizationId required path string 1–128 characters
workspaceId required path string (uuid)
postId required path string (uuid)

Request body JSON, required

object · SavePostBody

  • baseUpdatedAtstring (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.
  • liveEpochintegeroptional
    Beplan's own editor only (live co-editing). Integrations omit it.
    at least 0
  • titlestringoptional
    at most 255 characters
  • captionstringoptional
    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
  • hashtagsstringoptional
    at most 5000 characters
  • formatIdsarray of string (uuid)optional
    The post's formats (the workspace's content types), in order; replaces the list.
    at most 50 items
  • ignoreOpenFormatSlotsbooleanoptional
  • mediaarray of objectoptional
    The post's media, in publishing order; replaces the list. Each must be in the workspace's media library.
    at most 35 items
    3fields in each item
    • mediaIdstring (uuid)required
    • altTextstringoptionalnullable
      at most 1500 characters
    • cropobject · MediaCropoptionalnullable
      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.
      7fields
      • versionnumberrequired
        Always 1
      • unitstringrequired
        Always percent
      • xnumberrequired
        from 0 to 1
      • ynumberrequired
        from 0 to 1
      • widthnumberrequired
        above 0 to 1
      • heightnumberrequired
        above 0 to 1
      • aspectRationumberoptional
        greater than 0
  • platformsarray of objectoptional
    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
    7fields in each item
    • socialAccountIdstring (uuid)required
      A connected account of the workspace (GET …/social-accounts).
    • isActivebooleanrequired
    • typestringoptional
      One of: post, story
    • customCaptionstringoptionalnullable
      at most 63206 characters
    • additionalParamsmap of anyoptional
      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.
    • mediaarray of objectoptionalnullable
      at most 35 items
      3fields in each item
      • mediaIdstring (uuid)required
      • altTextstringoptionalnullable
        at most 1500 characters
      • cropobject · MediaCropoptionalnullable
        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.
        7fields
        • versionnumberrequired
          Always 1
        • unitstringrequired
          Always percent
        • xnumberrequired
          from 0 to 1
        • ynumberrequired
          from 0 to 1
        • widthnumberrequired
          above 0 to 1
        • heightnumberrequired
          above 0 to 1
        • aspectRationumberoptional
          greater than 0
    • threadarray of objectoptional
      at most 24 items
      3fields in each item
      • idstring (uuid)optional
      • captionstringrequired
        at most 63206 characters
      • mediaarray of objectrequired
        at most 35 items
        3fields in each item
        • mediaIdstring (uuid)required
        • altTextstringoptionalnullable
          at most 1500 characters
        • cropobject · MediaCropoptionalnullable
          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.
          7fields
          • versionnumberrequired
            Always 1
          • unitstringrequired
            Always percent
          • xnumberrequired
            from 0 to 1
          • ynumberrequired
            from 0 to 1
          • widthnumberrequired
            above 0 to 1
          • heightnumberrequired
            above 0 to 1
          • aspectRationumberoptional
            greater than 0

Responses

200 OK

object · EditorPostResponse

  • dataobject · EditorPostrequired
    14fields
    • idstringrequired
    • titlestringrequired
    • captionstringrequired
    • hashtagsstringrequired
    • formatIdsarray of stringrequired
    • ignoreOpenFormatSlotsbooleanrequired
    • statusstringrequired
      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 (may gain values): idea, in_progress, in_review, ready, scheduled, in_process, posted, failed
    • scheduledAtstring (date-time)requirednullable
      When it goes out (or went out), ISO 8601 UTC.
    • mediaarray of objectrequired
      4fields in each item
      • mediaIdstringrequired
      • altTextstringrequirednullable
      • itemobject · MediaItemrequired
        21fields
        • idstringrequired
        • folderIdstringrequirednullable
          The folder holding the media; null at the root of the library.
        • filenamestringrequired
        • altTextstringrequirednullable
        • mediaTypestringrequired
          One of: image, video, gif, audio
        • mimeTypestringrequirednullable
        • sizenumberrequirednullable
          File size in bytes, when known.
        • widthnumberrequirednullable
          Width in pixels, when known (images at upload, videos once processed); null for audio.
        • heightnumberrequirednullable
          Height in pixels, when known (images at upload, videos once processed); null for audio.
        • aspectRationumberrequired
          Display ratio (width / height) from the dimensions, clamped to [0.45, 2.4]; 1 when unknown and for audio.
        • durationnumberrequirednullable
          Length in seconds, for videos, GIFs and audio once known (null for images).
        • waveformarray of numberrequirednullable
          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.
        • createdAtstring (date-time)required
        • formatsarray of objectrequired
          3fields in each item
          • idstringrequired
          • namestringrequired
          • colorstringrequired
        • usagestringrequired
          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
        • processingobjectrequired
          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.
          2fields
          • statestringrequired
            One of: processing, ready, failed
          • errorstringrequirednullable
        • previewUrlstringrequirednullable
          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.
        • mediaUrlstringrequired
          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.
        • playbackobjectrequirednullable
          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.
          1field
          • manifestUrlstringrequired
        • publishCopyobjectrequirednullable
          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.
          4fields
          • mimeTypestringrequired
          • widthnumberrequired
          • heightnumberrequired
          • sizenumberrequired
        • transcriptMatchobject · MediaTranscriptMatchoptional
          3fields
          • snippetstringrequired
          • startMsnumberrequired
          • sourcestringoptional
            One of: speech, scene
      • cropobject · MediaCropoptionalnullable
        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.
        7fields
        • versionnumberrequired
          Always 1
        • unitstringrequired
          Always percent
        • xnumberrequired
          from 0 to 1
        • ynumberrequired
          from 0 to 1
        • widthnumberrequired
          above 0 to 1
        • heightnumberrequired
          above 0 to 1
        • aspectRationumberoptional
          greater than 0
    • platformsarray of objectrequired
      12fields in each item
      • socialAccountIdstringrequired
      • platformstring · SocialPlatformrequired
        One of (may gain values): x, instagram, facebook, tiktok, linkedin, threads, pinterest, youtube, discord, bluesky
      • isActivebooleanrequired
      • typestringrequired
        One of: post, story
      • customCaptionstringrequirednullable
      • additionalParamsmap of anyrequired
        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.
      • mediaarray of objectrequirednullable
        4fields in each item
        • mediaIdstringrequired
        • altTextstringrequirednullable
        • itemobject · MediaItemrequired
          21fields
          • idstringrequired
          • folderIdstringrequirednullable
            The folder holding the media; null at the root of the library.
          • filenamestringrequired
          • altTextstringrequirednullable
          • mediaTypestringrequired
            One of: image, video, gif, audio
          • mimeTypestringrequirednullable
          • sizenumberrequirednullable
            File size in bytes, when known.
          • widthnumberrequirednullable
            Width in pixels, when known (images at upload, videos once processed); null for audio.
          • heightnumberrequirednullable
            Height in pixels, when known (images at upload, videos once processed); null for audio.
          • aspectRationumberrequired
            Display ratio (width / height) from the dimensions, clamped to [0.45, 2.4]; 1 when unknown and for audio.
          • durationnumberrequirednullable
            Length in seconds, for videos, GIFs and audio once known (null for images).
          • waveformarray of numberrequirednullable
            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.
          • createdAtstring (date-time)required
          • formatsarray of objectrequired
            3fields in each item
            • idstringrequired
            • namestringrequired
            • colorstringrequired
          • usagestringrequired
            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
          • processingobjectrequired
            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.
            2fields
            • statestringrequired
              One of: processing, ready, failed
            • errorstringrequirednullable
          • previewUrlstringrequirednullable
            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.
          • mediaUrlstringrequired
            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.
          • playbackobjectrequirednullable
            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.
            1field
            • manifestUrlstringrequired
          • publishCopyobjectrequirednullable
            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.
            4fields
            • mimeTypestringrequired
            • widthnumberrequired
            • heightnumberrequired
            • sizenumberrequired
          • transcriptMatchobject · MediaTranscriptMatchoptional
            3fields
            • snippetstringrequired
            • startMsnumberrequired
            • sourcestringoptional
              One of: speech, scene
        • cropobject · MediaCropoptionalnullable
          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.
          7fields
          • versionnumberrequired
            Always 1
          • unitstringrequired
            Always percent
          • xnumberrequired
            from 0 to 1
          • ynumberrequired
            from 0 to 1
          • widthnumberrequired
            above 0 to 1
          • heightnumberrequired
            above 0 to 1
          • aspectRationumberoptional
            greater than 0
      • threadarray of objectrequired
        3fields in each item
        • idstringoptional
        • captionstringrequired
        • mediaarray of objectrequired
          4fields in each item
          • mediaIdstringrequired
          • altTextstringrequirednullable
          • itemobject · MediaItemrequired
            21fields
            • idstringrequired
            • folderIdstringrequirednullable
              The folder holding the media; null at the root of the library.
            • filenamestringrequired
            • altTextstringrequirednullable
            • mediaTypestringrequired
              One of: image, video, gif, audio
            • mimeTypestringrequirednullable
            • sizenumberrequirednullable
              File size in bytes, when known.
            • widthnumberrequirednullable
              Width in pixels, when known (images at upload, videos once processed); null for audio.
            • heightnumberrequirednullable
              Height in pixels, when known (images at upload, videos once processed); null for audio.
            • aspectRationumberrequired
              Display ratio (width / height) from the dimensions, clamped to [0.45, 2.4]; 1 when unknown and for audio.
            • durationnumberrequirednullable
              Length in seconds, for videos, GIFs and audio once known (null for images).
            • waveformarray of numberrequirednullable
              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.
            • createdAtstring (date-time)required
            • formatsarray of objectrequired
              3fields in each item
              • idstringrequired
              • namestringrequired
              • colorstringrequired
            • usagestringrequired
              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
            • processingobjectrequired
              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.
              2fields
              • statestringrequired
                One of: processing, ready, failed
              • errorstringrequirednullable
            • previewUrlstringrequirednullable
              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.
            • mediaUrlstringrequired
              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.
            • playbackobjectrequirednullable
              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.
              1field
              • manifestUrlstringrequired
            • publishCopyobjectrequirednullable
              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.
              4fields
              • mimeTypestringrequired
              • widthnumberrequired
              • heightnumberrequired
              • sizenumberrequired
            • transcriptMatchobject · MediaTranscriptMatchoptional
              3fields
              • snippetstringrequired
              • startMsnumberrequired
              • sourcestringoptional
                One of: speech, scene
          • cropobject · MediaCropoptionalnullable
            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.
            7fields
            • versionnumberrequired
              Always 1
            • unitstringrequired
              Always percent
            • xnumberrequired
              from 0 to 1
            • ynumberrequired
              from 0 to 1
            • widthnumberrequired
              above 0 to 1
            • heightnumberrequired
              above 0 to 1
            • aspectRationumberoptional
              greater than 0
      • publishedUrlstringoptionalnullable
      • publishedUrlKindstringoptionalnullable
        One of: post, studio
      • publishStatestringoptional
        One of: pending, published, failed
      • publishErrorstringoptionalnullable
    • updatedAtstring (date-time)required
      Last change. Send it back as baseUpdatedAt when saving so you never overwrite a change you haven't read.
    • pendingApprovalobject · EditorPostPendingApprovaloptionalnullable
      5fields
      • idstring (uuid)required
      • actionstringrequired
        One of: schedule, publish_now
      • scheduledAtstring (date-time)requirednullable
      • createdAtstring (date-time)required
      • urlstringrequired
    • scheduledViaobject · PostViaoptionalnullable
      2fields
      • kindstring · PublicConnectionKindrequired
        One of: personal_token, app, mcp
      • namestringrequired
    • beplanPromotionobject · EditorBeplanPromotionoptionalnullable
      4fields
      • userIdstringrequired
      • userNamestringrequired
      • disclosurestringrequired
      • mentionsBeplanbooleanrequired

Errors answer { error: { code, message, details, requestId } } with status 400, 401, 403, 404, 409, 413, 415, 422, 429, 500.

Error codes

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.
11 more that every operation can answer (tokens, scopes, limits)
401 APP_SUSPENDED This app has been suspended by Beplan and can't access your account.
401 TOKEN_EXPIRED This token has expired. Create a new one or sign in again.
401 TOKEN_REVOKED This token was revoked. Connect again to get a new one.
401 UNAUTHENTICATED Your session has expired. Please sign in again.
403 INSUFFICIENT_SCOPE This token doesn't have the access this needs. Connect again and allow it.
403 INTEGRATION_BLOCKED_BY_ORGANIZATION This organization doesn't allow this integration. Ask an admin of the organization.
403 INTEGRATION_PENDING_APPROVAL An admin of this organization needs to approve this connection first.
413 PAYLOAD_TOO_LARGE This request is too large to be sent with an Idempotency-Key. Send a smaller body or no key.
415 UNSUPPORTED_MEDIA_TYPE This API reads JSON bodies only. Send the body as JSON with `Content-Type: application/json`.
429 RATE_LIMITED Too many requests. Wait a moment and try again.
500 INTERNAL_ERROR Something went wrong on our side. Please try again.

Example

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

curl
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."
}'
TypeScript
const response = await fetch("https://api.beplan.io/v1/organizations/ORGANIZATION_ID/workspaces/WORKSPACE_ID/posts/6f1c2a3b-4d5e-4f60-8a71-92b3c4d5e6f7", {
  method: "PATCH",
  headers: {
    Authorization: "Bearer beplan_pat_…",
    "Content-Type": "application/json",
  },
  body: JSON.stringify({
    "baseUpdatedAt": "2026-11-19T10:12:00.000Z",
    "caption": "Something new lands Thursday at 10."
  }),
});
if (!response.ok) throw new Error((await response.json()).error.code);
const { data } = await response.json();
Python
import requests

response = requests.patch(
    "https://api.beplan.io/v1/organizations/ORGANIZATION_ID/workspaces/WORKSPACE_ID/posts/6f1c2a3b-4d5e-4f60-8a71-92b3c4d5e6f7",
    headers={"Authorization": "Bearer beplan_pat_…"},
    json={
        "baseUpdatedAt": "2026-11-19T10:12:00.000Z",
        "caption": "Something new lands Thursday at 10.",
    },
)
response.raise_for_status()
data = response.json()["data"]
Response 200
{
  "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}
Beta Deletes posts.delete
Scope
posts:write
Role permission
Delete posts (post:delete)
Effect
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 Description
organizationId required path string 1–128 characters
workspaceId required path string (uuid)
postId required path string (uuid)
withLinkedPosts optional query string 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. One of true, false.
confirmDeal optional query string true (or 1): confirms deleting a deal's post that must stay live under the deal. One of 0, 1, true, false.

Responses

204 No content

No content.

Errors answer { error: { code, message, details, requestId } } with status 400, 401, 403, 404, 409, 422, 429, 500.

Error codes

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.
9 more that every operation can answer (tokens, scopes, limits)
401 APP_SUSPENDED This app has been suspended by Beplan and can't access your account.
401 TOKEN_EXPIRED This token has expired. Create a new one or sign in again.
401 TOKEN_REVOKED This token was revoked. Connect again to get a new one.
401 UNAUTHENTICATED Your session has expired. Please sign in again.
403 INSUFFICIENT_SCOPE This token doesn't have the access this needs. Connect again and allow it.
403 INTEGRATION_BLOCKED_BY_ORGANIZATION This organization doesn't allow this integration. Ask an admin of the organization.
403 INTEGRATION_PENDING_APPROVAL An admin of this organization needs to approve this connection first.
429 RATE_LIMITED Too many requests. Wait a moment and try again.
500 INTERNAL_ERROR Something went wrong on our side. Please try again.

Example

Delete a draft

curl
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_…"
TypeScript
const response = await fetch("https://api.beplan.io/v1/organizations/ORGANIZATION_ID/workspaces/WORKSPACE_ID/posts/6f1c2a3b-4d5e-4f60-8a71-92b3c4d5e6f7", {
  method: "DELETE",
  headers: {
    Authorization: "Bearer beplan_pat_…",
  },
});
if (!response.ok) throw new Error((await response.json()).error.code);
Python
import requests

response = requests.delete(
    "https://api.beplan.io/v1/organizations/ORGANIZATION_ID/workspaces/WORKSPACE_ID/posts/6f1c2a3b-4d5e-4f60-8a71-92b3c4d5e6f7",
    headers={"Authorization": "Bearer beplan_pat_…"},
)
response.raise_for_status()

Answers 204 with no content.

Duplicate a post

POST /organizations/{organizationId}/workspaces/{workspaceId}/posts/{postId}/duplicate
Beta Changes data posts.duplicate
Scope
posts:write
Role permission
Create posts (post:create)
Effect
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 Description
organizationId required path string 1–128 characters
workspaceId required path string (uuid)
postId required path string (uuid)

Request body JSON, required

object · DuplicatePostBody

  • onlyFailedPlatformsbooleanoptional
  • platformsarray of stringoptional
    One of: x, instagram, facebook, tiktok, linkedin, threads, pinterest, youtube, discord, bluesky
    1–10 items

Responses

201 Created

object · DuplicatedPostResponse

  • dataobjectrequired
    2fields
    • idstringrequired
    • titlestringrequired

Errors answer { error: { code, message, details, requestId } } with status 400, 401, 403, 404, 409, 413, 415, 429, 500.

Error codes

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.
13 more that every operation can answer (tokens, scopes, limits)
401 APP_SUSPENDED This app has been suspended by Beplan and can't access your account.
401 TOKEN_EXPIRED This token has expired. Create a new one or sign in again.
401 TOKEN_REVOKED This token was revoked. Connect again to get a new one.
401 UNAUTHENTICATED Your session has expired. Please sign in again.
403 INSUFFICIENT_SCOPE This token doesn't have the access this needs. Connect again and allow it.
403 INTEGRATION_BLOCKED_BY_ORGANIZATION This organization doesn't allow this integration. Ask an admin of the organization.
403 INTEGRATION_PENDING_APPROVAL An admin of this organization needs to approve this connection first.
409 CONFLICT This changed in the meantime. Refresh and try again.
409 IDEMPOTENCY_KEY_REUSED This Idempotency-Key was already used for a different request. Send a new key.
413 PAYLOAD_TOO_LARGE This request is too large to be sent with an Idempotency-Key. Send a smaller body or no key.
415 UNSUPPORTED_MEDIA_TYPE This API reads JSON bodies only. Send the body as JSON with `Content-Type: application/json`.
429 RATE_LIMITED Too many requests. Wait a moment and try again.
500 INTERNAL_ERROR Something went wrong on our side. Please try again.

Example

A copy for the workspace's Instagram accounts

curl
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"
  ]
}'
TypeScript
const response = await fetch("https://api.beplan.io/v1/organizations/ORGANIZATION_ID/workspaces/WORKSPACE_ID/posts/6f1c2a3b-4d5e-4f60-8a71-92b3c4d5e6f7/duplicate", {
  method: "POST",
  headers: {
    Authorization: "Bearer beplan_pat_…",
    "Idempotency-Key": crypto.randomUUID(),
    "Content-Type": "application/json",
  },
  body: JSON.stringify({
    "platforms": [
      "instagram"
    ]
  }),
});
if (!response.ok) throw new Error((await response.json()).error.code);
const { data } = await response.json();
Python
import uuid

import requests

response = requests.post(
    "https://api.beplan.io/v1/organizations/ORGANIZATION_ID/workspaces/WORKSPACE_ID/posts/6f1c2a3b-4d5e-4f60-8a71-92b3c4d5e6f7/duplicate",
    headers={"Authorization": "Bearer beplan_pat_…", "Idempotency-Key": str(uuid.uuid4())},
    json={
        "platforms": [
            "instagram",
        ],
    },
)
response.raise_for_status()
data = response.json()["data"]
Response 201
{
  "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
Beta Acts outside Beplan posts.publishNow
Scope
posts:publish
Role permission
Publish posts (post:publish)
Effect
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 Description
organizationId required path string 1–128 characters
workspaceId required path string (uuid)
postId required path string (uuid)

Responses

200 OK

object · EditorPostResponse

  • dataobject · EditorPostrequired
    14fields
    • idstringrequired
    • titlestringrequired
    • captionstringrequired
    • hashtagsstringrequired
    • formatIdsarray of stringrequired
    • ignoreOpenFormatSlotsbooleanrequired
    • statusstringrequired
      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 (may gain values): idea, in_progress, in_review, ready, scheduled, in_process, posted, failed
    • scheduledAtstring (date-time)requirednullable
      When it goes out (or went out), ISO 8601 UTC.
    • mediaarray of objectrequired
      4fields in each item
      • mediaIdstringrequired
      • altTextstringrequirednullable
      • itemobject · MediaItemrequired
        21fields
        • idstringrequired
        • folderIdstringrequirednullable
          The folder holding the media; null at the root of the library.
        • filenamestringrequired
        • altTextstringrequirednullable
        • mediaTypestringrequired
          One of: image, video, gif, audio
        • mimeTypestringrequirednullable
        • sizenumberrequirednullable
          File size in bytes, when known.
        • widthnumberrequirednullable
          Width in pixels, when known (images at upload, videos once processed); null for audio.
        • heightnumberrequirednullable
          Height in pixels, when known (images at upload, videos once processed); null for audio.
        • aspectRationumberrequired
          Display ratio (width / height) from the dimensions, clamped to [0.45, 2.4]; 1 when unknown and for audio.
        • durationnumberrequirednullable
          Length in seconds, for videos, GIFs and audio once known (null for images).
        • waveformarray of numberrequirednullable
          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.
        • createdAtstring (date-time)required
        • formatsarray of objectrequired
          3fields in each item
          • idstringrequired
          • namestringrequired
          • colorstringrequired
        • usagestringrequired
          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
        • processingobjectrequired
          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.
          2fields
          • statestringrequired
            One of: processing, ready, failed
          • errorstringrequirednullable
        • previewUrlstringrequirednullable
          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.
        • mediaUrlstringrequired
          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.
        • playbackobjectrequirednullable
          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.
          1field
          • manifestUrlstringrequired
        • publishCopyobjectrequirednullable
          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.
          4fields
          • mimeTypestringrequired
          • widthnumberrequired
          • heightnumberrequired
          • sizenumberrequired
        • transcriptMatchobject · MediaTranscriptMatchoptional
          3fields
          • snippetstringrequired
          • startMsnumberrequired
          • sourcestringoptional
            One of: speech, scene
      • cropobject · MediaCropoptionalnullable
        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.
        7fields
        • versionnumberrequired
          Always 1
        • unitstringrequired
          Always percent
        • xnumberrequired
          from 0 to 1
        • ynumberrequired
          from 0 to 1
        • widthnumberrequired
          above 0 to 1
        • heightnumberrequired
          above 0 to 1
        • aspectRationumberoptional
          greater than 0
    • platformsarray of objectrequired
      12fields in each item
      • socialAccountIdstringrequired
      • platformstring · SocialPlatformrequired
        One of (may gain values): x, instagram, facebook, tiktok, linkedin, threads, pinterest, youtube, discord, bluesky
      • isActivebooleanrequired
      • typestringrequired
        One of: post, story
      • customCaptionstringrequirednullable
      • additionalParamsmap of anyrequired
        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.
      • mediaarray of objectrequirednullable
        4fields in each item
        • mediaIdstringrequired
        • altTextstringrequirednullable
        • itemobject · MediaItemrequired
          21fields
          • idstringrequired
          • folderIdstringrequirednullable
            The folder holding the media; null at the root of the library.
          • filenamestringrequired
          • altTextstringrequirednullable
          • mediaTypestringrequired
            One of: image, video, gif, audio
          • mimeTypestringrequirednullable
          • sizenumberrequirednullable
            File size in bytes, when known.
          • widthnumberrequirednullable
            Width in pixels, when known (images at upload, videos once processed); null for audio.
          • heightnumberrequirednullable
            Height in pixels, when known (images at upload, videos once processed); null for audio.
          • aspectRationumberrequired
            Display ratio (width / height) from the dimensions, clamped to [0.45, 2.4]; 1 when unknown and for audio.
          • durationnumberrequirednullable
            Length in seconds, for videos, GIFs and audio once known (null for images).
          • waveformarray of numberrequirednullable
            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.
          • createdAtstring (date-time)required
          • formatsarray of objectrequired
            3fields in each item
            • idstringrequired
            • namestringrequired
            • colorstringrequired
          • usagestringrequired
            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
          • processingobjectrequired
            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.
            2fields
            • statestringrequired
              One of: processing, ready, failed
            • errorstringrequirednullable
          • previewUrlstringrequirednullable
            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.
          • mediaUrlstringrequired
            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.
          • playbackobjectrequirednullable
            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.
            1field
            • manifestUrlstringrequired
          • publishCopyobjectrequirednullable
            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.
            4fields
            • mimeTypestringrequired
            • widthnumberrequired
            • heightnumberrequired
            • sizenumberrequired
          • transcriptMatchobject · MediaTranscriptMatchoptional
            3fields
            • snippetstringrequired
            • startMsnumberrequired
            • sourcestringoptional
              One of: speech, scene
        • cropobject · MediaCropoptionalnullable
          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.
          7fields
          • versionnumberrequired
            Always 1
          • unitstringrequired
            Always percent
          • xnumberrequired
            from 0 to 1
          • ynumberrequired
            from 0 to 1
          • widthnumberrequired
            above 0 to 1
          • heightnumberrequired
            above 0 to 1
          • aspectRationumberoptional
            greater than 0
      • threadarray of objectrequired
        3fields in each item
        • idstringoptional
        • captionstringrequired
        • mediaarray of objectrequired
          4fields in each item
          • mediaIdstringrequired
          • altTextstringrequirednullable
          • itemobject · MediaItemrequired
            21fields
            • idstringrequired
            • folderIdstringrequirednullable
              The folder holding the media; null at the root of the library.
            • filenamestringrequired
            • altTextstringrequirednullable
            • mediaTypestringrequired
              One of: image, video, gif, audio
            • mimeTypestringrequirednullable
            • sizenumberrequirednullable
              File size in bytes, when known.
            • widthnumberrequirednullable
              Width in pixels, when known (images at upload, videos once processed); null for audio.
            • heightnumberrequirednullable
              Height in pixels, when known (images at upload, videos once processed); null for audio.
            • aspectRationumberrequired
              Display ratio (width / height) from the dimensions, clamped to [0.45, 2.4]; 1 when unknown and for audio.
            • durationnumberrequirednullable
              Length in seconds, for videos, GIFs and audio once known (null for images).
            • waveformarray of numberrequirednullable
              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.
            • createdAtstring (date-time)required
            • formatsarray of objectrequired
              3fields in each item
              • idstringrequired
              • namestringrequired
              • colorstringrequired
            • usagestringrequired
              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
            • processingobjectrequired
              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.
              2fields
              • statestringrequired
                One of: processing, ready, failed
              • errorstringrequirednullable
            • previewUrlstringrequirednullable
              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.
            • mediaUrlstringrequired
              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.
            • playbackobjectrequirednullable
              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.
              1field
              • manifestUrlstringrequired
            • publishCopyobjectrequirednullable
              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.
              4fields
              • mimeTypestringrequired
              • widthnumberrequired
              • heightnumberrequired
              • sizenumberrequired
            • transcriptMatchobject · MediaTranscriptMatchoptional
              3fields
              • snippetstringrequired
              • startMsnumberrequired
              • sourcestringoptional
                One of: speech, scene
          • cropobject · MediaCropoptionalnullable
            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.
            7fields
            • versionnumberrequired
              Always 1
            • unitstringrequired
              Always percent
            • xnumberrequired
              from 0 to 1
            • ynumberrequired
              from 0 to 1
            • widthnumberrequired
              above 0 to 1
            • heightnumberrequired
              above 0 to 1
            • aspectRationumberoptional
              greater than 0
      • publishedUrlstringoptionalnullable
      • publishedUrlKindstringoptionalnullable
        One of: post, studio
      • publishStatestringoptional
        One of: pending, published, failed
      • publishErrorstringoptionalnullable
    • updatedAtstring (date-time)required
      Last change. Send it back as baseUpdatedAt when saving so you never overwrite a change you haven't read.
    • pendingApprovalobject · EditorPostPendingApprovaloptionalnullable
      5fields
      • idstring (uuid)required
      • actionstringrequired
        One of: schedule, publish_now
      • scheduledAtstring (date-time)requirednullable
      • createdAtstring (date-time)required
      • urlstringrequired
    • scheduledViaobject · PostViaoptionalnullable
      2fields
      • kindstring · PublicConnectionKindrequired
        One of: personal_token, app, mcp
      • namestringrequired
    • beplanPromotionobject · EditorBeplanPromotionoptionalnullable
      4fields
      • userIdstringrequired
      • userNamestringrequired
      • disclosurestringrequired
      • mentionsBeplanbooleanrequired

202 Accepted

object · EditorPostPendingApprovalResponse

  • dataobjectrequired
    15fields
    • idstringrequired
    • titlestringrequired
    • captionstringrequired
    • hashtagsstringrequired
    • formatIdsarray of stringrequired
    • ignoreOpenFormatSlotsbooleanrequired
    • statusstringrequired
      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 (may gain values): idea, in_progress, in_review, ready, scheduled, in_process, posted, failed
    • scheduledAtstring (date-time)requirednullable
      When it goes out (or went out), ISO 8601 UTC.
    • mediaarray of objectrequired
      4fields in each item
      • mediaIdstringrequired
      • altTextstringrequirednullable
      • itemobject · MediaItemrequired
        21fields
        • idstringrequired
        • folderIdstringrequirednullable
          The folder holding the media; null at the root of the library.
        • filenamestringrequired
        • altTextstringrequirednullable
        • mediaTypestringrequired
          One of: image, video, gif, audio
        • mimeTypestringrequirednullable
        • sizenumberrequirednullable
          File size in bytes, when known.
        • widthnumberrequirednullable
          Width in pixels, when known (images at upload, videos once processed); null for audio.
        • heightnumberrequirednullable
          Height in pixels, when known (images at upload, videos once processed); null for audio.
        • aspectRationumberrequired
          Display ratio (width / height) from the dimensions, clamped to [0.45, 2.4]; 1 when unknown and for audio.
        • durationnumberrequirednullable
          Length in seconds, for videos, GIFs and audio once known (null for images).
        • waveformarray of numberrequirednullable
          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.
        • createdAtstring (date-time)required
        • formatsarray of objectrequired
          3fields in each item
          • idstringrequired
          • namestringrequired
          • colorstringrequired
        • usagestringrequired
          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
        • processingobjectrequired
          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.
          2fields
          • statestringrequired
            One of: processing, ready, failed
          • errorstringrequirednullable
        • previewUrlstringrequirednullable
          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.
        • mediaUrlstringrequired
          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.
        • playbackobjectrequirednullable
          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.
          1field
          • manifestUrlstringrequired
        • publishCopyobjectrequirednullable
          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.
          4fields
          • mimeTypestringrequired
          • widthnumberrequired
          • heightnumberrequired
          • sizenumberrequired
        • transcriptMatchobject · MediaTranscriptMatchoptional
          3fields
          • snippetstringrequired
          • startMsnumberrequired
          • sourcestringoptional
            One of: speech, scene
      • cropobject · MediaCropoptionalnullable
        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.
        7fields
        • versionnumberrequired
          Always 1
        • unitstringrequired
          Always percent
        • xnumberrequired
          from 0 to 1
        • ynumberrequired
          from 0 to 1
        • widthnumberrequired
          above 0 to 1
        • heightnumberrequired
          above 0 to 1
        • aspectRationumberoptional
          greater than 0
    • platformsarray of objectrequired
      12fields in each item
      • socialAccountIdstringrequired
      • platformstring · SocialPlatformrequired
        One of (may gain values): x, instagram, facebook, tiktok, linkedin, threads, pinterest, youtube, discord, bluesky
      • isActivebooleanrequired
      • typestringrequired
        One of: post, story
      • customCaptionstringrequirednullable
      • additionalParamsmap of anyrequired
        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.
      • mediaarray of objectrequirednullable
        4fields in each item
        • mediaIdstringrequired
        • altTextstringrequirednullable
        • itemobject · MediaItemrequired
          21fields
          • idstringrequired
          • folderIdstringrequirednullable
            The folder holding the media; null at the root of the library.
          • filenamestringrequired
          • altTextstringrequirednullable
          • mediaTypestringrequired
            One of: image, video, gif, audio
          • mimeTypestringrequirednullable
          • sizenumberrequirednullable
            File size in bytes, when known.
          • widthnumberrequirednullable
            Width in pixels, when known (images at upload, videos once processed); null for audio.
          • heightnumberrequirednullable
            Height in pixels, when known (images at upload, videos once processed); null for audio.
          • aspectRationumberrequired
            Display ratio (width / height) from the dimensions, clamped to [0.45, 2.4]; 1 when unknown and for audio.
          • durationnumberrequirednullable
            Length in seconds, for videos, GIFs and audio once known (null for images).
          • waveformarray of numberrequirednullable
            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.
          • createdAtstring (date-time)required
          • formatsarray of objectrequired
            3fields in each item
            • idstringrequired
            • namestringrequired
            • colorstringrequired
          • usagestringrequired
            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
          • processingobjectrequired
            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.
            2fields
            • statestringrequired
              One of: processing, ready, failed
            • errorstringrequirednullable
          • previewUrlstringrequirednullable
            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.
          • mediaUrlstringrequired
            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.
          • playbackobjectrequirednullable
            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.
            1field
            • manifestUrlstringrequired
          • publishCopyobjectrequirednullable
            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.
            4fields
            • mimeTypestringrequired
            • widthnumberrequired
            • heightnumberrequired
            • sizenumberrequired
          • transcriptMatchobject · MediaTranscriptMatchoptional
            3fields
            • snippetstringrequired
            • startMsnumberrequired
            • sourcestringoptional
              One of: speech, scene
        • cropobject · MediaCropoptionalnullable
          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.
          7fields
          • versionnumberrequired
            Always 1
          • unitstringrequired
            Always percent
          • xnumberrequired
            from 0 to 1
          • ynumberrequired
            from 0 to 1
          • widthnumberrequired
            above 0 to 1
          • heightnumberrequired
            above 0 to 1
          • aspectRationumberoptional
            greater than 0
      • threadarray of objectrequired
        3fields in each item
        • idstringoptional
        • captionstringrequired
        • mediaarray of objectrequired
          4fields in each item
          • mediaIdstringrequired
          • altTextstringrequirednullable
          • itemobject · MediaItemrequired
            21fields
            • idstringrequired
            • folderIdstringrequirednullable
              The folder holding the media; null at the root of the library.
            • filenamestringrequired
            • altTextstringrequirednullable
            • mediaTypestringrequired
              One of: image, video, gif, audio
            • mimeTypestringrequirednullable
            • sizenumberrequirednullable
              File size in bytes, when known.
            • widthnumberrequirednullable
              Width in pixels, when known (images at upload, videos once processed); null for audio.
            • heightnumberrequirednullable
              Height in pixels, when known (images at upload, videos once processed); null for audio.
            • aspectRationumberrequired
              Display ratio (width / height) from the dimensions, clamped to [0.45, 2.4]; 1 when unknown and for audio.
            • durationnumberrequirednullable
              Length in seconds, for videos, GIFs and audio once known (null for images).
            • waveformarray of numberrequirednullable
              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.
            • createdAtstring (date-time)required
            • formatsarray of objectrequired
              3fields in each item
              • idstringrequired
              • namestringrequired
              • colorstringrequired
            • usagestringrequired
              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
            • processingobjectrequired
              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.
              2fields
              • statestringrequired
                One of: processing, ready, failed
              • errorstringrequirednullable
            • previewUrlstringrequirednullable
              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.
            • mediaUrlstringrequired
              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.
            • playbackobjectrequirednullable
              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.
              1field
              • manifestUrlstringrequired
            • publishCopyobjectrequirednullable
              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.
              4fields
              • mimeTypestringrequired
              • widthnumberrequired
              • heightnumberrequired
              • sizenumberrequired
            • transcriptMatchobject · MediaTranscriptMatchoptional
              3fields
              • snippetstringrequired
              • startMsnumberrequired
              • sourcestringoptional
                One of: speech, scene
          • cropobject · MediaCropoptionalnullable
            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.
            7fields
            • versionnumberrequired
              Always 1
            • unitstringrequired
              Always percent
            • xnumberrequired
              from 0 to 1
            • ynumberrequired
              from 0 to 1
            • widthnumberrequired
              above 0 to 1
            • heightnumberrequired
              above 0 to 1
            • aspectRationumberoptional
              greater than 0
      • publishedUrlstringoptionalnullable
      • publishedUrlKindstringoptionalnullable
        One of: post, studio
      • publishStatestringoptional
        One of: pending, published, failed
      • publishErrorstringoptionalnullable
    • updatedAtstring (date-time)required
      Last change. Send it back as baseUpdatedAt when saving so you never overwrite a change you haven't read.
    • pendingApprovalobject · EditorPostPendingApprovaloptionalnullable
      5fields
      • idstring (uuid)required
      • actionstringrequired
        One of: schedule, publish_now
      • scheduledAtstring (date-time)requirednullable
      • createdAtstring (date-time)required
      • urlstringrequired
    • scheduledViaobject · PostViaoptionalnullable
      2fields
      • kindstring · PublicConnectionKindrequired
        One of: personal_token, app, mcp
      • namestringrequired
    • beplanPromotionobject · EditorBeplanPromotionoptionalnullable
      4fields
      • userIdstringrequired
      • userNamestringrequired
      • disclosurestringrequired
      • mentionsBeplanbooleanrequired
    • approvalobject · PostApprovalSummaryrequired
      3fields
      • idstring (uuid)required
      • statusstringrequired
        One of: pending, approved, rejected, cancelled, expired
      • urlstringrequired
        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 answer { error: { code, message, details, requestId } } with status 400, 401, 402, 403, 404, 409, 413, 415, 422, 429, 500.

Error codes

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.
14 more that every operation can answer (tokens, scopes, limits)
400 VALIDATION_FAILED Some of the information sent is invalid.
401 APP_SUSPENDED This app has been suspended by Beplan and can't access your account.
401 TOKEN_EXPIRED This token has expired. Create a new one or sign in again.
401 TOKEN_REVOKED This token was revoked. Connect again to get a new one.
401 UNAUTHENTICATED Your session has expired. Please sign in again.
403 INSUFFICIENT_SCOPE This token doesn't have the access this needs. Connect again and allow it.
403 INTEGRATION_BLOCKED_BY_ORGANIZATION This organization doesn't allow this integration. Ask an admin of the organization.
403 INTEGRATION_PENDING_APPROVAL An admin of this organization needs to approve this connection first.
409 CONFLICT This changed in the meantime. Refresh and try again.
409 IDEMPOTENCY_KEY_REUSED This Idempotency-Key was already used for a different request. Send a new key.
413 PAYLOAD_TOO_LARGE This request is too large to be sent with an Idempotency-Key. Send a smaller body or no key.
415 UNSUPPORTED_MEDIA_TYPE This API reads JSON bodies only. Send the body as JSON with `Content-Type: application/json`.
429 RATE_LIMITED Too many requests. Wait a moment and try again.
500 INTERNAL_ERROR Something went wrong on our side. Please try again.

Example

Publish a finished post

curl
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)"
TypeScript
const response = await fetch("https://api.beplan.io/v1/organizations/ORGANIZATION_ID/workspaces/WORKSPACE_ID/posts/6f1c2a3b-4d5e-4f60-8a71-92b3c4d5e6f7/publish-now", {
  method: "POST",
  headers: {
    Authorization: "Bearer beplan_pat_…",
    "Idempotency-Key": crypto.randomUUID(),
  },
});
if (!response.ok) throw new Error((await response.json()).error.code);
const { data } = await response.json();
Python
import uuid

import requests

response = requests.post(
    "https://api.beplan.io/v1/organizations/ORGANIZATION_ID/workspaces/WORKSPACE_ID/posts/6f1c2a3b-4d5e-4f60-8a71-92b3c4d5e6f7/publish-now",
    headers={"Authorization": "Bearer beplan_pat_…", "Idempotency-Key": str(uuid.uuid4())},
)
response.raise_for_status()
data = response.json()["data"]
Response 200
{
  "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
Beta Acts outside Beplan posts.retryFailed
Scope
posts:publish
Role permission
Publish posts (post:publish)
Effect
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 Description
organizationId required path string 1–128 characters
workspaceId required path string (uuid)
postId required path string (uuid)

Responses

200 OK

object · PostResponse

  • dataobject · CalendarPostrequired
    13fields
    • idstringrequired
    • titlestringrequired
    • captionstringrequirednullable
    • statusstringrequired
      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 (may gain values): ready, scheduled, in_process, posted, failed
    • scheduledAtstring (date-time)requirednullable
    • ordernumberrequired
      Position in the ready queue: Quick Fill takes ready posts in this order.
    • formatsarray of objectrequired
      3fields in each item
      • idstringrequired
      • namestringrequired
      • colorstringrequired
    • platformsarray of objectrequired
      5fields in each item
      • platformstringrequired
      • statestringrequired
        One of: pending, published, failed
      • urlstringrequirednullable
      • errorstringrequirednullable
      • viewsnumberoptionalnullable
    • mediaarray of objectrequired
      2fields in each item
      • typestringrequired
        One of: image, video, gif
      • thumbnailUrlstringrequirednullable
    • mediaCountnumberrequired
    • linkWindowobject · PostLinkWindowoptional
      2fields
      • afterobject · LinkedPostRefrequirednullable
        3fields
        • idstringrequired
        • titlestringrequired
        • scheduledAtstring (date-time)requirednullable
      • beforeobject · LinkedPostRefrequirednullable
        3fields
        • idstringrequired
        • titlestringrequired
        • scheduledAtstring (date-time)requirednullable
    • pendingApprovalobject · PostCardPendingApprovaloptionalnullable
      The approval request the post waits on (an integration asked to schedule or publish it); null when none is pending.
      3fields
      • idstring (uuid)required
      • actionstringrequired
        schedule (at scheduledAt) or publish_now.
        One of: schedule, publish_now
      • scheduledAtstring (date-time)requirednullable
        The time asked for (schedule); null for publish_now.
    • scheduledViaobject · PostViaoptionalnullable
      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.
      2fields
      • kindstring · PublicConnectionKindrequired
        One of: personal_token, app, mcp
      • namestringrequired

202 Accepted

object · PostPendingApprovalResponse

  • dataobjectrequired
    14fields
    • idstringrequired
    • titlestringrequired
    • captionstringrequirednullable
    • statusstringrequired
      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 (may gain values): idea, in_progress, in_review, ready, scheduled, in_process, posted, failed
    • scheduledAtstring (date-time)requirednullable
    • ordernumberrequired
      Position in the ready queue: Quick Fill takes ready posts in this order.
    • formatsarray of objectrequired
      3fields in each item
      • idstringrequired
      • namestringrequired
      • colorstringrequired
    • platformsarray of objectrequired
      5fields in each item
      • platformstringrequired
      • statestringrequired
        One of: pending, published, failed
      • urlstringrequirednullable
      • errorstringrequirednullable
      • viewsnumberoptionalnullable
    • mediaarray of objectrequired
      2fields in each item
      • typestringrequired
        One of: image, video, gif
      • thumbnailUrlstringrequirednullable
    • mediaCountnumberrequired
    • linkWindowobject · PostLinkWindowoptional
      2fields
      • afterobject · LinkedPostRefrequirednullable
        3fields
        • idstringrequired
        • titlestringrequired
        • scheduledAtstring (date-time)requirednullable
      • beforeobject · LinkedPostRefrequirednullable
        3fields
        • idstringrequired
        • titlestringrequired
        • scheduledAtstring (date-time)requirednullable
    • pendingApprovalobject · PostCardPendingApprovaloptionalnullable
      The approval request the post waits on (an integration asked to schedule or publish it); null when none is pending.
      3fields
      • idstring (uuid)required
      • actionstringrequired
        schedule (at scheduledAt) or publish_now.
        One of: schedule, publish_now
      • scheduledAtstring (date-time)requirednullable
        The time asked for (schedule); null for publish_now.
    • scheduledViaobject · PostViaoptionalnullable
      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.
      2fields
      • kindstring · PublicConnectionKindrequired
        One of: personal_token, app, mcp
      • namestringrequired
    • approvalobject · PostApprovalSummaryrequired
      3fields
      • idstring (uuid)required
      • statusstringrequired
        One of: pending, approved, rejected, cancelled, expired
      • urlstringrequired
        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 answer { error: { code, message, details, requestId } } with status 400, 401, 403, 404, 409, 413, 415, 422, 429, 500.

Error codes

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.
14 more that every operation can answer (tokens, scopes, limits)
400 VALIDATION_FAILED Some of the information sent is invalid.
401 APP_SUSPENDED This app has been suspended by Beplan and can't access your account.
401 TOKEN_EXPIRED This token has expired. Create a new one or sign in again.
401 TOKEN_REVOKED This token was revoked. Connect again to get a new one.
401 UNAUTHENTICATED Your session has expired. Please sign in again.
403 INSUFFICIENT_SCOPE This token doesn't have the access this needs. Connect again and allow it.
403 INTEGRATION_BLOCKED_BY_ORGANIZATION This organization doesn't allow this integration. Ask an admin of the organization.
403 INTEGRATION_PENDING_APPROVAL An admin of this organization needs to approve this connection first.
409 CONFLICT This changed in the meantime. Refresh and try again.
409 IDEMPOTENCY_KEY_REUSED This Idempotency-Key was already used for a different request. Send a new key.
413 PAYLOAD_TOO_LARGE This request is too large to be sent with an Idempotency-Key. Send a smaller body or no key.
415 UNSUPPORTED_MEDIA_TYPE This API reads JSON bodies only. Send the body as JSON with `Content-Type: application/json`.
429 RATE_LIMITED Too many requests. Wait a moment and try again.
500 INTERNAL_ERROR Something went wrong on our side. Please try again.

Example

Retry where it failed

curl
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)"
TypeScript
const response = await fetch("https://api.beplan.io/v1/organizations/ORGANIZATION_ID/workspaces/WORKSPACE_ID/posts/6f1c2a3b-4d5e-4f60-8a71-92b3c4d5e6f7/retry-failed", {
  method: "POST",
  headers: {
    Authorization: "Bearer beplan_pat_…",
    "Idempotency-Key": crypto.randomUUID(),
  },
});
if (!response.ok) throw new Error((await response.json()).error.code);
const { data } = await response.json();
Python
import uuid

import requests

response = requests.post(
    "https://api.beplan.io/v1/organizations/ORGANIZATION_ID/workspaces/WORKSPACE_ID/posts/6f1c2a3b-4d5e-4f60-8a71-92b3c4d5e6f7/retry-failed",
    headers={"Authorization": "Bearer beplan_pat_…", "Idempotency-Key": str(uuid.uuid4())},
)
response.raise_for_status()
data = response.json()["data"]
Response 200
{
  "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
Beta Acts outside Beplan posts.schedule
Scope
posts:publish
Role permission
Schedule posts (post:schedule)
Effect
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 Description
organizationId required path string 1–128 characters
workspaceId required path string (uuid)
postId required path string (uuid)

Request body JSON, required

object · SchedulePostBody

  • scheduledAtstring (date-time)required
    When to publish, ISO 8601 UTC; must be in the future.
  • methodstringoptional
    Beplan's own app only (product analytics). Integrations omit it.
    One of: calendar_drag, calendar_slot, quick_fill, editor

Responses

200 OK

object · PostResponse

  • dataobject · CalendarPostrequired
    13fields
    • idstringrequired
    • titlestringrequired
    • captionstringrequirednullable
    • statusstringrequired
      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 (may gain values): ready, scheduled, in_process, posted, failed
    • scheduledAtstring (date-time)requirednullable
    • ordernumberrequired
      Position in the ready queue: Quick Fill takes ready posts in this order.
    • formatsarray of objectrequired
      3fields in each item
      • idstringrequired
      • namestringrequired
      • colorstringrequired
    • platformsarray of objectrequired
      5fields in each item
      • platformstringrequired
      • statestringrequired
        One of: pending, published, failed
      • urlstringrequirednullable
      • errorstringrequirednullable
      • viewsnumberoptionalnullable
    • mediaarray of objectrequired
      2fields in each item
      • typestringrequired
        One of: image, video, gif
      • thumbnailUrlstringrequirednullable
    • mediaCountnumberrequired
    • linkWindowobject · PostLinkWindowoptional
      2fields
      • afterobject · LinkedPostRefrequirednullable
        3fields
        • idstringrequired
        • titlestringrequired
        • scheduledAtstring (date-time)requirednullable
      • beforeobject · LinkedPostRefrequirednullable
        3fields
        • idstringrequired
        • titlestringrequired
        • scheduledAtstring (date-time)requirednullable
    • pendingApprovalobject · PostCardPendingApprovaloptionalnullable
      The approval request the post waits on (an integration asked to schedule or publish it); null when none is pending.
      3fields
      • idstring (uuid)required
      • actionstringrequired
        schedule (at scheduledAt) or publish_now.
        One of: schedule, publish_now
      • scheduledAtstring (date-time)requirednullable
        The time asked for (schedule); null for publish_now.
    • scheduledViaobject · PostViaoptionalnullable
      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.
      2fields
      • kindstring · PublicConnectionKindrequired
        One of: personal_token, app, mcp
      • namestringrequired

202 Accepted

object · PostPendingApprovalResponse

  • dataobjectrequired
    14fields
    • idstringrequired
    • titlestringrequired
    • captionstringrequirednullable
    • statusstringrequired
      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 (may gain values): idea, in_progress, in_review, ready, scheduled, in_process, posted, failed
    • scheduledAtstring (date-time)requirednullable
    • ordernumberrequired
      Position in the ready queue: Quick Fill takes ready posts in this order.
    • formatsarray of objectrequired
      3fields in each item
      • idstringrequired
      • namestringrequired
      • colorstringrequired
    • platformsarray of objectrequired
      5fields in each item
      • platformstringrequired
      • statestringrequired
        One of: pending, published, failed
      • urlstringrequirednullable
      • errorstringrequirednullable
      • viewsnumberoptionalnullable
    • mediaarray of objectrequired
      2fields in each item
      • typestringrequired
        One of: image, video, gif
      • thumbnailUrlstringrequirednullable
    • mediaCountnumberrequired
    • linkWindowobject · PostLinkWindowoptional
      2fields
      • afterobject · LinkedPostRefrequirednullable
        3fields
        • idstringrequired
        • titlestringrequired
        • scheduledAtstring (date-time)requirednullable
      • beforeobject · LinkedPostRefrequirednullable
        3fields
        • idstringrequired
        • titlestringrequired
        • scheduledAtstring (date-time)requirednullable
    • pendingApprovalobject · PostCardPendingApprovaloptionalnullable
      The approval request the post waits on (an integration asked to schedule or publish it); null when none is pending.
      3fields
      • idstring (uuid)required
      • actionstringrequired
        schedule (at scheduledAt) or publish_now.
        One of: schedule, publish_now
      • scheduledAtstring (date-time)requirednullable
        The time asked for (schedule); null for publish_now.
    • scheduledViaobject · PostViaoptionalnullable
      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.
      2fields
      • kindstring · PublicConnectionKindrequired
        One of: personal_token, app, mcp
      • namestringrequired
    • approvalobject · PostApprovalSummaryrequired
      3fields
      • idstring (uuid)required
      • statusstringrequired
        One of: pending, approved, rejected, cancelled, expired
      • urlstringrequired
        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 answer { error: { code, message, details, requestId } } with status 400, 401, 402, 403, 404, 409, 413, 415, 422, 429, 500.

Error codes

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.
13 more that every operation can answer (tokens, scopes, limits)
401 APP_SUSPENDED This app has been suspended by Beplan and can't access your account.
401 TOKEN_EXPIRED This token has expired. Create a new one or sign in again.
401 TOKEN_REVOKED This token was revoked. Connect again to get a new one.
401 UNAUTHENTICATED Your session has expired. Please sign in again.
403 INSUFFICIENT_SCOPE This token doesn't have the access this needs. Connect again and allow it.
403 INTEGRATION_BLOCKED_BY_ORGANIZATION This organization doesn't allow this integration. Ask an admin of the organization.
403 INTEGRATION_PENDING_APPROVAL An admin of this organization needs to approve this connection first.
409 CONFLICT This changed in the meantime. Refresh and try again.
409 IDEMPOTENCY_KEY_REUSED This Idempotency-Key was already used for a different request. Send a new key.
413 PAYLOAD_TOO_LARGE This request is too large to be sent with an Idempotency-Key. Send a smaller body or no key.
415 UNSUPPORTED_MEDIA_TYPE This API reads JSON bodies only. Send the body as JSON with `Content-Type: application/json`.
429 RATE_LIMITED Too many requests. Wait a moment and try again.
500 INTERNAL_ERROR Something went wrong on our side. Please try again.

Examples

Thursday at 14:00 UTC

curl
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"
}'
TypeScript
const response = await fetch("https://api.beplan.io/v1/organizations/ORGANIZATION_ID/workspaces/WORKSPACE_ID/posts/6f1c2a3b-4d5e-4f60-8a71-92b3c4d5e6f7/schedule", {
  method: "POST",
  headers: {
    Authorization: "Bearer beplan_pat_…",
    "Idempotency-Key": crypto.randomUUID(),
    "Content-Type": "application/json",
  },
  body: JSON.stringify({
    "scheduledAt": "2026-12-03T14:00:00.000Z"
  }),
});
if (!response.ok) throw new Error((await response.json()).error.code);
const { data } = await response.json();
Python
import uuid

import requests

response = requests.post(
    "https://api.beplan.io/v1/organizations/ORGANIZATION_ID/workspaces/WORKSPACE_ID/posts/6f1c2a3b-4d5e-4f60-8a71-92b3c4d5e6f7/schedule",
    headers={"Authorization": "Bearer beplan_pat_…", "Idempotency-Key": str(uuid.uuid4())},
    json={
        "scheduledAt": "2026-12-03T14:00:00.000Z",
    },
)
response.raise_for_status()
data = response.json()["data"]
Response 200
{
  "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
  }
}

The organization requires approval: the post waits for a person

curl
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"
}'
TypeScript
const response = await fetch("https://api.beplan.io/v1/organizations/ORGANIZATION_ID/workspaces/WORKSPACE_ID/posts/6f1c2a3b-4d5e-4f60-8a71-92b3c4d5e6f7/schedule", {
  method: "POST",
  headers: {
    Authorization: "Bearer beplan_pat_…",
    "Idempotency-Key": crypto.randomUUID(),
    "Content-Type": "application/json",
  },
  body: JSON.stringify({
    "scheduledAt": "2026-12-03T14:00:00.000Z"
  }),
});
if (!response.ok) throw new Error((await response.json()).error.code);
const { data } = await response.json();
Python
import uuid

import requests

response = requests.post(
    "https://api.beplan.io/v1/organizations/ORGANIZATION_ID/workspaces/WORKSPACE_ID/posts/6f1c2a3b-4d5e-4f60-8a71-92b3c4d5e6f7/schedule",
    headers={"Authorization": "Bearer beplan_pat_…", "Idempotency-Key": str(uuid.uuid4())},
    json={
        "scheduledAt": "2026-12-03T14:00:00.000Z",
    },
)
response.raise_for_status()
data = response.json()["data"]
Response 202
{
  "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
Beta Acts outside Beplan posts.scheduleNextSlot
Scope
posts:publish
Role permission
Schedule posts (post:schedule)
Effect
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 Description
organizationId required path string 1–128 characters
workspaceId required path string (uuid)
postId required path string (uuid)

Request body JSON, optional

  • afterstring (date-time)optional
    Look for the first free slot after this instant (ISO 8601 UTC) instead of after now.

Responses

200 OK

object · PostResponse

  • dataobject · CalendarPostrequired
    13fields
    • idstringrequired
    • titlestringrequired
    • captionstringrequirednullable
    • statusstringrequired
      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 (may gain values): ready, scheduled, in_process, posted, failed
    • scheduledAtstring (date-time)requirednullable
    • ordernumberrequired
      Position in the ready queue: Quick Fill takes ready posts in this order.
    • formatsarray of objectrequired
      3fields in each item
      • idstringrequired
      • namestringrequired
      • colorstringrequired
    • platformsarray of objectrequired
      5fields in each item
      • platformstringrequired
      • statestringrequired
        One of: pending, published, failed
      • urlstringrequirednullable
      • errorstringrequirednullable
      • viewsnumberoptionalnullable
    • mediaarray of objectrequired
      2fields in each item
      • typestringrequired
        One of: image, video, gif
      • thumbnailUrlstringrequirednullable
    • mediaCountnumberrequired
    • linkWindowobject · PostLinkWindowoptional
      2fields
      • afterobject · LinkedPostRefrequirednullable
        3fields
        • idstringrequired
        • titlestringrequired
        • scheduledAtstring (date-time)requirednullable
      • beforeobject · LinkedPostRefrequirednullable
        3fields
        • idstringrequired
        • titlestringrequired
        • scheduledAtstring (date-time)requirednullable
    • pendingApprovalobject · PostCardPendingApprovaloptionalnullable
      The approval request the post waits on (an integration asked to schedule or publish it); null when none is pending.
      3fields
      • idstring (uuid)required
      • actionstringrequired
        schedule (at scheduledAt) or publish_now.
        One of: schedule, publish_now
      • scheduledAtstring (date-time)requirednullable
        The time asked for (schedule); null for publish_now.
    • scheduledViaobject · PostViaoptionalnullable
      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.
      2fields
      • kindstring · PublicConnectionKindrequired
        One of: personal_token, app, mcp
      • namestringrequired

202 Accepted

object · PostNextSlotPendingApprovalResponse

  • dataobjectrequired
    15fields
    • idstringrequired
    • titlestringrequired
    • captionstringrequirednullable
    • statusstringrequired
      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 (may gain values): idea, in_progress, in_review, ready, scheduled, in_process, posted, failed
    • scheduledAtstring (date-time)requirednullable
    • ordernumberrequired
      Position in the ready queue: Quick Fill takes ready posts in this order.
    • formatsarray of objectrequired
      3fields in each item
      • idstringrequired
      • namestringrequired
      • colorstringrequired
    • platformsarray of objectrequired
      5fields in each item
      • platformstringrequired
      • statestringrequired
        One of: pending, published, failed
      • urlstringrequirednullable
      • errorstringrequirednullable
      • viewsnumberoptionalnullable
    • mediaarray of objectrequired
      2fields in each item
      • typestringrequired
        One of: image, video, gif
      • thumbnailUrlstringrequirednullable
    • mediaCountnumberrequired
    • linkWindowobject · PostLinkWindowoptional
      2fields
      • afterobject · LinkedPostRefrequirednullable
        3fields
        • idstringrequired
        • titlestringrequired
        • scheduledAtstring (date-time)requirednullable
      • beforeobject · LinkedPostRefrequirednullable
        3fields
        • idstringrequired
        • titlestringrequired
        • scheduledAtstring (date-time)requirednullable
    • pendingApprovalobject · PostCardPendingApprovaloptionalnullable
      The approval request the post waits on (an integration asked to schedule or publish it); null when none is pending.
      3fields
      • idstring (uuid)required
      • actionstringrequired
        schedule (at scheduledAt) or publish_now.
        One of: schedule, publish_now
      • scheduledAtstring (date-time)requirednullable
        The time asked for (schedule); null for publish_now.
    • scheduledViaobject · PostViaoptionalnullable
      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.
      2fields
      • kindstring · PublicConnectionKindrequired
        One of: personal_token, app, mcp
      • namestringrequired
    • approvalobject · PostApprovalSummaryrequired
      3fields
      • idstring (uuid)required
      • statusstringrequired
        One of: pending, approved, rejected, cancelled, expired
      • urlstringrequired
        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.
    • slotAtstring (date-time)required
      The posting-slot time picked (ISO 8601 UTC): the post is scheduled there once a person approves.

Errors answer { error: { code, message, details, requestId } } with status 400, 401, 402, 403, 404, 409, 413, 415, 422, 429, 500.

Error codes

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.
12 more that every operation can answer (tokens, scopes, limits)
401 APP_SUSPENDED This app has been suspended by Beplan and can't access your account.
401 TOKEN_EXPIRED This token has expired. Create a new one or sign in again.
401 TOKEN_REVOKED This token was revoked. Connect again to get a new one.
401 UNAUTHENTICATED Your session has expired. Please sign in again.
403 INSUFFICIENT_SCOPE This token doesn't have the access this needs. Connect again and allow it.
403 INTEGRATION_BLOCKED_BY_ORGANIZATION This organization doesn't allow this integration. Ask an admin of the organization.
403 INTEGRATION_PENDING_APPROVAL An admin of this organization needs to approve this connection first.
409 IDEMPOTENCY_KEY_REUSED This Idempotency-Key was already used for a different request. Send a new key.
413 PAYLOAD_TOO_LARGE This request is too large to be sent with an Idempotency-Key. Send a smaller body or no key.
415 UNSUPPORTED_MEDIA_TYPE This API reads JSON bodies only. Send the body as JSON with `Content-Type: application/json`.
429 RATE_LIMITED Too many requests. Wait a moment and try again.
500 INTERNAL_ERROR Something went wrong on our side. Please try again.

Examples

The next free slot

curl
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)"
TypeScript
const response = await fetch("https://api.beplan.io/v1/organizations/ORGANIZATION_ID/workspaces/WORKSPACE_ID/posts/6f1c2a3b-4d5e-4f60-8a71-92b3c4d5e6f7/schedule-next-slot", {
  method: "POST",
  headers: {
    Authorization: "Bearer beplan_pat_…",
    "Idempotency-Key": crypto.randomUUID(),
  },
});
if (!response.ok) throw new Error((await response.json()).error.code);
const { data } = await response.json();
Python
import uuid

import requests

response = requests.post(
    "https://api.beplan.io/v1/organizations/ORGANIZATION_ID/workspaces/WORKSPACE_ID/posts/6f1c2a3b-4d5e-4f60-8a71-92b3c4d5e6f7/schedule-next-slot",
    headers={"Authorization": "Bearer beplan_pat_…", "Idempotency-Key": str(uuid.uuid4())},
)
response.raise_for_status()
data = response.json()["data"]
Response 200
{
  "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
  }
}

The first free slot after the 1st of December

curl
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"
}'
TypeScript
const response = await fetch("https://api.beplan.io/v1/organizations/ORGANIZATION_ID/workspaces/WORKSPACE_ID/posts/6f1c2a3b-4d5e-4f60-8a71-92b3c4d5e6f7/schedule-next-slot", {
  method: "POST",
  headers: {
    Authorization: "Bearer beplan_pat_…",
    "Idempotency-Key": crypto.randomUUID(),
    "Content-Type": "application/json",
  },
  body: JSON.stringify({
    "after": "2026-12-01T00:00:00.000Z"
  }),
});
if (!response.ok) throw new Error((await response.json()).error.code);
const { data } = await response.json();
Python
import uuid

import requests

response = requests.post(
    "https://api.beplan.io/v1/organizations/ORGANIZATION_ID/workspaces/WORKSPACE_ID/posts/6f1c2a3b-4d5e-4f60-8a71-92b3c4d5e6f7/schedule-next-slot",
    headers={"Authorization": "Bearer beplan_pat_…", "Idempotency-Key": str(uuid.uuid4())},
    json={
        "after": "2026-12-01T00:00:00.000Z",
    },
)
response.raise_for_status()
data = response.json()["data"]
Response 200
{
  "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
  }
}

The organization requires approval: the post waits for a person

curl
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)"
TypeScript
const response = await fetch("https://api.beplan.io/v1/organizations/ORGANIZATION_ID/workspaces/WORKSPACE_ID/posts/6f1c2a3b-4d5e-4f60-8a71-92b3c4d5e6f7/schedule-next-slot", {
  method: "POST",
  headers: {
    Authorization: "Bearer beplan_pat_…",
    "Idempotency-Key": crypto.randomUUID(),
  },
});
if (!response.ok) throw new Error((await response.json()).error.code);
const { data } = await response.json();
Python
import uuid

import requests

response = requests.post(
    "https://api.beplan.io/v1/organizations/ORGANIZATION_ID/workspaces/WORKSPACE_ID/posts/6f1c2a3b-4d5e-4f60-8a71-92b3c4d5e6f7/schedule-next-slot",
    headers={"Authorization": "Bearer beplan_pat_…", "Idempotency-Key": str(uuid.uuid4())},
)
response.raise_for_status()
data = response.json()["data"]
Response 202
{
  "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
Beta Changes data posts.unschedule
Scope
posts:publish
Role permission
Unschedule posts (post:unschedule)
Effect
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 Description
organizationId required path string 1–128 characters
workspaceId required path string (uuid)
postId required path string (uuid)

Request body JSON, optional

  • withLinkedPostsbooleanoptional
    true: the scheduled posts that link to this one are unscheduled with it.

Responses

200 OK

object · PostResponse

  • dataobject · CalendarPostrequired
    13fields
    • idstringrequired
    • titlestringrequired
    • captionstringrequirednullable
    • statusstringrequired
      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 (may gain values): ready, scheduled, in_process, posted, failed
    • scheduledAtstring (date-time)requirednullable
    • ordernumberrequired
      Position in the ready queue: Quick Fill takes ready posts in this order.
    • formatsarray of objectrequired
      3fields in each item
      • idstringrequired
      • namestringrequired
      • colorstringrequired
    • platformsarray of objectrequired
      5fields in each item
      • platformstringrequired
      • statestringrequired
        One of: pending, published, failed
      • urlstringrequirednullable
      • errorstringrequirednullable
      • viewsnumberoptionalnullable
    • mediaarray of objectrequired
      2fields in each item
      • typestringrequired
        One of: image, video, gif
      • thumbnailUrlstringrequirednullable
    • mediaCountnumberrequired
    • linkWindowobject · PostLinkWindowoptional
      2fields
      • afterobject · LinkedPostRefrequirednullable
        3fields
        • idstringrequired
        • titlestringrequired
        • scheduledAtstring (date-time)requirednullable
      • beforeobject · LinkedPostRefrequirednullable
        3fields
        • idstringrequired
        • titlestringrequired
        • scheduledAtstring (date-time)requirednullable
    • pendingApprovalobject · PostCardPendingApprovaloptionalnullable
      The approval request the post waits on (an integration asked to schedule or publish it); null when none is pending.
      3fields
      • idstring (uuid)required
      • actionstringrequired
        schedule (at scheduledAt) or publish_now.
        One of: schedule, publish_now
      • scheduledAtstring (date-time)requirednullable
        The time asked for (schedule); null for publish_now.
    • scheduledViaobject · PostViaoptionalnullable
      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.
      2fields
      • kindstring · PublicConnectionKindrequired
        One of: personal_token, app, mcp
      • namestringrequired

Errors answer { error: { code, message, details, requestId } } with status 400, 401, 403, 404, 409, 413, 415, 422, 429, 500.

Error codes

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.
13 more that every operation can answer (tokens, scopes, limits)
401 APP_SUSPENDED This app has been suspended by Beplan and can't access your account.
401 TOKEN_EXPIRED This token has expired. Create a new one or sign in again.
401 TOKEN_REVOKED This token was revoked. Connect again to get a new one.
401 UNAUTHENTICATED Your session has expired. Please sign in again.
403 INSUFFICIENT_SCOPE This token doesn't have the access this needs. Connect again and allow it.
403 INTEGRATION_BLOCKED_BY_ORGANIZATION This organization doesn't allow this integration. Ask an admin of the organization.
403 INTEGRATION_PENDING_APPROVAL An admin of this organization needs to approve this connection first.
409 CONFLICT This changed in the meantime. Refresh and try again.
409 IDEMPOTENCY_KEY_REUSED This Idempotency-Key was already used for a different request. Send a new key.
413 PAYLOAD_TOO_LARGE This request is too large to be sent with an Idempotency-Key. Send a smaller body or no key.
415 UNSUPPORTED_MEDIA_TYPE This API reads JSON bodies only. Send the body as JSON with `Content-Type: application/json`.
429 RATE_LIMITED Too many requests. Wait a moment and try again.
500 INTERNAL_ERROR Something went wrong on our side. Please try again.

Example

Back to the ready queue

curl
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
}'
TypeScript
const response = await fetch("https://api.beplan.io/v1/organizations/ORGANIZATION_ID/workspaces/WORKSPACE_ID/posts/6f1c2a3b-4d5e-4f60-8a71-92b3c4d5e6f7/unschedule", {
  method: "POST",
  headers: {
    Authorization: "Bearer beplan_pat_…",
    "Idempotency-Key": crypto.randomUUID(),
    "Content-Type": "application/json",
  },
  body: JSON.stringify({
    "withLinkedPosts": false
  }),
});
if (!response.ok) throw new Error((await response.json()).error.code);
const { data } = await response.json();
Python
import uuid

import requests

response = requests.post(
    "https://api.beplan.io/v1/organizations/ORGANIZATION_ID/workspaces/WORKSPACE_ID/posts/6f1c2a3b-4d5e-4f60-8a71-92b3c4d5e6f7/unschedule",
    headers={"Authorization": "Bearer beplan_pat_…", "Idempotency-Key": str(uuid.uuid4())},
    json={
        "withLinkedPosts": False,
    },
)
response.raise_for_status()
data = response.json()["data"]
Response 200
{
  "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
  }
}