API reference
Posts
Base URL https://api.beplan.io/v1. Authentication, envelopes, pagination, idempotency and rate limits:
conventions. OpenAPI document: openapi.json.
All 21 Posts operations
- GET List my approval requests
- POST Create a post
- GET Find posts a caption can link to
- GET List ready posts
- GET Get a post
- PATCH Edit a post
- DELETE Delete a post
- GET Get a post's approval request
- DELETE Withdraw a post's approval request
- POST Approve a post in review
- POST Duplicate a post
- GET Check a post's links before scheduling
- POST Create a preview link
- DELETE Revoke a preview link
- POST Publish a post now
- POST Send a post in review back for changes
- POST Retry a failed post
- POST Schedule a post
- POST Schedule a post to its next free slot
- POST Send a post to review
- POST Unschedule a post
Create a post
/organizations/{organizationId}/workspaces/{workspaceId}/posts posts.create - Scope
- posts:write
- Role permission
- Create posts (
post:create) - Effect
- Changes data in Beplan.
- Idempotency
- Send an
Idempotency-Keyto 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)optionalOptional precondition: the post'supdatedAtyou last read. When the post changed since, nothing is written (409 POST_CHANGED_ELSEWHERE): read it again and retry. Omitted, the save overwrites.liveEpochintegeroptionalBeplan's own editor only (live co-editing). Integrations omit it.at least 0titlestringoptionalat most 255 characterscaptionstringoptionalThe caption every account uses unless it has its owncustomCaption. Captions (the post's, an account'scustomCaptionand 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;thisis the post being written), becoming its public URL; the post then waits for that publication and can only be scheduled after it (find targets withposts.linkTargets.list, check withposts.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 charactershashtagsstringoptionalat most 5000 charactersformatIdsarray of string (uuid)optionalThe post's formats (the workspace's content types), in order; replaces the list.at most 50 itemsignoreOpenFormatSlotsbooleanoptionalmediaarray of objectoptionalThe post's media, in publishing order; replaces the list. Each must be in the workspace's media library.at most 35 items3fields in each item
mediaIdstring (uuid)requiredaltTextstringoptionalnullableat most 1500 characterscropobject · MediaCropoptionalnullableThe 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 + widthandy + heightat most 1.7fields
versionnumberrequiredAlways1unitstringrequiredAlwayspercentxnumberrequiredfrom 0 to 1ynumberrequiredfrom 0 to 1widthnumberrequiredabove 0 to 1heightnumberrequiredabove 0 to 1aspectRationumberoptionalgreater than 0
platformsarray of objectoptionalWhere the post goes, one entry per account to change (accounts not listed are left as they are).isActive: falsekeeps the account's settings without publishing there.at most 30 items7fields in each item
socialAccountIdstring (uuid)requiredA connected account of the workspace (GET …/social-accounts).isActivebooleanrequiredtypestringoptionalOne of:post,storycustomCaptionstringoptionalnullableat most 63206 charactersadditionalParamsmap of anyoptionalThe 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 with400 VALIDATION_FAILED.mediaarray of objectoptionalnullableat most 35 items3fields in each item
mediaIdstring (uuid)requiredaltTextstringoptionalnullableat most 1500 characterscropobject · MediaCropoptionalnullableThe 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 + widthandy + heightat most 1.7fields
versionnumberrequiredAlways1unitstringrequiredAlwayspercentxnumberrequiredfrom 0 to 1ynumberrequiredfrom 0 to 1widthnumberrequiredabove 0 to 1heightnumberrequiredabove 0 to 1aspectRationumberoptionalgreater than 0
threadarray of objectoptionalat most 24 items3fields in each item
idstring (uuid)optionalcaptionstringrequiredat most 63206 charactersmediaarray of objectrequiredat most 35 items3fields in each item
mediaIdstring (uuid)requiredaltTextstringoptionalnullableat most 1500 characterscropobject · MediaCropoptionalnullableThe 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 + widthandy + heightat most 1.7fields
versionnumberrequiredAlways1unitstringrequiredAlwayspercentxnumberrequiredfrom 0 to 1ynumberrequiredfrom 0 to 1widthnumberrequiredabove 0 to 1heightnumberrequiredabove 0 to 1aspectRationumberoptionalgreater than 0
Responses
201 Created
object · EditorPostResponse
dataobject · EditorPostrequired14fields
idstringrequiredtitlestringrequiredcaptionstringrequiredhashtagsstringrequiredformatIdsarray of stringrequiredignoreOpenFormatSlotsbooleanrequiredstatusstringrequiredWhere the post stands:idea,in_progress,in_review(drafts),ready(finished, in the ready queue, not scheduled),scheduled(waits forscheduledAt),in_process(being published),posted(published),failed(failed on at least one account: seeplatforms[].publishState). A post waiting for a person's approval keeps its status and haspendingApproval.One of:idea,in_progress,in_review,ready,scheduled,in_process,posted,failedscheduledAtstring (date-time)requirednullableWhen it goes out (or went out), ISO 8601 UTC.mediaarray of objectrequired4fields in each item
mediaIdstringrequiredaltTextstringrequirednullableitemobject · MediaItemrequired21fields
idstringrequiredfolderIdstringrequirednullableThe folder holding the media;nullat the root of the library.filenamestringrequiredaltTextstringrequirednullablemediaTypestringrequiredOne of:image,video,gif,audiomimeTypestringrequirednullablesizenumberrequirednullableFile size in bytes, when known.widthnumberrequirednullableWidth in pixels, when known (images at upload, videos once processed);nullfor audio.heightnumberrequirednullableHeight in pixels, when known (images at upload, videos once processed);nullfor audio.aspectRationumberrequiredDisplay ratio (width / height) from the dimensions, clamped to [0.45, 2.4];1when unknown and for audio.durationnumberrequirednullableLength in seconds, for videos, GIFs and audio once known (nullfor images).waveformarray of numberrequirednullableAudio only: up to 1000 peaks (integers 0–100, 100 = full scale) spread evenly overduration.nullwhile processing, when processing failed, and for every other type.createdAtstring (date-time)requiredformatsarray of objectrequired3fields in each item
idstringrequirednamestringrequiredcolorstringrequired
usagestringrequiredWhere the media is used:unused;usedin a post still to publish;publishedonly in posts already published (or failed).One of:unused,used,publishedprocessingobjectrequiredUpload and processing state:processing(videos and audio are being processed),ready, orfailedwith a readableerror. A media can be put in a post while processing.2fields
statestringrequiredOne of:processing,ready,failederrorstringrequirednullable
previewUrlstringrequirednullableSigned URL (valid about one hour) of the image itself or of the video's poster;nullwhile there is none yet, and always for audio.mediaUrlstringrequiredSigned URL (valid about one hour) of the original file, served inline. To save the file under its name, use the media'sdownload-url.playbackobjectrequirednullableHLS playback of a processed video (manifestUrl, loaded by the Beplan app's player with its session), elsenull. Alwaysnullthrough the public API (/v1) and MCP: usemediaUrl, or the media'sdownload-url, to fetch the file.1field
manifestUrlstringrequired
publishCopyobjectrequirednullableThe 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.nullwhen every platform takes the original, or while it is being made.4fields
mimeTypestringrequiredwidthnumberrequiredheightnumberrequiredsizenumberrequired
transcriptMatchobject · MediaTranscriptMatchoptional3fields
snippetstringrequiredstartMsnumberrequiredsourcestringoptionalOne of:speech,scene
cropobject · MediaCropoptionalnullableThe 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 + widthandy + heightat most 1.7fields
versionnumberrequiredAlways1unitstringrequiredAlwayspercentxnumberrequiredfrom 0 to 1ynumberrequiredfrom 0 to 1widthnumberrequiredabove 0 to 1heightnumberrequiredabove 0 to 1aspectRationumberoptionalgreater than 0
platformsarray of objectrequired12fields in each item
socialAccountIdstringrequiredplatformstring · SocialPlatformrequiredOne of (may gain values):x,instagram,facebook,tiktok,linkedin,threads,pinterest,youtube,discord,blueskyisActivebooleanrequiredtypestringrequiredOne of:post,storycustomCaptionstringrequirednullableadditionalParamsmap of anyrequiredThe 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 with400 VALIDATION_FAILED.mediaarray of objectrequirednullable4fields in each item
mediaIdstringrequiredaltTextstringrequirednullableitemobject · MediaItemrequired21fields
idstringrequiredfolderIdstringrequirednullableThe folder holding the media;nullat the root of the library.filenamestringrequiredaltTextstringrequirednullablemediaTypestringrequiredOne of:image,video,gif,audiomimeTypestringrequirednullablesizenumberrequirednullableFile size in bytes, when known.widthnumberrequirednullableWidth in pixels, when known (images at upload, videos once processed);nullfor audio.heightnumberrequirednullableHeight in pixels, when known (images at upload, videos once processed);nullfor audio.aspectRationumberrequiredDisplay ratio (width / height) from the dimensions, clamped to [0.45, 2.4];1when unknown and for audio.durationnumberrequirednullableLength in seconds, for videos, GIFs and audio once known (nullfor images).waveformarray of numberrequirednullableAudio only: up to 1000 peaks (integers 0–100, 100 = full scale) spread evenly overduration.nullwhile processing, when processing failed, and for every other type.createdAtstring (date-time)requiredformatsarray of objectrequired3fields in each item
idstringrequirednamestringrequiredcolorstringrequired
usagestringrequiredWhere the media is used:unused;usedin a post still to publish;publishedonly in posts already published (or failed).One of:unused,used,publishedprocessingobjectrequiredUpload and processing state:processing(videos and audio are being processed),ready, orfailedwith a readableerror. A media can be put in a post while processing.2fields
statestringrequiredOne of:processing,ready,failederrorstringrequirednullable
previewUrlstringrequirednullableSigned URL (valid about one hour) of the image itself or of the video's poster;nullwhile there is none yet, and always for audio.mediaUrlstringrequiredSigned URL (valid about one hour) of the original file, served inline. To save the file under its name, use the media'sdownload-url.playbackobjectrequirednullableHLS playback of a processed video (manifestUrl, loaded by the Beplan app's player with its session), elsenull. Alwaysnullthrough the public API (/v1) and MCP: usemediaUrl, or the media'sdownload-url, to fetch the file.1field
manifestUrlstringrequired
publishCopyobjectrequirednullableThe 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.nullwhen every platform takes the original, or while it is being made.4fields
mimeTypestringrequiredwidthnumberrequiredheightnumberrequiredsizenumberrequired
transcriptMatchobject · MediaTranscriptMatchoptional3fields
snippetstringrequiredstartMsnumberrequiredsourcestringoptionalOne of:speech,scene
cropobject · MediaCropoptionalnullableThe 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 + widthandy + heightat most 1.7fields
versionnumberrequiredAlways1unitstringrequiredAlwayspercentxnumberrequiredfrom 0 to 1ynumberrequiredfrom 0 to 1widthnumberrequiredabove 0 to 1heightnumberrequiredabove 0 to 1aspectRationumberoptionalgreater than 0
threadarray of objectrequired3fields in each item
idstringoptionalcaptionstringrequiredmediaarray of objectrequired4fields in each item
mediaIdstringrequiredaltTextstringrequirednullableitemobject · MediaItemrequired21fields
idstringrequiredfolderIdstringrequirednullableThe folder holding the media;nullat the root of the library.filenamestringrequiredaltTextstringrequirednullablemediaTypestringrequiredOne of:image,video,gif,audiomimeTypestringrequirednullablesizenumberrequirednullableFile size in bytes, when known.widthnumberrequirednullableWidth in pixels, when known (images at upload, videos once processed);nullfor audio.heightnumberrequirednullableHeight in pixels, when known (images at upload, videos once processed);nullfor audio.aspectRationumberrequiredDisplay ratio (width / height) from the dimensions, clamped to [0.45, 2.4];1when unknown and for audio.durationnumberrequirednullableLength in seconds, for videos, GIFs and audio once known (nullfor images).waveformarray of numberrequirednullableAudio only: up to 1000 peaks (integers 0–100, 100 = full scale) spread evenly overduration.nullwhile processing, when processing failed, and for every other type.createdAtstring (date-time)requiredformatsarray of objectrequired3fields in each item
idstringrequirednamestringrequiredcolorstringrequired
usagestringrequiredWhere the media is used:unused;usedin a post still to publish;publishedonly in posts already published (or failed).One of:unused,used,publishedprocessingobjectrequiredUpload and processing state:processing(videos and audio are being processed),ready, orfailedwith a readableerror. A media can be put in a post while processing.2fields
statestringrequiredOne of:processing,ready,failederrorstringrequirednullable
previewUrlstringrequirednullableSigned URL (valid about one hour) of the image itself or of the video's poster;nullwhile there is none yet, and always for audio.mediaUrlstringrequiredSigned URL (valid about one hour) of the original file, served inline. To save the file under its name, use the media'sdownload-url.playbackobjectrequirednullableHLS playback of a processed video (manifestUrl, loaded by the Beplan app's player with its session), elsenull. Alwaysnullthrough the public API (/v1) and MCP: usemediaUrl, or the media'sdownload-url, to fetch the file.1field
manifestUrlstringrequired
publishCopyobjectrequirednullableThe 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.nullwhen every platform takes the original, or while it is being made.4fields
mimeTypestringrequiredwidthnumberrequiredheightnumberrequiredsizenumberrequired
transcriptMatchobject · MediaTranscriptMatchoptional3fields
snippetstringrequiredstartMsnumberrequiredsourcestringoptionalOne of:speech,scene
cropobject · MediaCropoptionalnullableThe 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 + widthandy + heightat most 1.7fields
versionnumberrequiredAlways1unitstringrequiredAlwayspercentxnumberrequiredfrom 0 to 1ynumberrequiredfrom 0 to 1widthnumberrequiredabove 0 to 1heightnumberrequiredabove 0 to 1aspectRationumberoptionalgreater than 0
publishedUrlstringoptionalnullablepublishedUrlKindstringoptionalnullableOne of:post,studiopublishStatestringoptionalOne of:pending,published,failedpublishErrorstringoptionalnullable
updatedAtstring (date-time)requiredLast change. Send it back asbaseUpdatedAtwhen saving so you never overwrite a change you haven't read.pendingApprovalobject · EditorPostPendingApprovaloptionalnullable5fields
idstring (uuid)requiredactionstringrequiredOne of:schedule,publish_nowscheduledAtstring (date-time)requirednullablecreatedAtstring (date-time)requiredurlstringrequired
scheduledViaobject · PostViaoptionalnullable2fields
kindstring · PublicConnectionKindrequiredOne of:personal_token,app,mcpnamestringrequired
beplanPromotionobject · EditorBeplanPromotionoptionalnullable4fields
userIdstringrequireduserNamestringrequireddisclosurestringrequiredmentionsBeplanbooleanrequired
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 -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"
}
}
]
}' 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(); 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
/organizations/{organizationId}/workspaces/{workspaceId}/posts/ready 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 objectrequired13fields in each item
idstringrequiredtitlestringrequiredcaptionstringrequirednullablestatusstringrequiredready(finished, not scheduled),scheduled(waits forscheduledAt),in_process(being published),posted(published),failed(failed on at least one account: seeplatforms[].state).One of:ready,scheduled,in_process,posted,failedscheduledAtstring (date-time)requirednullableordernumberrequiredPosition in the ready queue: Quick Fill takes ready posts in this order.formatsarray of objectrequired3fields in each item
idstringrequirednamestringrequiredcolorstringrequired
platformsarray of objectrequired5fields in each item
platformstringrequiredstatestringrequiredOne of:pending,published,failedurlstringrequirednullableerrorstringrequirednullableviewsnumberoptionalnullable
mediaarray of objectrequired2fields in each item
typestringrequiredOne of:image,video,gifthumbnailUrlstringrequirednullable
mediaCountnumberrequiredlinkWindowobject · PostLinkWindowoptional2fields
afterobject · LinkedPostRefrequirednullable3fields
idstringrequiredtitlestringrequiredscheduledAtstring (date-time)requirednullable
beforeobject · LinkedPostRefrequirednullable3fields
idstringrequiredtitlestringrequiredscheduledAtstring (date-time)requirednullable
pendingApprovalobject · PostCardPendingApprovaloptionalnullableThe approval request the post waits on (an integration asked to schedule or publish it);nullwhen none is pending.3fields
idstring (uuid)requiredactionstringrequiredschedule(atscheduledAt) orpublish_now.One of:schedule,publish_nowscheduledAtstring (date-time)requirednullableThe time asked for (schedule);nullforpublish_now.
scheduledViaobject · PostViaoptionalnullableThe 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);nullwhen a person did it, or never.2fields
kindstring · PublicConnectionKindrequiredOne of:personal_token,app,mcpnamestringrequired
pageobjectrequired2fields
nextCursorstringrequirednullablehasMorebooleanrequired
totalnumberoptionalPosts in the whole queue (held ones only withheldOnly=true); on the first page only (nocursor).
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 -X GET "https://api.beplan.io/v1/organizations/ORGANIZATION_ID/workspaces/WORKSPACE_ID/posts/ready?limit=25" \
-H "Authorization: Bearer beplan_pat_…" 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(); 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
/organizations/{organizationId}/workspaces/{workspaceId}/posts/{postId} 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 · EditorPostrequired14fields
idstringrequiredtitlestringrequiredcaptionstringrequiredhashtagsstringrequiredformatIdsarray of stringrequiredignoreOpenFormatSlotsbooleanrequiredstatusstringrequiredWhere the post stands:idea,in_progress,in_review(drafts),ready(finished, in the ready queue, not scheduled),scheduled(waits forscheduledAt),in_process(being published),posted(published),failed(failed on at least one account: seeplatforms[].publishState). A post waiting for a person's approval keeps its status and haspendingApproval.One of (may gain values):idea,in_progress,in_review,ready,scheduled,in_process,posted,failedscheduledAtstring (date-time)requirednullableWhen it goes out (or went out), ISO 8601 UTC.mediaarray of objectrequired4fields in each item
mediaIdstringrequiredaltTextstringrequirednullableitemobject · MediaItemrequired21fields
idstringrequiredfolderIdstringrequirednullableThe folder holding the media;nullat the root of the library.filenamestringrequiredaltTextstringrequirednullablemediaTypestringrequiredOne of:image,video,gif,audiomimeTypestringrequirednullablesizenumberrequirednullableFile size in bytes, when known.widthnumberrequirednullableWidth in pixels, when known (images at upload, videos once processed);nullfor audio.heightnumberrequirednullableHeight in pixels, when known (images at upload, videos once processed);nullfor audio.aspectRationumberrequiredDisplay ratio (width / height) from the dimensions, clamped to [0.45, 2.4];1when unknown and for audio.durationnumberrequirednullableLength in seconds, for videos, GIFs and audio once known (nullfor images).waveformarray of numberrequirednullableAudio only: up to 1000 peaks (integers 0–100, 100 = full scale) spread evenly overduration.nullwhile processing, when processing failed, and for every other type.createdAtstring (date-time)requiredformatsarray of objectrequired3fields in each item
idstringrequirednamestringrequiredcolorstringrequired
usagestringrequiredWhere the media is used:unused;usedin a post still to publish;publishedonly in posts already published (or failed).One of:unused,used,publishedprocessingobjectrequiredUpload and processing state:processing(videos and audio are being processed),ready, orfailedwith a readableerror. A media can be put in a post while processing.2fields
statestringrequiredOne of:processing,ready,failederrorstringrequirednullable
previewUrlstringrequirednullableSigned URL (valid about one hour) of the image itself or of the video's poster;nullwhile there is none yet, and always for audio.mediaUrlstringrequiredSigned URL (valid about one hour) of the original file, served inline. To save the file under its name, use the media'sdownload-url.playbackobjectrequirednullableHLS playback of a processed video (manifestUrl, loaded by the Beplan app's player with its session), elsenull. Alwaysnullthrough the public API (/v1) and MCP: usemediaUrl, or the media'sdownload-url, to fetch the file.1field
manifestUrlstringrequired
publishCopyobjectrequirednullableThe 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.nullwhen every platform takes the original, or while it is being made.4fields
mimeTypestringrequiredwidthnumberrequiredheightnumberrequiredsizenumberrequired
transcriptMatchobject · MediaTranscriptMatchoptional3fields
snippetstringrequiredstartMsnumberrequiredsourcestringoptionalOne of:speech,scene
cropobject · MediaCropoptionalnullableThe 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 + widthandy + heightat most 1.7fields
versionnumberrequiredAlways1unitstringrequiredAlwayspercentxnumberrequiredfrom 0 to 1ynumberrequiredfrom 0 to 1widthnumberrequiredabove 0 to 1heightnumberrequiredabove 0 to 1aspectRationumberoptionalgreater than 0
platformsarray of objectrequired12fields in each item
socialAccountIdstringrequiredplatformstring · SocialPlatformrequiredOne of (may gain values):x,instagram,facebook,tiktok,linkedin,threads,pinterest,youtube,discord,blueskyisActivebooleanrequiredtypestringrequiredOne of:post,storycustomCaptionstringrequirednullableadditionalParamsmap of anyrequiredThe 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 with400 VALIDATION_FAILED.mediaarray of objectrequirednullable4fields in each item
mediaIdstringrequiredaltTextstringrequirednullableitemobject · MediaItemrequired21fields
idstringrequiredfolderIdstringrequirednullableThe folder holding the media;nullat the root of the library.filenamestringrequiredaltTextstringrequirednullablemediaTypestringrequiredOne of:image,video,gif,audiomimeTypestringrequirednullablesizenumberrequirednullableFile size in bytes, when known.widthnumberrequirednullableWidth in pixels, when known (images at upload, videos once processed);nullfor audio.heightnumberrequirednullableHeight in pixels, when known (images at upload, videos once processed);nullfor audio.aspectRationumberrequiredDisplay ratio (width / height) from the dimensions, clamped to [0.45, 2.4];1when unknown and for audio.durationnumberrequirednullableLength in seconds, for videos, GIFs and audio once known (nullfor images).waveformarray of numberrequirednullableAudio only: up to 1000 peaks (integers 0–100, 100 = full scale) spread evenly overduration.nullwhile processing, when processing failed, and for every other type.createdAtstring (date-time)requiredformatsarray of objectrequired3fields in each item
idstringrequirednamestringrequiredcolorstringrequired
usagestringrequiredWhere the media is used:unused;usedin a post still to publish;publishedonly in posts already published (or failed).One of:unused,used,publishedprocessingobjectrequiredUpload and processing state:processing(videos and audio are being processed),ready, orfailedwith a readableerror. A media can be put in a post while processing.2fields
statestringrequiredOne of:processing,ready,failederrorstringrequirednullable
previewUrlstringrequirednullableSigned URL (valid about one hour) of the image itself or of the video's poster;nullwhile there is none yet, and always for audio.mediaUrlstringrequiredSigned URL (valid about one hour) of the original file, served inline. To save the file under its name, use the media'sdownload-url.playbackobjectrequirednullableHLS playback of a processed video (manifestUrl, loaded by the Beplan app's player with its session), elsenull. Alwaysnullthrough the public API (/v1) and MCP: usemediaUrl, or the media'sdownload-url, to fetch the file.1field
manifestUrlstringrequired
publishCopyobjectrequirednullableThe 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.nullwhen every platform takes the original, or while it is being made.4fields
mimeTypestringrequiredwidthnumberrequiredheightnumberrequiredsizenumberrequired
transcriptMatchobject · MediaTranscriptMatchoptional3fields
snippetstringrequiredstartMsnumberrequiredsourcestringoptionalOne of:speech,scene
cropobject · MediaCropoptionalnullableThe 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 + widthandy + heightat most 1.7fields
versionnumberrequiredAlways1unitstringrequiredAlwayspercentxnumberrequiredfrom 0 to 1ynumberrequiredfrom 0 to 1widthnumberrequiredabove 0 to 1heightnumberrequiredabove 0 to 1aspectRationumberoptionalgreater than 0
threadarray of objectrequired3fields in each item
idstringoptionalcaptionstringrequiredmediaarray of objectrequired4fields in each item
mediaIdstringrequiredaltTextstringrequirednullableitemobject · MediaItemrequired21fields
idstringrequiredfolderIdstringrequirednullableThe folder holding the media;nullat the root of the library.filenamestringrequiredaltTextstringrequirednullablemediaTypestringrequiredOne of:image,video,gif,audiomimeTypestringrequirednullablesizenumberrequirednullableFile size in bytes, when known.widthnumberrequirednullableWidth in pixels, when known (images at upload, videos once processed);nullfor audio.heightnumberrequirednullableHeight in pixels, when known (images at upload, videos once processed);nullfor audio.aspectRationumberrequiredDisplay ratio (width / height) from the dimensions, clamped to [0.45, 2.4];1when unknown and for audio.durationnumberrequirednullableLength in seconds, for videos, GIFs and audio once known (nullfor images).waveformarray of numberrequirednullableAudio only: up to 1000 peaks (integers 0–100, 100 = full scale) spread evenly overduration.nullwhile processing, when processing failed, and for every other type.createdAtstring (date-time)requiredformatsarray of objectrequired3fields in each item
idstringrequirednamestringrequiredcolorstringrequired
usagestringrequiredWhere the media is used:unused;usedin a post still to publish;publishedonly in posts already published (or failed).One of:unused,used,publishedprocessingobjectrequiredUpload and processing state:processing(videos and audio are being processed),ready, orfailedwith a readableerror. A media can be put in a post while processing.2fields
statestringrequiredOne of:processing,ready,failederrorstringrequirednullable
previewUrlstringrequirednullableSigned URL (valid about one hour) of the image itself or of the video's poster;nullwhile there is none yet, and always for audio.mediaUrlstringrequiredSigned URL (valid about one hour) of the original file, served inline. To save the file under its name, use the media'sdownload-url.playbackobjectrequirednullableHLS playback of a processed video (manifestUrl, loaded by the Beplan app's player with its session), elsenull. Alwaysnullthrough the public API (/v1) and MCP: usemediaUrl, or the media'sdownload-url, to fetch the file.1field
manifestUrlstringrequired
publishCopyobjectrequirednullableThe 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.nullwhen every platform takes the original, or while it is being made.4fields
mimeTypestringrequiredwidthnumberrequiredheightnumberrequiredsizenumberrequired
transcriptMatchobject · MediaTranscriptMatchoptional3fields
snippetstringrequiredstartMsnumberrequiredsourcestringoptionalOne of:speech,scene
cropobject · MediaCropoptionalnullableThe 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 + widthandy + heightat most 1.7fields
versionnumberrequiredAlways1unitstringrequiredAlwayspercentxnumberrequiredfrom 0 to 1ynumberrequiredfrom 0 to 1widthnumberrequiredabove 0 to 1heightnumberrequiredabove 0 to 1aspectRationumberoptionalgreater than 0
publishedUrlstringoptionalnullablepublishedUrlKindstringoptionalnullableOne of:post,studiopublishStatestringoptionalOne of:pending,published,failedpublishErrorstringoptionalnullable
updatedAtstring (date-time)requiredLast change. Send it back asbaseUpdatedAtwhen saving so you never overwrite a change you haven't read.pendingApprovalobject · EditorPostPendingApprovaloptionalnullable5fields
idstring (uuid)requiredactionstringrequiredOne of:schedule,publish_nowscheduledAtstring (date-time)requirednullablecreatedAtstring (date-time)requiredurlstringrequired
scheduledViaobject · PostViaoptionalnullable2fields
kindstring · PublicConnectionKindrequiredOne of:personal_token,app,mcpnamestringrequired
beplanPromotionobject · EditorBeplanPromotionoptionalnullable4fields
userIdstringrequireduserNamestringrequireddisclosurestringrequiredmentionsBeplanbooleanrequired
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 -X GET "https://api.beplan.io/v1/organizations/ORGANIZATION_ID/workspaces/WORKSPACE_ID/posts/6f1c2a3b-4d5e-4f60-8a71-92b3c4d5e6f7" \
-H "Authorization: Bearer beplan_pat_…" 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(); 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
/organizations/{organizationId}/workspaces/{workspaceId}/posts/{postId} 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)optionalOptional precondition: the post'supdatedAtyou last read. When the post changed since, nothing is written (409 POST_CHANGED_ELSEWHERE): read it again and retry. Omitted, the save overwrites.liveEpochintegeroptionalBeplan's own editor only (live co-editing). Integrations omit it.at least 0titlestringoptionalat most 255 characterscaptionstringoptionalThe caption every account uses unless it has its owncustomCaption. Captions (the post's, an account'scustomCaptionand 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;thisis the post being written), becoming its public URL; the post then waits for that publication and can only be scheduled after it (find targets withposts.linkTargets.list, check withposts.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 charactershashtagsstringoptionalat most 5000 charactersformatIdsarray of string (uuid)optionalThe post's formats (the workspace's content types), in order; replaces the list.at most 50 itemsignoreOpenFormatSlotsbooleanoptionalmediaarray of objectoptionalThe post's media, in publishing order; replaces the list. Each must be in the workspace's media library.at most 35 items3fields in each item
mediaIdstring (uuid)requiredaltTextstringoptionalnullableat most 1500 characterscropobject · MediaCropoptionalnullableThe 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 + widthandy + heightat most 1.7fields
versionnumberrequiredAlways1unitstringrequiredAlwayspercentxnumberrequiredfrom 0 to 1ynumberrequiredfrom 0 to 1widthnumberrequiredabove 0 to 1heightnumberrequiredabove 0 to 1aspectRationumberoptionalgreater than 0
platformsarray of objectoptionalWhere the post goes, one entry per account to change (accounts not listed are left as they are).isActive: falsekeeps the account's settings without publishing there.at most 30 items7fields in each item
socialAccountIdstring (uuid)requiredA connected account of the workspace (GET …/social-accounts).isActivebooleanrequiredtypestringoptionalOne of:post,storycustomCaptionstringoptionalnullableat most 63206 charactersadditionalParamsmap of anyoptionalThe 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 with400 VALIDATION_FAILED.mediaarray of objectoptionalnullableat most 35 items3fields in each item
mediaIdstring (uuid)requiredaltTextstringoptionalnullableat most 1500 characterscropobject · MediaCropoptionalnullableThe 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 + widthandy + heightat most 1.7fields
versionnumberrequiredAlways1unitstringrequiredAlwayspercentxnumberrequiredfrom 0 to 1ynumberrequiredfrom 0 to 1widthnumberrequiredabove 0 to 1heightnumberrequiredabove 0 to 1aspectRationumberoptionalgreater than 0
threadarray of objectoptionalat most 24 items3fields in each item
idstring (uuid)optionalcaptionstringrequiredat most 63206 charactersmediaarray of objectrequiredat most 35 items3fields in each item
mediaIdstring (uuid)requiredaltTextstringoptionalnullableat most 1500 characterscropobject · MediaCropoptionalnullableThe 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 + widthandy + heightat most 1.7fields
versionnumberrequiredAlways1unitstringrequiredAlwayspercentxnumberrequiredfrom 0 to 1ynumberrequiredfrom 0 to 1widthnumberrequiredabove 0 to 1heightnumberrequiredabove 0 to 1aspectRationumberoptionalgreater than 0
Responses
200 OK
object · EditorPostResponse
dataobject · EditorPostrequired14fields
idstringrequiredtitlestringrequiredcaptionstringrequiredhashtagsstringrequiredformatIdsarray of stringrequiredignoreOpenFormatSlotsbooleanrequiredstatusstringrequiredWhere the post stands:idea,in_progress,in_review(drafts),ready(finished, in the ready queue, not scheduled),scheduled(waits forscheduledAt),in_process(being published),posted(published),failed(failed on at least one account: seeplatforms[].publishState). A post waiting for a person's approval keeps its status and haspendingApproval.One of (may gain values):idea,in_progress,in_review,ready,scheduled,in_process,posted,failedscheduledAtstring (date-time)requirednullableWhen it goes out (or went out), ISO 8601 UTC.mediaarray of objectrequired4fields in each item
mediaIdstringrequiredaltTextstringrequirednullableitemobject · MediaItemrequired21fields
idstringrequiredfolderIdstringrequirednullableThe folder holding the media;nullat the root of the library.filenamestringrequiredaltTextstringrequirednullablemediaTypestringrequiredOne of:image,video,gif,audiomimeTypestringrequirednullablesizenumberrequirednullableFile size in bytes, when known.widthnumberrequirednullableWidth in pixels, when known (images at upload, videos once processed);nullfor audio.heightnumberrequirednullableHeight in pixels, when known (images at upload, videos once processed);nullfor audio.aspectRationumberrequiredDisplay ratio (width / height) from the dimensions, clamped to [0.45, 2.4];1when unknown and for audio.durationnumberrequirednullableLength in seconds, for videos, GIFs and audio once known (nullfor images).waveformarray of numberrequirednullableAudio only: up to 1000 peaks (integers 0–100, 100 = full scale) spread evenly overduration.nullwhile processing, when processing failed, and for every other type.createdAtstring (date-time)requiredformatsarray of objectrequired3fields in each item
idstringrequirednamestringrequiredcolorstringrequired
usagestringrequiredWhere the media is used:unused;usedin a post still to publish;publishedonly in posts already published (or failed).One of:unused,used,publishedprocessingobjectrequiredUpload and processing state:processing(videos and audio are being processed),ready, orfailedwith a readableerror. A media can be put in a post while processing.2fields
statestringrequiredOne of:processing,ready,failederrorstringrequirednullable
previewUrlstringrequirednullableSigned URL (valid about one hour) of the image itself or of the video's poster;nullwhile there is none yet, and always for audio.mediaUrlstringrequiredSigned URL (valid about one hour) of the original file, served inline. To save the file under its name, use the media'sdownload-url.playbackobjectrequirednullableHLS playback of a processed video (manifestUrl, loaded by the Beplan app's player with its session), elsenull. Alwaysnullthrough the public API (/v1) and MCP: usemediaUrl, or the media'sdownload-url, to fetch the file.1field
manifestUrlstringrequired
publishCopyobjectrequirednullableThe 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.nullwhen every platform takes the original, or while it is being made.4fields
mimeTypestringrequiredwidthnumberrequiredheightnumberrequiredsizenumberrequired
transcriptMatchobject · MediaTranscriptMatchoptional3fields
snippetstringrequiredstartMsnumberrequiredsourcestringoptionalOne of:speech,scene
cropobject · MediaCropoptionalnullableThe 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 + widthandy + heightat most 1.7fields
versionnumberrequiredAlways1unitstringrequiredAlwayspercentxnumberrequiredfrom 0 to 1ynumberrequiredfrom 0 to 1widthnumberrequiredabove 0 to 1heightnumberrequiredabove 0 to 1aspectRationumberoptionalgreater than 0
platformsarray of objectrequired12fields in each item
socialAccountIdstringrequiredplatformstring · SocialPlatformrequiredOne of (may gain values):x,instagram,facebook,tiktok,linkedin,threads,pinterest,youtube,discord,blueskyisActivebooleanrequiredtypestringrequiredOne of:post,storycustomCaptionstringrequirednullableadditionalParamsmap of anyrequiredThe 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 with400 VALIDATION_FAILED.mediaarray of objectrequirednullable4fields in each item
mediaIdstringrequiredaltTextstringrequirednullableitemobject · MediaItemrequired21fields
idstringrequiredfolderIdstringrequirednullableThe folder holding the media;nullat the root of the library.filenamestringrequiredaltTextstringrequirednullablemediaTypestringrequiredOne of:image,video,gif,audiomimeTypestringrequirednullablesizenumberrequirednullableFile size in bytes, when known.widthnumberrequirednullableWidth in pixels, when known (images at upload, videos once processed);nullfor audio.heightnumberrequirednullableHeight in pixels, when known (images at upload, videos once processed);nullfor audio.aspectRationumberrequiredDisplay ratio (width / height) from the dimensions, clamped to [0.45, 2.4];1when unknown and for audio.durationnumberrequirednullableLength in seconds, for videos, GIFs and audio once known (nullfor images).waveformarray of numberrequirednullableAudio only: up to 1000 peaks (integers 0–100, 100 = full scale) spread evenly overduration.nullwhile processing, when processing failed, and for every other type.createdAtstring (date-time)requiredformatsarray of objectrequired3fields in each item
idstringrequirednamestringrequiredcolorstringrequired
usagestringrequiredWhere the media is used:unused;usedin a post still to publish;publishedonly in posts already published (or failed).One of:unused,used,publishedprocessingobjectrequiredUpload and processing state:processing(videos and audio are being processed),ready, orfailedwith a readableerror. A media can be put in a post while processing.2fields
statestringrequiredOne of:processing,ready,failederrorstringrequirednullable
previewUrlstringrequirednullableSigned URL (valid about one hour) of the image itself or of the video's poster;nullwhile there is none yet, and always for audio.mediaUrlstringrequiredSigned URL (valid about one hour) of the original file, served inline. To save the file under its name, use the media'sdownload-url.playbackobjectrequirednullableHLS playback of a processed video (manifestUrl, loaded by the Beplan app's player with its session), elsenull. Alwaysnullthrough the public API (/v1) and MCP: usemediaUrl, or the media'sdownload-url, to fetch the file.1field
manifestUrlstringrequired
publishCopyobjectrequirednullableThe 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.nullwhen every platform takes the original, or while it is being made.4fields
mimeTypestringrequiredwidthnumberrequiredheightnumberrequiredsizenumberrequired
transcriptMatchobject · MediaTranscriptMatchoptional3fields
snippetstringrequiredstartMsnumberrequiredsourcestringoptionalOne of:speech,scene
cropobject · MediaCropoptionalnullableThe 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 + widthandy + heightat most 1.7fields
versionnumberrequiredAlways1unitstringrequiredAlwayspercentxnumberrequiredfrom 0 to 1ynumberrequiredfrom 0 to 1widthnumberrequiredabove 0 to 1heightnumberrequiredabove 0 to 1aspectRationumberoptionalgreater than 0
threadarray of objectrequired3fields in each item
idstringoptionalcaptionstringrequiredmediaarray of objectrequired4fields in each item
mediaIdstringrequiredaltTextstringrequirednullableitemobject · MediaItemrequired21fields
idstringrequiredfolderIdstringrequirednullableThe folder holding the media;nullat the root of the library.filenamestringrequiredaltTextstringrequirednullablemediaTypestringrequiredOne of:image,video,gif,audiomimeTypestringrequirednullablesizenumberrequirednullableFile size in bytes, when known.widthnumberrequirednullableWidth in pixels, when known (images at upload, videos once processed);nullfor audio.heightnumberrequirednullableHeight in pixels, when known (images at upload, videos once processed);nullfor audio.aspectRationumberrequiredDisplay ratio (width / height) from the dimensions, clamped to [0.45, 2.4];1when unknown and for audio.durationnumberrequirednullableLength in seconds, for videos, GIFs and audio once known (nullfor images).waveformarray of numberrequirednullableAudio only: up to 1000 peaks (integers 0–100, 100 = full scale) spread evenly overduration.nullwhile processing, when processing failed, and for every other type.createdAtstring (date-time)requiredformatsarray of objectrequired3fields in each item
idstringrequirednamestringrequiredcolorstringrequired
usagestringrequiredWhere the media is used:unused;usedin a post still to publish;publishedonly in posts already published (or failed).One of:unused,used,publishedprocessingobjectrequiredUpload and processing state:processing(videos and audio are being processed),ready, orfailedwith a readableerror. A media can be put in a post while processing.2fields
statestringrequiredOne of:processing,ready,failederrorstringrequirednullable
previewUrlstringrequirednullableSigned URL (valid about one hour) of the image itself or of the video's poster;nullwhile there is none yet, and always for audio.mediaUrlstringrequiredSigned URL (valid about one hour) of the original file, served inline. To save the file under its name, use the media'sdownload-url.playbackobjectrequirednullableHLS playback of a processed video (manifestUrl, loaded by the Beplan app's player with its session), elsenull. Alwaysnullthrough the public API (/v1) and MCP: usemediaUrl, or the media'sdownload-url, to fetch the file.1field
manifestUrlstringrequired
publishCopyobjectrequirednullableThe 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.nullwhen every platform takes the original, or while it is being made.4fields
mimeTypestringrequiredwidthnumberrequiredheightnumberrequiredsizenumberrequired
transcriptMatchobject · MediaTranscriptMatchoptional3fields
snippetstringrequiredstartMsnumberrequiredsourcestringoptionalOne of:speech,scene
cropobject · MediaCropoptionalnullableThe 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 + widthandy + heightat most 1.7fields
versionnumberrequiredAlways1unitstringrequiredAlwayspercentxnumberrequiredfrom 0 to 1ynumberrequiredfrom 0 to 1widthnumberrequiredabove 0 to 1heightnumberrequiredabove 0 to 1aspectRationumberoptionalgreater than 0
publishedUrlstringoptionalnullablepublishedUrlKindstringoptionalnullableOne of:post,studiopublishStatestringoptionalOne of:pending,published,failedpublishErrorstringoptionalnullable
updatedAtstring (date-time)requiredLast change. Send it back asbaseUpdatedAtwhen saving so you never overwrite a change you haven't read.pendingApprovalobject · EditorPostPendingApprovaloptionalnullable5fields
idstring (uuid)requiredactionstringrequiredOne of:schedule,publish_nowscheduledAtstring (date-time)requirednullablecreatedAtstring (date-time)requiredurlstringrequired
scheduledViaobject · PostViaoptionalnullable2fields
kindstring · PublicConnectionKindrequiredOne of:personal_token,app,mcpnamestringrequired
beplanPromotionobject · EditorBeplanPromotionoptionalnullable4fields
userIdstringrequireduserNamestringrequireddisclosurestringrequiredmentionsBeplanbooleanrequired
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 -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."
}' 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(); 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
/organizations/{organizationId}/workspaces/{workspaceId}/posts/{postId} 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 -X DELETE "https://api.beplan.io/v1/organizations/ORGANIZATION_ID/workspaces/WORKSPACE_ID/posts/6f1c2a3b-4d5e-4f60-8a71-92b3c4d5e6f7" \
-H "Authorization: Bearer beplan_pat_…" 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); 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
/organizations/{organizationId}/workspaces/{workspaceId}/posts/{postId}/duplicate posts.duplicate - Scope
- posts:write
- Role permission
- Create posts (
post:create) - Effect
- Changes data in Beplan.
- Idempotency
- Send an
Idempotency-Keyto 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
onlyFailedPlatformsbooleanoptionalplatformsarray of stringoptionalOne of:x,instagram,facebook,tiktok,linkedin,threads,pinterest,youtube,discord,bluesky1–10 items
Responses
201 Created
object · DuplicatedPostResponse
dataobjectrequired2fields
idstringrequiredtitlestringrequired
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 -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"
]
}' 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(); 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
/organizations/{organizationId}/workspaces/{workspaceId}/posts/{postId}/publish-now 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-Keyto 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 · EditorPostrequired14fields
idstringrequiredtitlestringrequiredcaptionstringrequiredhashtagsstringrequiredformatIdsarray of stringrequiredignoreOpenFormatSlotsbooleanrequiredstatusstringrequiredWhere the post stands:idea,in_progress,in_review(drafts),ready(finished, in the ready queue, not scheduled),scheduled(waits forscheduledAt),in_process(being published),posted(published),failed(failed on at least one account: seeplatforms[].publishState). A post waiting for a person's approval keeps its status and haspendingApproval.One of (may gain values):idea,in_progress,in_review,ready,scheduled,in_process,posted,failedscheduledAtstring (date-time)requirednullableWhen it goes out (or went out), ISO 8601 UTC.mediaarray of objectrequired4fields in each item
mediaIdstringrequiredaltTextstringrequirednullableitemobject · MediaItemrequired21fields
idstringrequiredfolderIdstringrequirednullableThe folder holding the media;nullat the root of the library.filenamestringrequiredaltTextstringrequirednullablemediaTypestringrequiredOne of:image,video,gif,audiomimeTypestringrequirednullablesizenumberrequirednullableFile size in bytes, when known.widthnumberrequirednullableWidth in pixels, when known (images at upload, videos once processed);nullfor audio.heightnumberrequirednullableHeight in pixels, when known (images at upload, videos once processed);nullfor audio.aspectRationumberrequiredDisplay ratio (width / height) from the dimensions, clamped to [0.45, 2.4];1when unknown and for audio.durationnumberrequirednullableLength in seconds, for videos, GIFs and audio once known (nullfor images).waveformarray of numberrequirednullableAudio only: up to 1000 peaks (integers 0–100, 100 = full scale) spread evenly overduration.nullwhile processing, when processing failed, and for every other type.createdAtstring (date-time)requiredformatsarray of objectrequired3fields in each item
idstringrequirednamestringrequiredcolorstringrequired
usagestringrequiredWhere the media is used:unused;usedin a post still to publish;publishedonly in posts already published (or failed).One of:unused,used,publishedprocessingobjectrequiredUpload and processing state:processing(videos and audio are being processed),ready, orfailedwith a readableerror. A media can be put in a post while processing.2fields
statestringrequiredOne of:processing,ready,failederrorstringrequirednullable
previewUrlstringrequirednullableSigned URL (valid about one hour) of the image itself or of the video's poster;nullwhile there is none yet, and always for audio.mediaUrlstringrequiredSigned URL (valid about one hour) of the original file, served inline. To save the file under its name, use the media'sdownload-url.playbackobjectrequirednullableHLS playback of a processed video (manifestUrl, loaded by the Beplan app's player with its session), elsenull. Alwaysnullthrough the public API (/v1) and MCP: usemediaUrl, or the media'sdownload-url, to fetch the file.1field
manifestUrlstringrequired
publishCopyobjectrequirednullableThe 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.nullwhen every platform takes the original, or while it is being made.4fields
mimeTypestringrequiredwidthnumberrequiredheightnumberrequiredsizenumberrequired
transcriptMatchobject · MediaTranscriptMatchoptional3fields
snippetstringrequiredstartMsnumberrequiredsourcestringoptionalOne of:speech,scene
cropobject · MediaCropoptionalnullableThe 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 + widthandy + heightat most 1.7fields
versionnumberrequiredAlways1unitstringrequiredAlwayspercentxnumberrequiredfrom 0 to 1ynumberrequiredfrom 0 to 1widthnumberrequiredabove 0 to 1heightnumberrequiredabove 0 to 1aspectRationumberoptionalgreater than 0
platformsarray of objectrequired12fields in each item
socialAccountIdstringrequiredplatformstring · SocialPlatformrequiredOne of (may gain values):x,instagram,facebook,tiktok,linkedin,threads,pinterest,youtube,discord,blueskyisActivebooleanrequiredtypestringrequiredOne of:post,storycustomCaptionstringrequirednullableadditionalParamsmap of anyrequiredThe 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 with400 VALIDATION_FAILED.mediaarray of objectrequirednullable4fields in each item
mediaIdstringrequiredaltTextstringrequirednullableitemobject · MediaItemrequired21fields
idstringrequiredfolderIdstringrequirednullableThe folder holding the media;nullat the root of the library.filenamestringrequiredaltTextstringrequirednullablemediaTypestringrequiredOne of:image,video,gif,audiomimeTypestringrequirednullablesizenumberrequirednullableFile size in bytes, when known.widthnumberrequirednullableWidth in pixels, when known (images at upload, videos once processed);nullfor audio.heightnumberrequirednullableHeight in pixels, when known (images at upload, videos once processed);nullfor audio.aspectRationumberrequiredDisplay ratio (width / height) from the dimensions, clamped to [0.45, 2.4];1when unknown and for audio.durationnumberrequirednullableLength in seconds, for videos, GIFs and audio once known (nullfor images).waveformarray of numberrequirednullableAudio only: up to 1000 peaks (integers 0–100, 100 = full scale) spread evenly overduration.nullwhile processing, when processing failed, and for every other type.createdAtstring (date-time)requiredformatsarray of objectrequired3fields in each item
idstringrequirednamestringrequiredcolorstringrequired
usagestringrequiredWhere the media is used:unused;usedin a post still to publish;publishedonly in posts already published (or failed).One of:unused,used,publishedprocessingobjectrequiredUpload and processing state:processing(videos and audio are being processed),ready, orfailedwith a readableerror. A media can be put in a post while processing.2fields
statestringrequiredOne of:processing,ready,failederrorstringrequirednullable
previewUrlstringrequirednullableSigned URL (valid about one hour) of the image itself or of the video's poster;nullwhile there is none yet, and always for audio.mediaUrlstringrequiredSigned URL (valid about one hour) of the original file, served inline. To save the file under its name, use the media'sdownload-url.playbackobjectrequirednullableHLS playback of a processed video (manifestUrl, loaded by the Beplan app's player with its session), elsenull. Alwaysnullthrough the public API (/v1) and MCP: usemediaUrl, or the media'sdownload-url, to fetch the file.1field
manifestUrlstringrequired
publishCopyobjectrequirednullableThe 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.nullwhen every platform takes the original, or while it is being made.4fields
mimeTypestringrequiredwidthnumberrequiredheightnumberrequiredsizenumberrequired
transcriptMatchobject · MediaTranscriptMatchoptional3fields
snippetstringrequiredstartMsnumberrequiredsourcestringoptionalOne of:speech,scene
cropobject · MediaCropoptionalnullableThe 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 + widthandy + heightat most 1.7fields
versionnumberrequiredAlways1unitstringrequiredAlwayspercentxnumberrequiredfrom 0 to 1ynumberrequiredfrom 0 to 1widthnumberrequiredabove 0 to 1heightnumberrequiredabove 0 to 1aspectRationumberoptionalgreater than 0
threadarray of objectrequired3fields in each item
idstringoptionalcaptionstringrequiredmediaarray of objectrequired4fields in each item
mediaIdstringrequiredaltTextstringrequirednullableitemobject · MediaItemrequired21fields
idstringrequiredfolderIdstringrequirednullableThe folder holding the media;nullat the root of the library.filenamestringrequiredaltTextstringrequirednullablemediaTypestringrequiredOne of:image,video,gif,audiomimeTypestringrequirednullablesizenumberrequirednullableFile size in bytes, when known.widthnumberrequirednullableWidth in pixels, when known (images at upload, videos once processed);nullfor audio.heightnumberrequirednullableHeight in pixels, when known (images at upload, videos once processed);nullfor audio.aspectRationumberrequiredDisplay ratio (width / height) from the dimensions, clamped to [0.45, 2.4];1when unknown and for audio.durationnumberrequirednullableLength in seconds, for videos, GIFs and audio once known (nullfor images).waveformarray of numberrequirednullableAudio only: up to 1000 peaks (integers 0–100, 100 = full scale) spread evenly overduration.nullwhile processing, when processing failed, and for every other type.createdAtstring (date-time)requiredformatsarray of objectrequired3fields in each item
idstringrequirednamestringrequiredcolorstringrequired
usagestringrequiredWhere the media is used:unused;usedin a post still to publish;publishedonly in posts already published (or failed).One of:unused,used,publishedprocessingobjectrequiredUpload and processing state:processing(videos and audio are being processed),ready, orfailedwith a readableerror. A media can be put in a post while processing.2fields
statestringrequiredOne of:processing,ready,failederrorstringrequirednullable
previewUrlstringrequirednullableSigned URL (valid about one hour) of the image itself or of the video's poster;nullwhile there is none yet, and always for audio.mediaUrlstringrequiredSigned URL (valid about one hour) of the original file, served inline. To save the file under its name, use the media'sdownload-url.playbackobjectrequirednullableHLS playback of a processed video (manifestUrl, loaded by the Beplan app's player with its session), elsenull. Alwaysnullthrough the public API (/v1) and MCP: usemediaUrl, or the media'sdownload-url, to fetch the file.1field
manifestUrlstringrequired
publishCopyobjectrequirednullableThe 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.nullwhen every platform takes the original, or while it is being made.4fields
mimeTypestringrequiredwidthnumberrequiredheightnumberrequiredsizenumberrequired
transcriptMatchobject · MediaTranscriptMatchoptional3fields
snippetstringrequiredstartMsnumberrequiredsourcestringoptionalOne of:speech,scene
cropobject · MediaCropoptionalnullableThe 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 + widthandy + heightat most 1.7fields
versionnumberrequiredAlways1unitstringrequiredAlwayspercentxnumberrequiredfrom 0 to 1ynumberrequiredfrom 0 to 1widthnumberrequiredabove 0 to 1heightnumberrequiredabove 0 to 1aspectRationumberoptionalgreater than 0
publishedUrlstringoptionalnullablepublishedUrlKindstringoptionalnullableOne of:post,studiopublishStatestringoptionalOne of:pending,published,failedpublishErrorstringoptionalnullable
updatedAtstring (date-time)requiredLast change. Send it back asbaseUpdatedAtwhen saving so you never overwrite a change you haven't read.pendingApprovalobject · EditorPostPendingApprovaloptionalnullable5fields
idstring (uuid)requiredactionstringrequiredOne of:schedule,publish_nowscheduledAtstring (date-time)requirednullablecreatedAtstring (date-time)requiredurlstringrequired
scheduledViaobject · PostViaoptionalnullable2fields
kindstring · PublicConnectionKindrequiredOne of:personal_token,app,mcpnamestringrequired
beplanPromotionobject · EditorBeplanPromotionoptionalnullable4fields
userIdstringrequireduserNamestringrequireddisclosurestringrequiredmentionsBeplanbooleanrequired
202 Accepted
object · EditorPostPendingApprovalResponse
dataobjectrequired15fields
idstringrequiredtitlestringrequiredcaptionstringrequiredhashtagsstringrequiredformatIdsarray of stringrequiredignoreOpenFormatSlotsbooleanrequiredstatusstringrequiredWhere the post stands:idea,in_progress,in_review(drafts),ready(finished, in the ready queue, not scheduled),scheduled(waits forscheduledAt),in_process(being published),posted(published),failed(failed on at least one account: seeplatforms[].publishState). A post waiting for a person's approval keeps its status and haspendingApproval.One of (may gain values):idea,in_progress,in_review,ready,scheduled,in_process,posted,failedscheduledAtstring (date-time)requirednullableWhen it goes out (or went out), ISO 8601 UTC.mediaarray of objectrequired4fields in each item
mediaIdstringrequiredaltTextstringrequirednullableitemobject · MediaItemrequired21fields
idstringrequiredfolderIdstringrequirednullableThe folder holding the media;nullat the root of the library.filenamestringrequiredaltTextstringrequirednullablemediaTypestringrequiredOne of:image,video,gif,audiomimeTypestringrequirednullablesizenumberrequirednullableFile size in bytes, when known.widthnumberrequirednullableWidth in pixels, when known (images at upload, videos once processed);nullfor audio.heightnumberrequirednullableHeight in pixels, when known (images at upload, videos once processed);nullfor audio.aspectRationumberrequiredDisplay ratio (width / height) from the dimensions, clamped to [0.45, 2.4];1when unknown and for audio.durationnumberrequirednullableLength in seconds, for videos, GIFs and audio once known (nullfor images).waveformarray of numberrequirednullableAudio only: up to 1000 peaks (integers 0–100, 100 = full scale) spread evenly overduration.nullwhile processing, when processing failed, and for every other type.createdAtstring (date-time)requiredformatsarray of objectrequired3fields in each item
idstringrequirednamestringrequiredcolorstringrequired
usagestringrequiredWhere the media is used:unused;usedin a post still to publish;publishedonly in posts already published (or failed).One of:unused,used,publishedprocessingobjectrequiredUpload and processing state:processing(videos and audio are being processed),ready, orfailedwith a readableerror. A media can be put in a post while processing.2fields
statestringrequiredOne of:processing,ready,failederrorstringrequirednullable
previewUrlstringrequirednullableSigned URL (valid about one hour) of the image itself or of the video's poster;nullwhile there is none yet, and always for audio.mediaUrlstringrequiredSigned URL (valid about one hour) of the original file, served inline. To save the file under its name, use the media'sdownload-url.playbackobjectrequirednullableHLS playback of a processed video (manifestUrl, loaded by the Beplan app's player with its session), elsenull. Alwaysnullthrough the public API (/v1) and MCP: usemediaUrl, or the media'sdownload-url, to fetch the file.1field
manifestUrlstringrequired
publishCopyobjectrequirednullableThe 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.nullwhen every platform takes the original, or while it is being made.4fields
mimeTypestringrequiredwidthnumberrequiredheightnumberrequiredsizenumberrequired
transcriptMatchobject · MediaTranscriptMatchoptional3fields
snippetstringrequiredstartMsnumberrequiredsourcestringoptionalOne of:speech,scene
cropobject · MediaCropoptionalnullableThe 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 + widthandy + heightat most 1.7fields
versionnumberrequiredAlways1unitstringrequiredAlwayspercentxnumberrequiredfrom 0 to 1ynumberrequiredfrom 0 to 1widthnumberrequiredabove 0 to 1heightnumberrequiredabove 0 to 1aspectRationumberoptionalgreater than 0
platformsarray of objectrequired12fields in each item
socialAccountIdstringrequiredplatformstring · SocialPlatformrequiredOne of (may gain values):x,instagram,facebook,tiktok,linkedin,threads,pinterest,youtube,discord,blueskyisActivebooleanrequiredtypestringrequiredOne of:post,storycustomCaptionstringrequirednullableadditionalParamsmap of anyrequiredThe 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 with400 VALIDATION_FAILED.mediaarray of objectrequirednullable4fields in each item
mediaIdstringrequiredaltTextstringrequirednullableitemobject · MediaItemrequired21fields
idstringrequiredfolderIdstringrequirednullableThe folder holding the media;nullat the root of the library.filenamestringrequiredaltTextstringrequirednullablemediaTypestringrequiredOne of:image,video,gif,audiomimeTypestringrequirednullablesizenumberrequirednullableFile size in bytes, when known.widthnumberrequirednullableWidth in pixels, when known (images at upload, videos once processed);nullfor audio.heightnumberrequirednullableHeight in pixels, when known (images at upload, videos once processed);nullfor audio.aspectRationumberrequiredDisplay ratio (width / height) from the dimensions, clamped to [0.45, 2.4];1when unknown and for audio.durationnumberrequirednullableLength in seconds, for videos, GIFs and audio once known (nullfor images).waveformarray of numberrequirednullableAudio only: up to 1000 peaks (integers 0–100, 100 = full scale) spread evenly overduration.nullwhile processing, when processing failed, and for every other type.createdAtstring (date-time)requiredformatsarray of objectrequired3fields in each item
idstringrequirednamestringrequiredcolorstringrequired
usagestringrequiredWhere the media is used:unused;usedin a post still to publish;publishedonly in posts already published (or failed).One of:unused,used,publishedprocessingobjectrequiredUpload and processing state:processing(videos and audio are being processed),ready, orfailedwith a readableerror. A media can be put in a post while processing.2fields
statestringrequiredOne of:processing,ready,failederrorstringrequirednullable
previewUrlstringrequirednullableSigned URL (valid about one hour) of the image itself or of the video's poster;nullwhile there is none yet, and always for audio.mediaUrlstringrequiredSigned URL (valid about one hour) of the original file, served inline. To save the file under its name, use the media'sdownload-url.playbackobjectrequirednullableHLS playback of a processed video (manifestUrl, loaded by the Beplan app's player with its session), elsenull. Alwaysnullthrough the public API (/v1) and MCP: usemediaUrl, or the media'sdownload-url, to fetch the file.1field
manifestUrlstringrequired
publishCopyobjectrequirednullableThe 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.nullwhen every platform takes the original, or while it is being made.4fields
mimeTypestringrequiredwidthnumberrequiredheightnumberrequiredsizenumberrequired
transcriptMatchobject · MediaTranscriptMatchoptional3fields
snippetstringrequiredstartMsnumberrequiredsourcestringoptionalOne of:speech,scene
cropobject · MediaCropoptionalnullableThe 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 + widthandy + heightat most 1.7fields
versionnumberrequiredAlways1unitstringrequiredAlwayspercentxnumberrequiredfrom 0 to 1ynumberrequiredfrom 0 to 1widthnumberrequiredabove 0 to 1heightnumberrequiredabove 0 to 1aspectRationumberoptionalgreater than 0
threadarray of objectrequired3fields in each item
idstringoptionalcaptionstringrequiredmediaarray of objectrequired4fields in each item
mediaIdstringrequiredaltTextstringrequirednullableitemobject · MediaItemrequired21fields
idstringrequiredfolderIdstringrequirednullableThe folder holding the media;nullat the root of the library.filenamestringrequiredaltTextstringrequirednullablemediaTypestringrequiredOne of:image,video,gif,audiomimeTypestringrequirednullablesizenumberrequirednullableFile size in bytes, when known.widthnumberrequirednullableWidth in pixels, when known (images at upload, videos once processed);nullfor audio.heightnumberrequirednullableHeight in pixels, when known (images at upload, videos once processed);nullfor audio.aspectRationumberrequiredDisplay ratio (width / height) from the dimensions, clamped to [0.45, 2.4];1when unknown and for audio.durationnumberrequirednullableLength in seconds, for videos, GIFs and audio once known (nullfor images).waveformarray of numberrequirednullableAudio only: up to 1000 peaks (integers 0–100, 100 = full scale) spread evenly overduration.nullwhile processing, when processing failed, and for every other type.createdAtstring (date-time)requiredformatsarray of objectrequired3fields in each item
idstringrequirednamestringrequiredcolorstringrequired
usagestringrequiredWhere the media is used:unused;usedin a post still to publish;publishedonly in posts already published (or failed).One of:unused,used,publishedprocessingobjectrequiredUpload and processing state:processing(videos and audio are being processed),ready, orfailedwith a readableerror. A media can be put in a post while processing.2fields
statestringrequiredOne of:processing,ready,failederrorstringrequirednullable
previewUrlstringrequirednullableSigned URL (valid about one hour) of the image itself or of the video's poster;nullwhile there is none yet, and always for audio.mediaUrlstringrequiredSigned URL (valid about one hour) of the original file, served inline. To save the file under its name, use the media'sdownload-url.playbackobjectrequirednullableHLS playback of a processed video (manifestUrl, loaded by the Beplan app's player with its session), elsenull. Alwaysnullthrough the public API (/v1) and MCP: usemediaUrl, or the media'sdownload-url, to fetch the file.1field
manifestUrlstringrequired
publishCopyobjectrequirednullableThe 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.nullwhen every platform takes the original, or while it is being made.4fields
mimeTypestringrequiredwidthnumberrequiredheightnumberrequiredsizenumberrequired
transcriptMatchobject · MediaTranscriptMatchoptional3fields
snippetstringrequiredstartMsnumberrequiredsourcestringoptionalOne of:speech,scene
cropobject · MediaCropoptionalnullableThe 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 + widthandy + heightat most 1.7fields
versionnumberrequiredAlways1unitstringrequiredAlwayspercentxnumberrequiredfrom 0 to 1ynumberrequiredfrom 0 to 1widthnumberrequiredabove 0 to 1heightnumberrequiredabove 0 to 1aspectRationumberoptionalgreater than 0
publishedUrlstringoptionalnullablepublishedUrlKindstringoptionalnullableOne of:post,studiopublishStatestringoptionalOne of:pending,published,failedpublishErrorstringoptionalnullable
updatedAtstring (date-time)requiredLast change. Send it back asbaseUpdatedAtwhen saving so you never overwrite a change you haven't read.pendingApprovalobject · EditorPostPendingApprovaloptionalnullable5fields
idstring (uuid)requiredactionstringrequiredOne of:schedule,publish_nowscheduledAtstring (date-time)requirednullablecreatedAtstring (date-time)requiredurlstringrequired
scheduledViaobject · PostViaoptionalnullable2fields
kindstring · PublicConnectionKindrequiredOne of:personal_token,app,mcpnamestringrequired
beplanPromotionobject · EditorBeplanPromotionoptionalnullable4fields
userIdstringrequireduserNamestringrequireddisclosurestringrequiredmentionsBeplanbooleanrequired
approvalobject · PostApprovalSummaryrequired3fields
idstring (uuid)requiredstatusstringrequiredOne of:pending,approved,rejected,cancelled,expiredurlstringrequiredThe 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 -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)" 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(); 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
/organizations/{organizationId}/workspaces/{workspaceId}/posts/{postId}/retry-failed 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-Keyto 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 · CalendarPostrequired13fields
idstringrequiredtitlestringrequiredcaptionstringrequirednullablestatusstringrequiredready(finished, not scheduled),scheduled(waits forscheduledAt),in_process(being published),posted(published),failed(failed on at least one account: seeplatforms[].state).One of (may gain values):ready,scheduled,in_process,posted,failedscheduledAtstring (date-time)requirednullableordernumberrequiredPosition in the ready queue: Quick Fill takes ready posts in this order.formatsarray of objectrequired3fields in each item
idstringrequirednamestringrequiredcolorstringrequired
platformsarray of objectrequired5fields in each item
platformstringrequiredstatestringrequiredOne of:pending,published,failedurlstringrequirednullableerrorstringrequirednullableviewsnumberoptionalnullable
mediaarray of objectrequired2fields in each item
typestringrequiredOne of:image,video,gifthumbnailUrlstringrequirednullable
mediaCountnumberrequiredlinkWindowobject · PostLinkWindowoptional2fields
afterobject · LinkedPostRefrequirednullable3fields
idstringrequiredtitlestringrequiredscheduledAtstring (date-time)requirednullable
beforeobject · LinkedPostRefrequirednullable3fields
idstringrequiredtitlestringrequiredscheduledAtstring (date-time)requirednullable
pendingApprovalobject · PostCardPendingApprovaloptionalnullableThe approval request the post waits on (an integration asked to schedule or publish it);nullwhen none is pending.3fields
idstring (uuid)requiredactionstringrequiredschedule(atscheduledAt) orpublish_now.One of:schedule,publish_nowscheduledAtstring (date-time)requirednullableThe time asked for (schedule);nullforpublish_now.
scheduledViaobject · PostViaoptionalnullableThe 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);nullwhen a person did it, or never.2fields
kindstring · PublicConnectionKindrequiredOne of:personal_token,app,mcpnamestringrequired
202 Accepted
object · PostPendingApprovalResponse
dataobjectrequired14fields
idstringrequiredtitlestringrequiredcaptionstringrequirednullablestatusstringrequiredWhere the held post stands: unchanged by the request, so a draft staysidea,in_progressorin_reviewand a finished postready; a post that wasscheduledleft the schedule and isready. 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,failedscheduledAtstring (date-time)requirednullableordernumberrequiredPosition in the ready queue: Quick Fill takes ready posts in this order.formatsarray of objectrequired3fields in each item
idstringrequirednamestringrequiredcolorstringrequired
platformsarray of objectrequired5fields in each item
platformstringrequiredstatestringrequiredOne of:pending,published,failedurlstringrequirednullableerrorstringrequirednullableviewsnumberoptionalnullable
mediaarray of objectrequired2fields in each item
typestringrequiredOne of:image,video,gifthumbnailUrlstringrequirednullable
mediaCountnumberrequiredlinkWindowobject · PostLinkWindowoptional2fields
afterobject · LinkedPostRefrequirednullable3fields
idstringrequiredtitlestringrequiredscheduledAtstring (date-time)requirednullable
beforeobject · LinkedPostRefrequirednullable3fields
idstringrequiredtitlestringrequiredscheduledAtstring (date-time)requirednullable
pendingApprovalobject · PostCardPendingApprovaloptionalnullableThe approval request the post waits on (an integration asked to schedule or publish it);nullwhen none is pending.3fields
idstring (uuid)requiredactionstringrequiredschedule(atscheduledAt) orpublish_now.One of:schedule,publish_nowscheduledAtstring (date-time)requirednullableThe time asked for (schedule);nullforpublish_now.
scheduledViaobject · PostViaoptionalnullableThe 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);nullwhen a person did it, or never.2fields
kindstring · PublicConnectionKindrequiredOne of:personal_token,app,mcpnamestringrequired
approvalobject · PostApprovalSummaryrequired3fields
idstring (uuid)requiredstatusstringrequiredOne of:pending,approved,rejected,cancelled,expiredurlstringrequiredThe 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 -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)" 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(); 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
/organizations/{organizationId}/workspaces/{workspaceId}/posts/{postId}/schedule 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-Keyto 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)requiredWhen to publish, ISO 8601 UTC; must be in the future.methodstringoptionalBeplan's own app only (product analytics). Integrations omit it.One of:calendar_drag,calendar_slot,quick_fill,editor
Responses
200 OK
object · PostResponse
dataobject · CalendarPostrequired13fields
idstringrequiredtitlestringrequiredcaptionstringrequirednullablestatusstringrequiredready(finished, not scheduled),scheduled(waits forscheduledAt),in_process(being published),posted(published),failed(failed on at least one account: seeplatforms[].state).One of (may gain values):ready,scheduled,in_process,posted,failedscheduledAtstring (date-time)requirednullableordernumberrequiredPosition in the ready queue: Quick Fill takes ready posts in this order.formatsarray of objectrequired3fields in each item
idstringrequirednamestringrequiredcolorstringrequired
platformsarray of objectrequired5fields in each item
platformstringrequiredstatestringrequiredOne of:pending,published,failedurlstringrequirednullableerrorstringrequirednullableviewsnumberoptionalnullable
mediaarray of objectrequired2fields in each item
typestringrequiredOne of:image,video,gifthumbnailUrlstringrequirednullable
mediaCountnumberrequiredlinkWindowobject · PostLinkWindowoptional2fields
afterobject · LinkedPostRefrequirednullable3fields
idstringrequiredtitlestringrequiredscheduledAtstring (date-time)requirednullable
beforeobject · LinkedPostRefrequirednullable3fields
idstringrequiredtitlestringrequiredscheduledAtstring (date-time)requirednullable
pendingApprovalobject · PostCardPendingApprovaloptionalnullableThe approval request the post waits on (an integration asked to schedule or publish it);nullwhen none is pending.3fields
idstring (uuid)requiredactionstringrequiredschedule(atscheduledAt) orpublish_now.One of:schedule,publish_nowscheduledAtstring (date-time)requirednullableThe time asked for (schedule);nullforpublish_now.
scheduledViaobject · PostViaoptionalnullableThe 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);nullwhen a person did it, or never.2fields
kindstring · PublicConnectionKindrequiredOne of:personal_token,app,mcpnamestringrequired
202 Accepted
object · PostPendingApprovalResponse
dataobjectrequired14fields
idstringrequiredtitlestringrequiredcaptionstringrequirednullablestatusstringrequiredWhere the held post stands: unchanged by the request, so a draft staysidea,in_progressorin_reviewand a finished postready; a post that wasscheduledleft the schedule and isready. 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,failedscheduledAtstring (date-time)requirednullableordernumberrequiredPosition in the ready queue: Quick Fill takes ready posts in this order.formatsarray of objectrequired3fields in each item
idstringrequirednamestringrequiredcolorstringrequired
platformsarray of objectrequired5fields in each item
platformstringrequiredstatestringrequiredOne of:pending,published,failedurlstringrequirednullableerrorstringrequirednullableviewsnumberoptionalnullable
mediaarray of objectrequired2fields in each item
typestringrequiredOne of:image,video,gifthumbnailUrlstringrequirednullable
mediaCountnumberrequiredlinkWindowobject · PostLinkWindowoptional2fields
afterobject · LinkedPostRefrequirednullable3fields
idstringrequiredtitlestringrequiredscheduledAtstring (date-time)requirednullable
beforeobject · LinkedPostRefrequirednullable3fields
idstringrequiredtitlestringrequiredscheduledAtstring (date-time)requirednullable
pendingApprovalobject · PostCardPendingApprovaloptionalnullableThe approval request the post waits on (an integration asked to schedule or publish it);nullwhen none is pending.3fields
idstring (uuid)requiredactionstringrequiredschedule(atscheduledAt) orpublish_now.One of:schedule,publish_nowscheduledAtstring (date-time)requirednullableThe time asked for (schedule);nullforpublish_now.
scheduledViaobject · PostViaoptionalnullableThe 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);nullwhen a person did it, or never.2fields
kindstring · PublicConnectionKindrequiredOne of:personal_token,app,mcpnamestringrequired
approvalobject · PostApprovalSummaryrequired3fields
idstring (uuid)requiredstatusstringrequiredOne of:pending,approved,rejected,cancelled,expiredurlstringrequiredThe 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 -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"
}' 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(); 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 -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"
}' 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(); 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
/organizations/{organizationId}/workspaces/{workspaceId}/posts/{postId}/schedule-next-slot 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-Keyto 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)optionalLook for the first free slot after this instant (ISO 8601 UTC) instead of after now.
Responses
200 OK
object · PostResponse
dataobject · CalendarPostrequired13fields
idstringrequiredtitlestringrequiredcaptionstringrequirednullablestatusstringrequiredready(finished, not scheduled),scheduled(waits forscheduledAt),in_process(being published),posted(published),failed(failed on at least one account: seeplatforms[].state).One of (may gain values):ready,scheduled,in_process,posted,failedscheduledAtstring (date-time)requirednullableordernumberrequiredPosition in the ready queue: Quick Fill takes ready posts in this order.formatsarray of objectrequired3fields in each item
idstringrequirednamestringrequiredcolorstringrequired
platformsarray of objectrequired5fields in each item
platformstringrequiredstatestringrequiredOne of:pending,published,failedurlstringrequirednullableerrorstringrequirednullableviewsnumberoptionalnullable
mediaarray of objectrequired2fields in each item
typestringrequiredOne of:image,video,gifthumbnailUrlstringrequirednullable
mediaCountnumberrequiredlinkWindowobject · PostLinkWindowoptional2fields
afterobject · LinkedPostRefrequirednullable3fields
idstringrequiredtitlestringrequiredscheduledAtstring (date-time)requirednullable
beforeobject · LinkedPostRefrequirednullable3fields
idstringrequiredtitlestringrequiredscheduledAtstring (date-time)requirednullable
pendingApprovalobject · PostCardPendingApprovaloptionalnullableThe approval request the post waits on (an integration asked to schedule or publish it);nullwhen none is pending.3fields
idstring (uuid)requiredactionstringrequiredschedule(atscheduledAt) orpublish_now.One of:schedule,publish_nowscheduledAtstring (date-time)requirednullableThe time asked for (schedule);nullforpublish_now.
scheduledViaobject · PostViaoptionalnullableThe 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);nullwhen a person did it, or never.2fields
kindstring · PublicConnectionKindrequiredOne of:personal_token,app,mcpnamestringrequired
202 Accepted
object · PostNextSlotPendingApprovalResponse
dataobjectrequired15fields
idstringrequiredtitlestringrequiredcaptionstringrequirednullablestatusstringrequiredWhere the held post stands: unchanged by the request, so a draft staysidea,in_progressorin_reviewand a finished postready; a post that wasscheduledleft the schedule and isready. 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,failedscheduledAtstring (date-time)requirednullableordernumberrequiredPosition in the ready queue: Quick Fill takes ready posts in this order.formatsarray of objectrequired3fields in each item
idstringrequirednamestringrequiredcolorstringrequired
platformsarray of objectrequired5fields in each item
platformstringrequiredstatestringrequiredOne of:pending,published,failedurlstringrequirednullableerrorstringrequirednullableviewsnumberoptionalnullable
mediaarray of objectrequired2fields in each item
typestringrequiredOne of:image,video,gifthumbnailUrlstringrequirednullable
mediaCountnumberrequiredlinkWindowobject · PostLinkWindowoptional2fields
afterobject · LinkedPostRefrequirednullable3fields
idstringrequiredtitlestringrequiredscheduledAtstring (date-time)requirednullable
beforeobject · LinkedPostRefrequirednullable3fields
idstringrequiredtitlestringrequiredscheduledAtstring (date-time)requirednullable
pendingApprovalobject · PostCardPendingApprovaloptionalnullableThe approval request the post waits on (an integration asked to schedule or publish it);nullwhen none is pending.3fields
idstring (uuid)requiredactionstringrequiredschedule(atscheduledAt) orpublish_now.One of:schedule,publish_nowscheduledAtstring (date-time)requirednullableThe time asked for (schedule);nullforpublish_now.
scheduledViaobject · PostViaoptionalnullableThe 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);nullwhen a person did it, or never.2fields
kindstring · PublicConnectionKindrequiredOne of:personal_token,app,mcpnamestringrequired
approvalobject · PostApprovalSummaryrequired3fields
idstring (uuid)requiredstatusstringrequiredOne of:pending,approved,rejected,cancelled,expiredurlstringrequiredThe 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)requiredThe 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 -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)" 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(); 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 -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"
}' 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(); 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 -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)" 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(); 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
/organizations/{organizationId}/workspaces/{workspaceId}/posts/{postId}/unschedule posts.unschedule - Scope
- posts:publish
- Role permission
- Unschedule posts (
post:unschedule) - Effect
- Changes data in Beplan.
- Idempotency
- Send an
Idempotency-Keyto 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
withLinkedPostsbooleanoptionaltrue: the scheduled posts that link to this one are unscheduled with it.
Responses
200 OK
object · PostResponse
dataobject · CalendarPostrequired13fields
idstringrequiredtitlestringrequiredcaptionstringrequirednullablestatusstringrequiredready(finished, not scheduled),scheduled(waits forscheduledAt),in_process(being published),posted(published),failed(failed on at least one account: seeplatforms[].state).One of (may gain values):ready,scheduled,in_process,posted,failedscheduledAtstring (date-time)requirednullableordernumberrequiredPosition in the ready queue: Quick Fill takes ready posts in this order.formatsarray of objectrequired3fields in each item
idstringrequirednamestringrequiredcolorstringrequired
platformsarray of objectrequired5fields in each item
platformstringrequiredstatestringrequiredOne of:pending,published,failedurlstringrequirednullableerrorstringrequirednullableviewsnumberoptionalnullable
mediaarray of objectrequired2fields in each item
typestringrequiredOne of:image,video,gifthumbnailUrlstringrequirednullable
mediaCountnumberrequiredlinkWindowobject · PostLinkWindowoptional2fields
afterobject · LinkedPostRefrequirednullable3fields
idstringrequiredtitlestringrequiredscheduledAtstring (date-time)requirednullable
beforeobject · LinkedPostRefrequirednullable3fields
idstringrequiredtitlestringrequiredscheduledAtstring (date-time)requirednullable
pendingApprovalobject · PostCardPendingApprovaloptionalnullableThe approval request the post waits on (an integration asked to schedule or publish it);nullwhen none is pending.3fields
idstring (uuid)requiredactionstringrequiredschedule(atscheduledAt) orpublish_now.One of:schedule,publish_nowscheduledAtstring (date-time)requirednullableThe time asked for (schedule);nullforpublish_now.
scheduledViaobject · PostViaoptionalnullableThe 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);nullwhen a person did it, or never.2fields
kindstring · PublicConnectionKindrequiredOne of:personal_token,app,mcpnamestringrequired
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 -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
}' 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(); 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
}
}