BulkPublish API
Publish to 15 social media platforms from a single API.
Using this API from an AI agent
BulkPublish is also an MCP server, so Claude, ChatGPT, Cursor and other agents can drive it directly. The two servers below expose different amounts of what is documented here.
Hosted (web-based hosts): add https://mcp.bulkpublish.com/mcp as a custom connector. It supports OAuth 2.1 — you paste your API key once on the consent screen — or a key in the URL (?key=bp_...) for hosts without OAuth. It exposes a focused set of tools — channels, posts, media, analytics, and the interactive panels — not one per endpoint below.
Local (Claude Code, Cursor, Codex, Windsurf): npx -y @bulkpublish/mcp-server, with BULKPUBLISH_API_KEY in the environment. This one exposes the full tool set, including schedules, RSS feeds, labels and quotas.
Per-client config and the full tool list: BulkPublish AI Toolkit. Get an API key at /developer.
Team roles and seats
Every write request runs with the role of the member who owns the API key or authorized the app. A role that does not allow an action gets 403 FORBIDDEN (or APPROVAL_REQUIRED when the post must go through approval instead). When a workspace has more members than its plan includes (for example after a downgrade), the members who joined most recently beyond the plan's seats are read-only: their write requests get 403 SEAT_LIMIT until the owner upgrades or frees a seat. The owner always keeps full access, and removing a member or leaving still work.
Read-only API keys
An API key created as Read-only can read but never change anything, whatever its owner's role: every change is refused with 403: INSUFFICIENT_SCOPE where a full-access key could make it, and FORBIDDEN on surfaces a read-only key may not reach at all (account administration such as team, organizations, billing, API keys and webhooks, plus channel settings), even to read. A few reads fetch live data from a network, such as mention search and the channel health check; like any key, a read-only key can make them, and on X they count against the workspace's X read allowance. GET /api/channels reports this in capabilities, so a client can check before it tries a write.
Posts
Create, schedule, publish, and manage posts across platforms
GET /api/posts — List posts
Retrieve posts with pagination, filtering, and search. Results are ordered newest-first by the timestamp that applies to each post — publishedAt if it is live, else scheduledAt if it is due, else createdAt — with id descending as a tiebreaker. A post written weeks before it publishes therefore sorts by when it went live, not when it was drafted.
Parameters
| Name | Type | Description |
|---|---|---|
page (query) | integer | optional — Page number (default: 1) |
limit (query) | integer | optional — Items per page, max 500 (default: 20) |
status (query) | "draft" | "scheduled" | "publishing" | "published" | "processing" | "failed" | "partial" | optional — Filter by post status. A value outside this list answers 400; it is not a post status that happens to match nothing. Note that |
channelId (query) | integer | optional — Filter by channel ID |
labelIds (query) | string | optional — Comma-separated label IDs to filter by |
labelId (query) | integer | optional — Filter by single label ID (legacy, prefer labelIds) |
labelMode (query) | "or" | "and" | optional — How to combine label filters (default: or) |
search (query) | string | optional — Search in post content |
from (query) | string | optional — Filter posts created on or after this date |
to (query) | string | optional — Filter posts created on or before this date |
scheduledFrom (query) | string | optional — Filter posts scheduled on or after this date |
scheduledTo (query) | string | optional — Filter posts scheduled on or before this date |
recurring (query) | string | optional — Set to "true" to filter recurring posts only |
approvalStatus (query) | "none" | "pending" | "approved" | "rejected" | Filter by team approval state (e.g. 'pending' for the approval queue). Orthogonal to |
assignedTo (query) | string | Filter by who the post is assigned to: a user id, |
order (query) | "asc" | "desc" | Direction of the timeline sort. Posts are ordered by the timestamp that matters for each one — when it published, else when it is due, else when it was created. |
Responses
200Posts list with pagination
POST /api/posts — Create post
Create a new post as draft or scheduled. Validates character limits per platform, media ownership, channel ownership, and plan quotas.
Character limits: X: 280, Bluesky: 300, Threads: 500, Mastodon: 500, Pinterest: 500, GMB: 1500, Instagram: 2200, TikTok: 2200, LinkedIn: 3000, YouTube: 5000, Facebook: 63206. On X and Mastodon every URL counts as a flat 23 characters (t.co wrapping / Mastodon link counting), regardless of its real length.
Link cards: for a text-only post (no media) containing a URL, the first URL is unfurled at publish time. Facebook receives it as the link param, Bluesky as an external embed (with thumbnail), and LinkedIn as a content.article card (LinkedIn's API never scrapes URLs itself; if the page yields no title, the post publishes as plain text without a card). Other platforms unfurl the URL themselves or render it as plain text (links in Instagram/TikTok captions are not clickable).
Returns 403 with code: "PLATFORM_DISABLED" when a target channel's platform has been switched off server-side (PLATFORM_<NAME>=off). This is distinct from FEATURE_DISABLED, which means the platform is not on the organization's plan. Check GET /api/platforms for current availability. A channel's variant can be off on its own — LinkedIn company pages are gated separately from personal profiles — in which case the error also carries accountType (e.g. "organization") naming the variant that is unavailable. Requires a role that can edit posts (owner, admin, approver, contributor); viewers get 403 FORBIDDEN.
Request body
| Name | Type | Description |
|---|---|---|
content | string | Post text content (optional if media attached). LinkedIn mentions: write @Display Name to mention a Page or @Display Name to mention a person; the token publishes as a real mention on LinkedIn and as plain @Display Name on every other channel of the same post, and counts as @Display Name toward every character limit. GET /api/channels/{id}/mentions?q=<vanity-name> on a LinkedIn channel returns ready-made tokens for Pages (exact match on the Page's URL slug; a personal channel borrows a connected Page's access for the lookup). Reserved LinkedIn formatting characters in the rest of the text are escaped for you at publish time, so send plain text and never pre-escape it yourself. |
channels required | object[] | Required. Target channels to publish to |
status | "draft" | "scheduled" | Optional. Default: draft |
mediaFiles | integer[] | Optional. Media file IDs from POST /api/media |
scheduledAt | string | Optional. Required when status is 'scheduled' |
timezone | string | Optional. IANA timezone (default: UTC) |
labels | integer[] | Optional. Label IDs to attach |
postFormat | "post" | "video" | "reel" | "story" | "carousel" | "thread" | Optional. Default: post |
postTypeOverrides | object | Optional. Per-platform post type override. E.g. { "instagram": "reel", "facebook": "story" }. A type the platform does not offer is rejected with 400 VALIDATION_ERROR (previously it silently fell back to the platform default). Instagram: feed_photo, feed_video, reel, story, carousel. Facebook: post, reel, story. TikTok: video, photo_slideshow. YouTube: video, short. LinkedIn: post, multi_image, pdf_carousel, article, document, poll, reshare. Pinterest: pin, video_pin, carousel. GMB: standard, event, offer. Snapchat: story, saved_story, spotlight. Video length is checked against each platform's documented range for the chosen type, and a video outside it is rejected with 400 VALIDATION_ERROR when the post is scheduled or published: Instagram reel and feed_video 3–900s, story 3–60s; Facebook reel 3–90s, story 3–60s; Threads video and carousel up to 300s; LinkedIn 3–1800s; Pinterest video_pin at least 4s; Snapchat story 5–60s, spotlight 6–60s. Other types and platforms are not length-checked. LinkedIn post types: |
platformSpecific | object | Per-platform options. Keys are platform names. Facebook: { shareToStory, thumbnailUrl, textFormatPresetId }. thumbnailUrl is the cover for a video or Reel; it is applied to the video after it publishes, so it lands a moment after the post, and a cover that cannot be fetched or is rejected leaves the video published with Facebook's own chosen frame rather than failing the post. textFormatPresetId (string of digits, a Facebook background ID; anything else is rejected with 400 VALIDATION_ERROR) shows a short text post on a coloured background. It is used only on a Page feed post with no photo, video or link card and at most 130 characters; anywhere else it is left out and the post publishes as plain text. Facebook retires backgrounds over time, so if Facebook refuses the background the post is published once more without it rather than failing. Instagram: { collaborators, shareToStory, userTags, shareToFeed, locationId, trialReel (post types |
platformContent | object | Optional. Per-platform content overrides mapping platform name to a plain string, e.g. { "x": "Short version" }. Values must be strings — nested objects are rejected with 400 VALIDATION_ERROR. Each platform's character limit is checked against its own override when it has one, and against |
platformMediaFileIds | object | Optional. Which of the post's media each platform publishes, keyed by platform, e.g. { "instagram": [12, 14], "facebook": [] }. A platform that is not listed publishes all of mediaFiles, in order. A listed platform publishes exactly the files in its list, in that order; an empty list publishes it without media. Every id must also be in mediaFiles. Ignored for thread posts, whose parts carry their own media. Instagram's userTags mediaIndex keeps counting mediaFiles; TikTok's photoCoverIndex counts the images in TikTok's own list. With repeatSchedule, the choice is copied onto the repeat schedule, so every run gives each platform the same files. An id that is not in mediaFiles is rejected with 400 VALIDATION_ERROR. Each platform's media limits (how many files, which types) are checked against its own list. |
deleteMediaAfterPublish | boolean | Optional. Delete uploaded media right after publishing (default: false — media is kept and reclaimed by the 3-month retention sweep). When true, the original is removed once every channel has published and stops counting toward your media storage limit. Forced to false when the post has a repeatSchedule. |
threadParts | object[] | Optional. Required when postFormat is 'thread' (min 2 parts). A part with neither text nor media is left out when the thread publishes, since no network accepts an empty segment. |
platformThreadParts | object | Optional. Per-platform thread parts, e.g. { "x": [{ "content": "Part 1" }, { "content": "Part 2" }] }. In a thread post (postFormat 'thread') they replace threadParts for that platform. In any other post, a thread-capable platform (x, threads, bluesky, mastodon) whose postTypeOverrides value is 'thread' and that has at least 2 parts here publishes them as its own thread while the other platforms publish the post as usual (for example an X thread and an Instagram Reel from one post); sending it fewer than 2 parts is a 400 VALIDATION_ERROR, and a 'thread' override with no entry here publishes as an ordinary post. Not available with repeatSchedule (400 VALIDATION_ERROR): a repeat post's schedule does not keep per-platform parts. For such a platform its parts are measured against its character limit instead of content, and the post's shared media is not checked against it. Entries for platforms not set to 'thread' are dropped outside a thread post. Part content must be a plain string — non-string shapes are rejected with 400 VALIDATION_ERROR. |
repeatSchedule | object | Optional. Recurring schedule config |
autoPlugEnabled | boolean | Optional. Auto-post a comment when the post reaches a like threshold |
autoPlugText | string | Optional. The promotional comment text for auto-plug |
autoPlugThreshold | integer | Optional. Number of likes to trigger auto-plug (default: 50). Whole number from 0 to 2147483647; outside that range the request is rejected. |
autoRepostEnabled | boolean | Optional. Auto-repost/reshare when the post reaches a like threshold |
autoRepostThreshold | integer | Optional. Number of likes to trigger auto-repost (default: 100). Whole number from 0 to 2147483647; outside that range the request is rejected. |
requestApproval | boolean | Optional. Set true to hold a scheduled post for team approval (approvalStatus becomes 'pending'). Forced on server-side for roles without post:publish (contributors), regardless of this flag. |
publishWhenApproved | boolean | Optional. Set true on a post that waits for approval when it should go out as soon as it is approved, even if that is after its scheduled time (the "publish now" of someone who needs approval: schedule it for now, with requestApproval or a contributor role, and send this). It decides what an approval that arrives more than 15 minutes after the scheduled time does: true publishes it immediately; false (the default) approves it but returns it to draft for a new time. An approver can override either way with whenLate on POST /api/posts/{id}/approve. Stored only when the post ends up with approvalStatus 'pending'; otherwise it is saved as false. Must be a boolean (400 VALIDATION_ERROR otherwise). |
linkTrackingOverride | boolean | null | Per-post override for link tracking (bulkpubli.sh). |
Responses
201Post created400Validation error (character limit, missing fields), orCHANNEL_INACTIVEwhen a scheduled or publish-now post names a disconnected channel (error.channelIdslists them; drafts may still name one)403Platform not on the plan (FEATURE_DISABLED) or switched off server-side (PLATFORM_DISABLED)422Quota exceeded
GET /api/posts/{id} — Get post
Returns full post details including recurringScheduleId and recurringSchedule when the post is linked to a recurring schedule.
Parameters
| Name | Type | Description |
|---|---|---|
id (path) required | integer |
Responses
200Post details404Not found
PUT /api/posts/{id} — Update post
Update a draft, scheduled, failed, or partial post. Note: the per-platform object fields (platformSpecific, platformContent, postTypeOverrides, platformThreadParts) are replaced wholesale, not merged — send the complete object including keys for every platform you want to keep. Sending a partial object (e.g. only one platform's content) removes the stored values for all other platforms. Editing a FAILED post silently resets its status to draft and clears its failed platform results (they revert to pending). Editing a PARTIAL post keeps it partial and leaves every platform row untouched — it is live on some channels; re-send the failed ones with POST /api/posts/{id}/retry, or send status 'scheduled' with a scheduledAt, which re-queues exactly the failed channels for that time. Platforms in 'published', 'processing', or 'unconfirmed' are never reset by an edit. When channels is sent, rows for channels that remain keep their state (a published channel is NOT re-published on the next publish); removed channels are dropped and new ones added as pending. A channel whose destination has already gone out (status published, publishing, processing or unconfirmed) cannot be left out: the request is refused with 400 CHANNEL_ALREADY_PUBLISHED before anything is saved, and error.channelIds lists the channels concerned. The post stays live on those platforms either way; keep them in the list. Send the optional status field ('draft' or 'scheduled') to move a post between draft and scheduled; other status values are rejected. To publish immediately, use POST /api/posts/{id}/publish instead. Requires a role that can edit posts (owner, admin, approver, contributor); viewers get 403 FORBIDDEN.
Parameters
| Name | Type | Description |
|---|---|---|
id (path) required | integer |
Request body
| Name | Type | Description |
|---|---|---|
content | string | |
mediaFiles | integer[] | |
scheduledAt | string | |
status | "draft" | "scheduled" | Move the post between draft and scheduled. Setting 'scheduled' requires a future scheduledAt (in this body or already stored) and at least one channel; setting 'draft' unschedules it. Any other value is rejected. Omit to leave the status unchanged (a failed post still auto-resets to draft on edit; a partial post stays partial). Setting 'scheduled' on a partial post re-queues its failed channels only; published channels are not re-sent. To publish immediately, use POST /api/posts/{id}/publish instead. |
channels | any[] | Full target channel list ({ channelId, platform } items). Rows for channels already on the post are kept with their current publish state; removed channels are deleted; new channels are added as pending. A channel that has already published (or may have: |
labels | integer[] | |
platformSpecific | object | Per-platform options, keyed by platform. Replaced wholesale on update (not merged). Accepts the same per-platform options and validation as |
platformContent | object | Per-platform content overrides, keyed by platform; values must be plain strings (nested objects are rejected with 400 VALIDATION_ERROR). Replaced wholesale on update. |
platformMediaFileIds | object | Optional. Which of the post's media each platform publishes, keyed by platform, e.g. { "instagram": [12, 14], "facebook": [] }. A platform that is not listed publishes all of mediaFiles, in order. A listed platform publishes exactly the files in its list, in that order; an empty list publishes it without media. Every id must also be in mediaFiles. Ignored for thread posts, whose parts carry their own media. Instagram's userTags mediaIndex keeps counting mediaFiles; TikTok's photoCoverIndex counts the images in TikTok's own list. Sending it replaces the stored choice. When it is omitted but mediaFiles changes, files no longer attached are dropped from each list, and a platform left with none of the files it named goes back to all of the post's media. |
postTypeOverrides | object | Per-platform post type overrides, keyed by platform. Replaced wholesale on update. LinkedIn accepts post, multi_image, pdf_carousel, article, document, poll and reshare; the |
postFormat | "post" | "thread" | Post format. Defaults to 'post'. |
threadParts | object[] | Thread segments (required when postFormat is 'thread'; at least 2). Each part: { content, mediaFileIds }. EVERY part is measured against the character limit of every platform the post targets, not just the first one — a part over the limit is rejected with 400 VALIDATION_ERROR naming the part number, the platform and its limit. URLs count the way the platform counts them (23 characters on X and Mastodon). A part with neither text nor media is left out when the thread publishes, since no network accepts an empty segment. |
requestApproval | boolean | Optional. Set true to hold a scheduled post for team approval (approvalStatus becomes 'pending'). Forced on server-side for roles without post:publish (contributors), regardless of this flag. |
publishWhenApproved | boolean | Optional. See POST /api/posts. An explicit value is stored while the post waits for approval. When omitted, it is kept, except that giving the post a different scheduledAt clears it to false (a picked time is not "as soon as possible"), and it is always false once the post no longer has approvalStatus 'pending' (approving or rejecting it clears it too). When an approved post goes back for review, it starts from false unless this request sets it. Must be a boolean (400 VALIDATION_ERROR otherwise). |
linkTrackingOverride | boolean | null | Per-post override for link tracking (bulkpubli.sh). |
ifUnmodifiedSince | string | Optional precondition: the post's |
Responses
200Updated post400Validation error, includingCHANNEL_ALREADY_PUBLISHEDwhenchannelsleaves out a channel the post has already gone out on409Somebody else changed the post after the ifUnmodifiedSince you sent. The error body carries the post's current updatedAt.
PATCH /api/posts/{id} — Attach or detach a post's recurring schedule
Narrow companion to PUT. This endpoint ONLY accepts recurringScheduleId — passing null detaches the post from its repeat schedule (and deactivates that schedule if it is left orphaned).
Any other field (including status and scheduledAt) is rejected with 400 and unsupportedFields listing what was sent. To edit a post — including moving a draft to scheduled — use PUT /api/posts/{id} with { "status": "scheduled", "scheduledAt": "<future ISO 8601>" }. Requires a role that can edit posts (owner, admin, approver, contributor); viewers get 403 FORBIDDEN.
Parameters
| Name | Type | Description |
|---|---|---|
id (path) required | integer |
Request body
| Name | Type | Description |
|---|---|---|
recurringScheduleId | integer | null | Repeat-schedule id to attach, or null to detach. Must be a repeat schedule in your organization: any other id is refused with 422 VALIDATION_ERROR, and a value that is not a positive integer or null with 400 VALIDATION_ERROR. |
ifUnmodifiedSince | string | Optional precondition: the post's |
assignedUserId | string | null | The member expected to act on this post next, or null to unassign. Must be a member of the organization (422 otherwise). Deliberately not on PUT: that is the full-document save, and it would clear an assignment a teammate made while the post was open in an editor. |
Responses
200Updated post400A field other than recurringScheduleId, ifUnmodifiedSince or assignedUserId was sent (use PUT instead), or recurringScheduleId is not a positive integer or null, or assignedUserId is not a string or null404Post not found409Somebody else changed the post after the ifUnmodifiedSince you sent. The error body carries the post's current updatedAt.422recurringScheduleId or assignedUserId does not belong to this organization
DELETE /api/posts/{id} — Delete post
Returns 409 with code PUBLISH_IN_PROGRESS while the post is 'publishing' or 'processing' — a post mid-publish cannot be deleted (the platform post would still go live with no record of it). Wait for it to settle, then delete. Requires a role that can edit posts (owner, admin, approver, contributor); viewers get 403 FORBIDDEN.
Parameters
| Name | Type | Description |
|---|---|---|
id (path) required | integer |
Responses
200Deleted409Post is being published right now (code PUBLISH_IN_PROGRESS)
POST /api/posts/{id}/publish — Publish immediately
Requires a role with post:publish — contributors get 403 APPROVAL_REQUIRED and must submit the post for approval instead (create/update with requestApproval, then a teammate approves). Publishing a pending/rejected post as an approver implicitly approves it.
Returns 403 with code: "PLATFORM_DISABLED" when one of the post's platforms has been switched off server-side (PLATFORM_<NAME>=off); the post is left untouched. Check GET /api/platforms for current availability. A channel's variant can be off on its own — LinkedIn company pages are gated separately from personal profiles — in which case the error also carries accountType (e.g. "organization") naming the variant that is unavailable.
On a failed or partial post this re-sends exactly the platforms in status 'failed' (their retryCount is incremented); 'published', 'processing' and 'pending' rows are never re-sent. Platforms in 'unconfirmed' are never touched here — if they are the only rows left the request fails with 400 code: "UNCONFIRMED_REQUIRES_REPUBLISH"; check the account, then use POST /api/posts/{id}/retry with republish: true. Returns 409 ALREADY_PUBLISHING when a publish is already in flight.
Parameters
| Name | Type | Description |
|---|---|---|
id (path) required | integer |
Responses
200Publishing started400Validation error, or only unconfirmed platforms remain (code UNCONFIRMED_REQUIRES_REPUBLISH)403Role cannot publish, or a target platform is switched off server-side (PLATFORM_DISABLED)409A publish for this post is already in flight (code ALREADY_PUBLISHING)
POST /api/posts/{id}/retry — Retry failed platforms
Re-queues this post's failed platforms. Platforms in status 'unconfirmed' (the publish request may have reached the platform but its response was lost — the post may already be live) are NOT retried unless the body passes republish: true; without it the request fails with code UNCONFIRMED_REQUIRES_REPUBLISH. Check the account before passing republish: true — retrying an unconfirmed platform can duplicate the post. Requires a role that can publish (owner, admin, approver); contributors and viewers get 403 FORBIDDEN.
Parameters
| Name | Type | Description |
|---|---|---|
id (path) required | integer |
Request body
| Name | Type | Description |
|---|---|---|
republish | boolean | Explicit opt-in to also retry platforms in status 'unconfirmed'. Their publish may have already gone through; retrying can create a duplicate post. |
Responses
200Retry queued400No failed platforms, or unconfirmed platforms present without republish: true (code UNCONFIRMED_REQUIRES_REPUBLISH)
GET /api/posts/{id}/metrics — Get post metrics
Per-platform engagement metrics with history snapshots.
Parameters
| Name | Type | Description |
|---|---|---|
id (path) required | integer |
Responses
200Metrics per platform. Each entry inplatformscarriesmetricsSupported(false when the platform exposes no readable per-post statistics API — Google Business, Telegram, Tumblr (which reports only a combined note count that cannot be split into likes/reblogs/replies), and LinkedIn personal/profile channels; also an X post that has never been synced because its channel has not turned on X metrics sync) andsupportedMetrics, the list of metric keys that platform's API can populate.supportedMetricscan also depend on the post type: an Instagram story lists onlyimpressions,reach,comments(story replies) andengagementRate, because story insights have no likes, saves or shares. Every other key onlatestis stored as 0 by the metrics sync regardless of what the platform returned, so those zeroes mean “not reported” and must not be presented as measurements. Each platform entry carrieslinkClicks, andtotals.linkClickssums them: clicks on bulkpubli.sh short links in this post, measured by BulkPublish. It sits OUTSIDElatestbecause it is not a platform snapshot — a platform that reports nothing still has link clicks — and is distinct from the platform-reportedclicksfield.supportedMetricstherefore always includeslinkClicks, even whenmetricsSupportedis false.
GET /api/posts/{id}/engagement — Get post engagement (commenters + reactors)
Returns per-platform lists of the people/pages who commented on or reacted to a published post — with name, handle/headline, profile photo and profile URL when the platform exposes them.
Ten of the fifteen platforms return engagement: Facebook, Instagram, X, LinkedIn, YouTube, Threads, Bluesky, Mastodon, Discord and Tumblr. Platforms that expose commenters but never individual likers (Instagram, YouTube, Threads) populate comments only and set reactionsUnsupported: true plus an explanatory notice.
Exactly five platforms have no comment API at all and return unsupported: true with a notice saying why: TikTok (comments are Research-API only), Pinterest (v5 exposes no Pin comments), Google Business (local posts have no comment surface; reviews attach to the location, not the post), Telegram (a bot learns of comments only through pushed updates, so they cannot be read on request) and Snapchat (the Public Profile API reports reply counts only, never individual comments).
Platform-specific behaviour worth knowing: X bills for every read, so each half has its own per-channel opt-in, set with PATCH /api/channels/{id}: replies are returned only when the channel has inboxSyncEnabled turned on, likers only when it has metricsSyncEnabled (the opt-in that governs X metrics), and either only while the org is within its read budget — otherwise that list is empty and commentsNotice/notice says which gate declined; X replies also come from recent search, which only covers the last 7 days. Tumblr has no comments endpoint — replies and reblogs-with-commentary map to comments, and likes plus bare reblogs to reactions. Discord returns reactors plus the replies in a thread started from the message; plain channel replies are ordinary messages elsewhere in the channel and are not fetched.
engagement is null (rather than an empty object) when the post was never published to that channel, or when the channel has no stored access token.
Parameters
| Name | Type | Description |
|---|---|---|
id (path) required | integer | |
commentsLimit (query) | integer | optional — Max comments per platform (default 25, max 100). Counts replies as well as top-level comments; when replies push a platform past the cap, |
reactionsLimit (query) | integer | optional — Max reactors per platform (default 25, max 100) |
Responses
200Engagement per platform404Post not found
POST /api/posts/{id}/story — Publish as Story
Publish the post's first media as a Facebook or Instagram Story (disappears after 24h). The post must have media and a published platform entry for the target platform. Stories publish inline and are single-flight per post+platform: a second call within ~2 minutes of a success returns 409 code: "STORY_IN_PROGRESS". If the request reached the platform but the response was lost, the call returns 422 code: "STORY_UNCONFIRMED" and stays locked for the same window — check the account before trying again, the story may already be live. Each attempt is recorded in the activity log (post.story_published / post.story_failed). Requires a role that can publish (owner, admin, approver); contributors and viewers get 403 FORBIDDEN.
Parameters
| Name | Type | Description |
|---|---|---|
id (path) required | integer |
Request body
| Name | Type | Description |
|---|---|---|
platform required | "facebook" | "instagram" | required — Target platform for the story |
Responses
200Story published400Invalid platform, no media, or no matching platform entry404Post not found409A story for this post+platform is already being published (code STORY_IN_PROGRESS)422The platform rejected the story, or its outcome could not be confirmed (code STORY_UNCONFIRMED)
POST /api/posts/bulk — Bulk actions
retry re-sends only platforms in status 'failed' that still have retry budget (retryCount < maxRetries), skips posts already mid-publish, and never touches 'unconfirmed' platforms (use the single retry endpoint with republish: true). delete skips posts that are 'publishing' or 'processing' and reports them in skippedInProgress. Requires a role that can edit posts (owner, admin, approver, contributor); viewers get 403 FORBIDDEN. reschedule applies the same scheduling limits as creating a scheduled post: drafts it moves into the queue count against the pending-scheduled limit, and posts it moves onto a day count against that day's limit (counted in the posts' own timezone; posts already on that day are not counted twice). Over a limit, nothing is changed and it returns 403 QUOTA_EXCEEDED. An unparseable scheduledAt returns 400. postIds takes at most 100 posts per request; send more in batches.
Request body
| Name | Type | Description |
|---|---|---|
action required | "delete" | "retry" | "reschedule" | |
postIds required | integer[] | IDs of the posts to act on, at most 100 per request. Send a larger selection in batches of 100; more than 100 returns 400 VALIDATION_ERROR and nothing is changed. |
scheduledAt | string |
Responses
200Bulk action completed400Invalid request (e.g. more than 100postIds, or an unparseablescheduledAt)403Role cannot edit posts (FORBIDDEN), orreschedulewould exceed a scheduling limit (QUOTA_EXCEEDED)
GET /api/posts/queue-slot — Get next available queue slot
Returns the next available time slot for scheduling a post based on your queue settings.
Parameters
| Name | Type | Description |
|---|---|---|
timezone (query) | string | optional — IANA timezone (default: UTC) |
position (query) | "next" | "end" | optional — |
excludePostId (query) | integer | optional — Leave this post's current slot out of the booked set, for rescheduling it: the queue's "move to top/bottom" passes the post being moved, then updates it with PUT /api/posts/{id}. Must be a numeric post ID. |
Responses
200Next available queue slot400timezoneis not an IANA timezone name, orposition/excludePostIdis invalid (VALIDATION_ERROR)422No open slot in the queue window (QUEUE_FULL)
POST /api/posts/{id}/approve — Approve a pending post
Requires a role with post:approve (owner, admin, approver). Releases a post with approvalStatus 'pending': it publishes at its scheduled time, or immediately if that time passed less than 15 minutes ago. If the scheduled time passed more than 15 minutes ago, the optional body field whenLate decides: 'publish' publishes it immediately (the response has status 'publishing'); 'hold' approves it but does not publish it: it comes back with status 'draft' (approvalStatus 'approved', scheduledAt unchanged) and the author is notified to choose a new time. When whenLate is omitted it follows the post's publishWhenApproved: true means 'publish', false means 'hold'. whenLate has no effect on a post whose time is still ahead or passed less than 15 minutes ago. The author is notified in-app either way. The body is optional; an empty body behaves like {}. Approving sets publishWhenApproved to false. Send ifUnmodifiedSince to make sure you approve the version you reviewed.
Parameters
| Name | Type | Description |
|---|---|---|
id (path) required | integer |
Request body
| Name | Type | Description |
|---|---|---|
whenLate | "publish" | "hold" | What to do if the post's scheduled time passed more than 15 minutes ago: 'publish' = publish now, 'hold' = approve and return it to draft for the author to pick a new time. Defaults to 'publish' when the post's publishWhenApproved is true, otherwise 'hold'. Any other value is rejected with 400 VALIDATION_ERROR. |
ifUnmodifiedSince | string | Optional. The post's updatedAt as you last loaded it. When sent, the post is approved only if it has not changed since; otherwise nothing is written and you get 409 CONFLICT with the current updatedAt in error.updatedAt, so you never approve (and publish) an edit you have not seen. Must be an ISO 8601 timestamp (400 VALIDATION_ERROR otherwise). Omit it to approve whatever version is current. |
Responses
200The approved post400Post is not awaiting approval, whenLate is not 'publish' or 'hold', or ifUnmodifiedSince is not an ISO 8601 timestamp403Role lacks post:approve404Post not found409The post changed since you loaded it (only checked when ifUnmodifiedSince is sent; error.updatedAt then carries the current value), or it is no longer awaiting approval because someone else approved, rejected or withdrew it first. Nothing was written. Reload it and review again.
POST /api/posts/{id}/reject — Reject a pending post
Requires a role with post:approve. The post returns to draft with approvalStatus 'rejected' and the optional reason; the author is notified and can edit + reschedule to resubmit for approval. Rejecting sets publishWhenApproved to false. Send ifUnmodifiedSince to make sure you reject the version you reviewed.
Parameters
| Name | Type | Description |
|---|---|---|
id (path) required | integer |
Request body
| Name | Type | Description |
|---|---|---|
reason | string | Optional. Shown to the author (in-app notification + on the post). |
ifUnmodifiedSince | string | Optional. The post's updatedAt as you last loaded it. When sent, the post is rejected only if it has not changed since; otherwise nothing is written and you get 409 CONFLICT with the current updatedAt in error.updatedAt. Must be an ISO 8601 timestamp (400 VALIDATION_ERROR otherwise). Omit it to reject whatever version is current. |
Responses
200The rejected post400Post is not awaiting approval, or ifUnmodifiedSince is not an ISO 8601 timestamp403Role lacks post:approve404Post not found409The post changed since you loaded it (only checked when ifUnmodifiedSince is sent; error.updatedAt then carries the current value), or it is no longer awaiting approval because someone else approved, rejected or withdrew it first. Nothing was written. Reload it and review again.
Channels
Connect and manage social media accounts
GET /api/channels — List channels
Returns all connected channels including tokenExpiresAt and metadata per channel. With active=false, disconnected channels are included too, at most 100 of them (the most recently updated first); active channels are always all returned.
Parameters
| Name | Type | Description |
|---|---|---|
active (query) | boolean | optional — Filter by active status (default: true). |
Responses
200Channel list
GET /api/channels/{id} — Get channel
Parameters
| Name | Type | Description |
|---|---|---|
id (path) required | integer |
Responses
200Channel details
PATCH /api/channels/{id} — Update channel settings
Per-channel opt-ins. Both switches apply to X channels only, where each read is billed, and each kind of read is off by default and only ever unlocked by its own switch: metricsSyncEnabled turns on analytics sync for the channel (synced at most once every 7 days) and the list of people who liked a post; inboxSyncEnabled turns on direct messages and replies to the channel's posts, together. Replies are no longer read under metricsSyncEnabled alone. A value of inboxSyncEnabled set before 2026-10-06 is not carried over: send it again to turn those reads back on. Fields not sent are left as they are; a body with neither field is rejected with 400. Requires a role that can manage channels (owner, admin, approver); contributors and viewers get 403 FORBIDDEN.
Parameters
| Name | Type | Description |
|---|---|---|
id (path) required | integer |
Request body
| Name | Type | Description |
|---|---|---|
metricsSyncEnabled | boolean | |
inboxSyncEnabled | boolean |
Responses
200Updated400No supported field in the body403Role cannot manage channels404Channel not found
DELETE /api/channels/{id} — Disconnect channel
Wipes the stored tokens so the account can no longer publish; published posts and their metrics are kept. Requires a role that can manage channels (owner, admin, approver); contributors and viewers get 403 FORBIDDEN.
Parameters
| Name | Type | Description |
|---|---|---|
id (path) required | integer |
Responses
200Disconnected
GET /api/channels/{id}/health — Check channel health
Parameters
| Name | Type | Description |
|---|---|---|
id (path) required | integer |
Responses
200Health status
GET /api/channels/{id}/options — Get platform-specific options for a channel
Returns the channel's platform sub-resources, keyed by type: boards (Pinterest), playlists (YouTube), blogs (Tumblr), channels (Discord text channels), locations (Threads, see below) and creator_info (TikTok, where the payload is an info object with the creator's privacyLevelOptions and limits rather than an items list). Returns { type: null, items: [] } for platforms without sub-resources. Threads: ?q=<place> returns { type: 'locations', items: [{ id, name, address? }] }; until the connected account has granted location tagging the response is { type: 'locations', items: [], unavailable: true }. Pinterest: with ?boardId=<boardId> it returns { type: 'sections', items: [{ id, name }] }, the sections of that board, instead of the boards; the section id is what platformSpecific.pinterest.boardSectionId takes.
Parameters
| Name | Type | Description |
|---|---|---|
id (path) required | integer | Channel ID |
q (query) | string | optional — Search term. Threads: place search for |
boardId (query) | string | optional Pinterest only: numeric board ID. Returns that board's sections instead of the boards. Anything non-numeric returns 400 |
Responses
200Platform options409The platform refused this channel's stored access (code: CHANNEL_NEEDS_RECONNECT). The channel is marked as needing a reconnect, the same as after a failed publish; reconnect it to load its options again.
GET /api/channels/{id}/mentions — Search users for @mention
Search accounts on a channel's platform to @mention in post content. Supported on X, Bluesky, Mastodon and LinkedIn; other platforms return an empty array. On Mastodon the search runs on the account's own server and each handle is the address to insert: @username for an account on that server, @username@domain for one elsewhere. A query that is a full username@domain address also finds an account that server has not seen before. LinkedIn matches Pages by their exact URL slug (linkedin.com/company/<slug>, a pasted URL works) and each result's handle is the ready-to-insert token @[Name](urn:li:organization:ID) and vanityName is the slug it matched on, so a caller can confirm the right Page before inserting the token (a display name alone is ambiguous); people cannot be searched. A personal LinkedIn profile channel uses a connected, active Page in the same workspace for the lookup; when none is connected the response is { users: [], notice } with a sentence to show the user. Queries under 2 characters return an empty list without a lookup; results are cached for about a minute.
Parameters
| Name | Type | Description |
|---|---|---|
id (path) required | integer | Channel ID |
q (query) required | string | Search query (max 100 chars) |
Responses
200{ users: [{ id, handle, name, profileImage?, vanityName? }], notice? }.vanityNameis present on LinkedIn results only: it is the Page's URL slug (linkedin.com/company/<slug>), which is what the search matched on.noticeis present only when nothing could be searched (LinkedIn personal channel without a connected Page).
GET /api/platforms — List platforms and their availability
Returns every social platform BulkPublish supports, together with its current availability. Use this to render an accurate "temporarily unavailable" or "connections paused" state rather than assuming every platform can be connected or published to.
Platforms that are switched off are still listed, with enabled: false and a reason. envVar is only included for organization owners and admins.
A platform may also expose variants — sub-platforms gated separately because the vendor reviews them as a separate app. LinkedIn reports variants.organization for company pages; personal-profile availability is the platform-level state.
Responses
200Platform list401Unauthorized
Channel Sets
Saved channel groups for one-click targeting
GET /api/channel-sets — List channel sets
Saved channel groupings for one-click multi-channel targeting.
Responses
200Channel sets
POST /api/channel-sets — Create channel set
Requires a role that can edit posts (owner, admin, approver, contributor); viewers get 403 FORBIDDEN.
Request body
| Name | Type | Description |
|---|---|---|
name required | string | |
channelIds required | integer[] | IDs of channels in your organization |
Responses
201Created400Invalid name or channelIds409Duplicate name
PUT /api/channel-sets/{id} — Update channel set
Requires a role that can edit posts (owner, admin, approver, contributor); viewers get 403 FORBIDDEN.
Parameters
| Name | Type | Description |
|---|---|---|
id (path) required | integer |
Request body
| Name | Type | Description |
|---|---|---|
name | string | |
channelIds | integer[] | IDs of channels in your organization |
Responses
200Updated404Not found409Duplicate name
DELETE /api/channel-sets/{id} — Delete channel set
Requires a role that can edit posts (owner, admin, approver, contributor); viewers get 403 FORBIDDEN.
Parameters
| Name | Type | Description |
|---|---|---|
id (path) required | integer |
Responses
200Deleted404Not found
RSS Autopost
Turn RSS/Atom feed items into posts automatically
GET /api/rss-feeds — List RSS feeds
RSS/Atom feeds checked on a schedule set by the plan (every 60 minutes on Free and Lifetime, 30 on Pro, 15 on Business); new items become posts. Polling uses conditional GET (ETag/Last-Modified) and exponential backoff on errors (15 minutes doubling to 24 hours); a feed is automatically disabled after 20 consecutive failed polls (enabled becomes false and lastError explains why). The first successful poll baselines the feed's existing backlog without posting it.
Responses
200Feeds
POST /api/rss-feeds — Add RSS feed
Create an RSS/Atom feed. Plan-gated: max feeds per org (Free 1, Lifetime 3, Pro 10, Business 50) and auto-publish mode (mode: "publish") is paid-only — Free is draft-only and a publish request returns 403; Lifetime and above may auto-publish. Over the feed limit returns 403. Feed poll cadence is also per-plan (Free 60 min, Lifetime 60 min, Pro 30 min, Business 15 min). Requires a role that can edit posts (owner, admin, approver, contributor); viewers get 403 FORBIDDEN.
Request body
| Name | Type | Description |
|---|---|---|
name required | string | |
feedUrl required | string | Public RSS 2.0 or Atom feed URL |
channelIds required | integer[] | |
mode | "draft" | "publish" | draft = new items become drafts for review; publish = auto-published |
fieldMapping | object | null | Per-feed field mapping controlling how an RSS/Atom item becomes post content. null (default) uses the built-in mapping: template "{title}\n\n{link}", no media, stripHtml true, smart truncation. Media selection is post-level (media attaches to the post, not a single channel); per-channel overrides cover text only, and channels on the same platform share one rendered text (written to the post's platformContent, as in the composer). Channels whose platform requires media (e.g. Instagram, TikTok, YouTube) are skipped for items lacking a usable enclosure, with the reason recorded in the activity log. |
requireApproval | boolean | Optional. Hold items auto-published from this feed for team approval — each generated post lands with approvalStatus 'pending' and waits for POST /api/posts/{id}/approve. Only meaningful when mode is 'publish' (draft items never publish on their own). Default false. Forced to true server-side for roles without post:publish (contributors), regardless of this flag — on create and on every update, including an update that does not send the field. |
Responses
201Created400Invalid input
PUT /api/rss-feeds/{id} — Update RSS feed
Requires a role that can edit posts (owner, admin, approver, contributor); viewers get 403 FORBIDDEN.
Parameters
| Name | Type | Description |
|---|---|---|
id (path) required | integer |
Request body
| Name | Type | Description |
|---|---|---|
name | string | |
feedUrl | string | Public RSS 2.0 or Atom feed URL |
channelIds | integer[] | |
mode | "draft" | "publish" | draft = new items become drafts for review; publish = auto-published |
enabled | boolean | |
fieldMapping | object | null | Per-feed field mapping controlling how an RSS/Atom item becomes post content. null (default) uses the built-in mapping: template "{title}\n\n{link}", no media, stripHtml true, smart truncation. Media selection is post-level (media attaches to the post, not a single channel); per-channel overrides cover text only, and channels on the same platform share one rendered text (written to the post's platformContent, as in the composer). Channels whose platform requires media (e.g. Instagram, TikTok, YouTube) are skipped for items lacking a usable enclosure, with the reason recorded in the activity log. Pass null to clear back to the default mapping. |
requireApproval | boolean | Optional. Hold items auto-published from this feed for team approval — each generated post lands with approvalStatus 'pending' and waits for POST /api/posts/{id}/approve. Only meaningful when mode is 'publish' (draft items never publish on their own). Default false. Forced to true server-side for roles without post:publish (contributors), regardless of this flag — on create and on every update, including an update that does not send the field. |
Responses
200Updated404Not found
DELETE /api/rss-feeds/{id} — Delete RSS feed
Requires a role that can edit posts (owner, admin, approver, contributor); viewers get 403 FORBIDDEN.
Parameters
| Name | Type | Description |
|---|---|---|
id (path) required | integer |
Responses
200Deleted404Not found
Media
Upload and manage images and videos
GET /api/media — List media files
Parameters
| Name | Type | Description |
|---|---|---|
page (query) | integer | optional — Page number (default: 1) |
limit (query) | integer | optional — Items per page (default: 20) |
search (query) | string | optional — Search by filename |
labelIds (query) | string | optional — Comma-separated label IDs |
type (query) | "image" | "video" | "document" | optional — Filter by media kind: |
Responses
200Media list —{ files, page, limit, total }, wheretotalcounts every file matching the filters across all pages
POST /api/media — Upload media (single request)
Upload an image, video or document file in one multipart request (server relays to storage). Max 100MB (for videos up to 1GB use the multipart endpoints: /api/media/multipart/create → PUT each part → /api/media/multipart/complete). Formats: JPEG, PNG, WebP, GIF, MP4, QuickTime, WebM. Documents: PDF (application/pdf), Word (application/msword, application/vnd.openxmlformats-officedocument.wordprocessingml.document) and PowerPoint (application/vnd.ms-powerpoint, application/vnd.openxmlformats-officedocument.presentationml.presentation) files are also accepted, up to 100MB. We check the file itself, not just its name, so a renamed file is refused. Documents have no thumbnail or preview (thumbnailUrl, previewUrl, largeUrl, width and height are null) and can only be published to LinkedIn, as a document post. Browser clients should prefer the faster direct-to-storage flow: POST /api/media/presign then PUT the file to the returned URL then POST /api/media/finalize. MP4/QuickTime files must be complete (contain a moov atom) — a video captured mid-encode or truncated in transit is rejected with 400 at upload instead of failing at publish time. The same check runs on /api/media/finalize (via ranged reads) and on remote URL imports. Requires a role that can edit posts (owner, admin, approver, contributor); viewers get 403 FORBIDDEN.
Request body
| Name | Type | Description |
|---|---|---|
file | string |
Responses
201File uploaded
POST /api/media/presign — Get a direct upload URL
Step 1 of the direct-to-storage upload. Checks the storage quota and returns a presigned PUT URL plus the object key. PUT the file (max 100MB — videos up to 1GB go through the multipart endpoints instead) to uploadUrl with a matching Content-Type header, then call POST /api/media/finalize. Requires a role that can edit posts (owner, admin, approver, contributor); viewers get 403 FORBIDDEN.
Request body
| Name | Type | Description |
|---|---|---|
contentType required | string | MIME type (JPEG, PNG, WebP, GIF, MP4, QuickTime, WebM, PDF, Word, PowerPoint) |
sizeBytes required | integer | Size of the file to upload in bytes |
Responses
200Presigned URL400Invalid type or size403Storage quota exceeded
POST /api/media/finalize — Finalize a direct upload
Step 2 of the direct-to-storage upload. After the file is PUT to the presigned URL, this records the media file and queues thumbnail generation. The stored object is verified server-side (existence, size, magic bytes) before the record is created. Requires a role that can edit posts (owner, admin, approver, contributor); viewers get 403 FORBIDDEN.
Request body
| Name | Type | Description |
|---|---|---|
r2Key required | string | Object key returned by /api/media/presign |
fileName required | string | |
mimeType required | string | |
sizeBytes required | integer | |
width | integer | optional — image/video width |
height | integer | optional — image/video height |
duration | integer | optional — video duration in seconds |
Responses
201Media file created400Invalid key, missing object, or content mismatch403Storage quota exceeded
GET /api/media/{id} — Get media file
Parameters
| Name | Type | Description |
|---|---|---|
id (path) required | integer |
Responses
200Media details
PATCH /api/media/{id} — Set alt text
Sets the accessibility description of a media file. Alt text belongs to the file, so one value covers every post that reuses it. It is sent wherever the destination accepts a description: Instagram (feed photos and carousel images), LinkedIn (single and multi-image posts), X (images), Bluesky (images), Tumblr (images) and Discord (as each attachment's description). On a video file only Discord passes it on. Send null or an empty string to clear. Trimmed to 1000 characters. Requires a role that can edit posts (owner, admin, approver, contributor); viewers get 403 FORBIDDEN.
Parameters
| Name | Type | Description |
|---|---|---|
id (path) required | integer |
Request body
| Name | Type | Description |
|---|---|---|
altText required | string |
Responses
200Updated: { file: { id, altText } }400Validation error404Not found
DELETE /api/media/{id} — Delete media file
Removes the file from your media library. It no longer appears in GET /api/media, and GET/PATCH/DELETE on its id return 404. If a post still uses the file, the full-size file is deleted and stops counting toward your storage, but the small preview images are kept so that post still shows a picture in the app. Posts that have already published are not affected. A post that has not published yet and still uses the file will fail to publish, so remove the file from those posts first. Requires a role that can edit posts (owner, admin, approver, contributor); viewers get 403 FORBIDDEN.
Parameters
| Name | Type | Description |
|---|---|---|
id (path) required | integer |
Responses
200Deleted
GET /api/media/{id}/thumbnail — Get media thumbnail
Redirects to the thumbnail URL for the given media file.
Parameters
| Name | Type | Description |
|---|---|---|
id (path) required | integer |
Responses
302Redirect to thumbnail URL404Media not found or no thumbnail available
GET /api/media/{id}/labels — Get media labels
Parameters
| Name | Type | Description |
|---|---|---|
id (path) required | integer |
Responses
200Labels
PUT /api/media/{id}/labels — Set media labels
Requires a role that can edit posts (owner, admin, approver, contributor); viewers get 403 FORBIDDEN.
Parameters
| Name | Type | Description |
|---|---|---|
id (path) required | integer |
Request body
| Name | Type | Description |
|---|---|---|
labelIds | integer[] |
Responses
200Updated
POST /api/media/multipart/create — Start multipart upload (large videos, up to 1GB)
Step 1 of the chunked direct-to-storage upload for large files. Returns an uploadId, the fixed part size (10MB), and a presigned PUT URL per part. Upload each 10MB slice of the file to its URL (a failed part can be retried on its own — a network drop never restarts the whole file), collect each response's ETag header, then call /api/media/multipart/complete. Requires a role that can edit posts (owner, admin, approver, contributor); viewers get 403 FORBIDDEN.
Request body
| Name | Type | Description |
|---|---|---|
contentType required | string | One of the allowed media MIME types (images, videos, and PDF, Word and PowerPoint documents) |
sizeBytes required | integer | Exact file size. Videos up to 1GB; images and documents up to 100MB. |
Responses
200uploadId, r2Key, partSize, and presigned partUrls400Disallowed type or file too large
POST /api/media/multipart/complete — Complete multipart upload
Step 2: assembles the uploaded parts, verifies the stored object (existence, size, content magic bytes, storage quota) and records the media file. Same verification and response shape as /api/media/finalize. Requires a role that can edit posts (owner, admin, approver, contributor); viewers get 403 FORBIDDEN.
Request body
| Name | Type | Description |
|---|---|---|
r2Key required | string | |
uploadId required | string | |
parts required | object[] | |
fileName required | string | |
mimeType required | string | |
sizeBytes required | integer | |
width | integer | |
height | integer | |
duration | integer |
Responses
201Media file recorded400Assembly or verification failed
POST /api/media/multipart/abort — Abort multipart upload
Cancel an in-progress chunked upload and free its stored parts. Requires a role that can edit posts (owner, admin, approver, contributor); viewers get 403 FORBIDDEN.
Request body
| Name | Type | Description |
|---|---|---|
r2Key required | string | |
uploadId required | string |
Responses
200Aborted
Analytics
View engagement metrics and performance data
GET /api/analytics/summary — Summary stats
Post counts by status, platform, and day. The date window is capped at 30 days: from is silently clamped so that it is never more than 30 days before to. Every response echoes the window in from/to. Channel/platform filters also narrow byPlatform and the per-day platform breakdown to the matching rows of a cross-post, not just the matching posts.
Parameters
| Name | Type | Description |
|---|---|---|
from (query) required | string | required — Start date (YYYY-MM-DD) |
to (query) required | string | required — End date (YYYY-MM-DD) |
tz (query) | string | optional — IANA timezone (e.g. |
heatmap (query) | "1" | optional — set to |
channelIds (query) | string | optional — Comma-separated channel ids. Only post_platform rows on these channels are counted. Combines with |
platforms (query) | string | optional — Comma-separated platform keys ( |
labelIds (query) | string | optional — Comma-separated label ids. A post matches when it carries ANY of them. |
postFormat (query) | "post" | "thread" | optional — |
mediaType (query) | "text" | "image" | "video" | optional — |
compare (query) | "1" | optional — Set to |
Responses
200Summary data:totalPosts,published,scheduled,failed,partial,byPlatform,byDay,publishedTimes,from,to, plusprevious/previousWindowwhencompare=1.
GET /api/analytics/engagement — Engagement metrics
Impressions, reach, likes, comments, shares, saves, clicks, video views with per-platform breakdown and top posts. Results are cached for 5 minutes. The date window is capped at 30 days: from is silently clamped so that it is never more than 30 days before to.
Parameters
| Name | Type | Description |
|---|---|---|
from (query) required | string | required — Start date (YYYY-MM-DD) |
to (query) required | string | required — End date (YYYY-MM-DD) |
tz (query) | string | optional — IANA timezone (e.g. |
channelId (query) | integer | optional — Legacy single-channel filter; equivalent to |
top (query) | "1" | optional — Set to |
sort (query) | "date" | "impressions" | "reach" | "likes" | "comments" | "shares" | "saves" | "clicks" | "videoViews" | "linkClicks" | "engagements" | "engagementRate" | Sort field for |
order (query) | "asc" | "desc" | Sort direction for |
topBy (query) | "impressions" | "reach" | "likes" | "comments" | "shares" | "saves" | "clicks" | "videoViews" | "linkClicks" | "engagements" | "engagementRate" | optional — Metric |
topOrder (query) | "asc" | "desc" | optional — |
heatmap (query) | "1" | optional — Set to |
bestTimes (query) | "1" | optional — Set to |
vsMedian (query) | "1" | optional — Set to |
channelIds (query) | string | optional — Comma-separated channel ids. Only post_platform rows on these channels are counted. Combines with |
platforms (query) | string | optional — Comma-separated platform keys ( |
labelIds (query) | string | optional — Comma-separated label ids. A post matches when it carries ANY of them. |
postFormat (query) | "post" | "thread" | optional — |
mediaType (query) | "text" | "image" | "video" | optional — |
compare (query) | "1" | optional — Set to |
Responses
200Engagement data including totalImpressions, totalReach, totalLikes, totalComments, totalShares, totalSaves, totalClicks, totalVideoViews, avgEngagementRate, byPlatform, byDay, topPosts, allPosts, and unmeasuredPlatforms.unmeasuredPlatformslists platforms present in the window that cannot report per-post metrics at all — either the platform has no readable metrics API (Google Business, Telegram, Tumblr) or, for LinkedIn, the channel is a personal/profile account (share statistics are exposed only for organization pages). Their rows still appear in every total with zeroes, so a zero for one of these platforms means "not reported", not "measured zero". Each entry in a post'splatformMetricscarries the same signal asmetricsSupported, which is alsofalse(withsupportedMetricsreduced tolinkClicks) for an X post that has no snapshot because its channel has not opted into metrics sync. All figures come from the storedpost_metricssnapshot, synced every 6 hours (or on demand viaPOST /api/analytics/refresh) — not a live read of the platform.metricSupportmaps each platform present in the window to the list of metric keys its API can actually report (impressions,reach,likes,comments,shares,saves,clicks,videoViews,engagementRate). Anything not listed is stored as 0 by the metrics sync because the platform has no such field — it is NOT a measurement. For example X reports impressions/likes/comments/shares/saves (bookmarks), soreach,clicksandvideoViewsare always 0 for X rows; Bluesky and Mastodon report no impressions, soengagementRateis always 0 for them; Pinterest reports no reach; YouTube reports no shares, reach or impressions (its views arevideoViews), so it has noengagementRateand adds 0 to everyengagementsfigure, because YouTube's API policies do not allow figures derived from its data; Discord reports likes (reaction counts) and comments (thread replies) only.supportedTotalsis the union ofmetricSupportacross the window — the org-widetotal*fields are only measurements for keys listed here. A key absent fromsupportedTotalsshould be rendered as “not available” (a dash), never as 0.partialTotalsmaps a supported metric key to the platforms in the window that do NOT report it, so a consumer can note that the total covers only a subset of posts. Each entry of a post'splatformMetricsalso carriessupportedMetrics(same per-platform list) alongsidemetricsSupported.supportedMetricscan also depend on the post type: an Instagram story lists onlyimpressions,reach,comments(story replies) andengagementRate, because story insights have no likes, saves or shares. Facebook'simpressions,reach,clicksandengagementRatecome from the Page Insights edge and require theread_insightspermission; without it they stay 0 even though the metric is listed as supported.metricsDisabledChannelslists channels published to in the window whose metrics sync is switched off, so their posts contribute zeroes to every total. X is the only platform this applies to today: its reads are billed, so per-post metrics sync is opt-in per channel (metadata.metricsSyncEnabled, toggled on the Channels page) and runs at most once every 7 days.POST /api/analytics/refreshwill not produce X figures for a channel that has not opted in.conditionalMetricsmaps a platform in the window to metrics that are supported but permission-gated — a 0 there means "may not be readable", not "no such metric". Today Facebook appears forimpressions,reach,clicksandengagementRate, and TikTok forreach,savesandclicks, which only accounts that have granted TikTok insights report. Each post intopPosts/allPostscarries both a post-levelengagementRateand, insideplatformMetrics[], a per-channelengagementRate. They are NOT the same number: the post-level value is the mean of the post's channels that reported a non-zero rate, whileplatformMetrics[].engagementRateis that one channel's own rate (engagements ÷ impressions). Render the per-channel value next to per-channel counters — using the post-level average there shows one network's percentage beside another network's zeros. Both are basis points (325 = 3.25%).totalLinkClicks(andlinkClickson each entry ofbyPlatform,byDay,topPosts,allPostsandplatformMetrics) counts clicks on bulkpubli.sh short links, measured by BulkPublish rather than reported by the platform. It is deliberately NOT folded intototalClicks/clicks, which are the platform's own click figures: one visit can register in both, so adding them would double-count. Because we measure it ourselves it is available on every platform, including those listed inunmeasuredPlatforms, and it appears insupportedTotals/metricSupportfor all of them. Bot and link-preview traffic is excluded. Zero for organizations that have not enabled Link Tracking. Added 2026-09-03.byDay[]entries now carry every metric (impressions,reach,likes,comments,shares,saves,clicks,videoViews,linkClicks,engagements,posts) plusplatforms: the same bucket per platform for that day.byPlatformentries carry the same full set.byChannel[]lists{channelId, platform, accountName, …same metrics…}per channel. Each post intopPosts/allPostsalso hasreach,engagements,postFormat(post|thread),mediaType(text|image|video) andlabels[] {id, name, color}; eachplatformMetrics[]entry haschannelId,accountName,reach,engagementsandfetchedAt.publishedCountis the number of published post_platform rows in the window.filtersechoes the parsed filter set. Withcompare=1,previousholds thetotal*/avgEngagementRate/publishedCountfields andbyDayfor the preceding window (ornullif unavailable) andpreviousWindowsays which window that is. WithbestTimes=1,bestTimesis{timezone, postCount, excludedPosts, minPosts, slots[], best[], enoughData}. Each slot is{weekday, hour, posts, avgEngagements, avgImpressions}:weekdayismonday..sundayandhour0..23, both intimezone;slotslists only slots with at least one post, Monday 00:00 first;avgImpressionsisnullwhen no post in the slot reports impressions.bestis up to 5 slots with at leastminPosts(3) posts, highestavgEngagementsfirst.postscounts each network a post went to separately. WithvsMedian=1, eachplatformMetrics[]entry carriesvsMedian: {impressions: number|null, engagements: number|null, basis: integer}; see thevsMedianparameter for when a value isnull.400Invalidfrom/todate, ortzis not an IANA timezone name
POST /api/analytics/refresh — Trigger metrics sync
Start a refresh of the latest metrics from all platforms; the updated figures appear shortly after. Requires a role that can edit posts (owner, admin, approver, contributor); viewers get 403 FORBIDDEN.
Responses
200Queued
GET /api/analytics/account — Account-level analytics
Daily snapshots of followers, impressions, reach, and profile views per connected channel. Data is synced automatically every 4 hours. Accepts the shared channelIds / platforms filters; the post-level filters (labelIds, postFormat, mediaType, compare) have no meaning for account snapshots and are ignored.
Parameters
| Name | Type | Description |
|---|---|---|
channelId (query) | integer | optional — Legacy single-channel filter; equivalent to |
from (query) | string | optional — Start date (YYYY-MM-DD, default 30 days ago). Dates earlier than 30 days before today are raised to that date, whatever |
to (query) | string | optional — End date (YYYY-MM-DD, default today) |
channelIds (query) | string | optional — Comma-separated channel ids. Only post_platform rows on these channels are counted. Combines with |
platforms (query) | string | optional — Comma-separated platform keys ( |
Responses
200Account metrics with channel list.engagementRateon each row is ALWAYSnull: no platform handler computes an account-level engagement rate (thegetAccountAnalyticscontract has no such field), so the stored column is its default 0 for every row. It is returned as null rather than 0 so it cannot be mistaken for a measured 0%. For a real rate, use the per-postengagementRateinsideplatformMetrics[]onGET /api/analytics/engagement.websiteClicksis populated by Google Business only;profileViewsby Facebook only (page_views_total). Both are 0 for every other platform because no other handler reports them — not because the value was measured as zero.
GET /api/analytics/post-history — Per-post metric history
The metrics snapshots stored for one post, per platform, oldest first — the series behind the "since publish" trend sparklines. A snapshot is taken each time metrics sync: roughly every 6 hours for most platforms, at most weekly for X channels that opted in, plus whenever someone refreshes the Analytics page. At most one snapshot per destination per hour is returned (the latest in that hour), so a series holds at most about 770 points. Snapshots older than the 30-day retention floor are excluded. Returns {postId, publishedAt, series[]} where each series is {postPlatformId, platform, channelId, accountName, supportedMetrics, metricsSupported, points[]} and each point is {fetchedAt, impressions, reach, likes, comments, shares, saves, clicks, videoViews, engagementRate}. A platform whose metricsSupported is false contributes stored zeroes, not measurements.
Parameters
| Name | Type | Description |
|---|---|---|
postId (query) required | integer | required — The post id. |
Responses
200History series400postId missing or not a positive integer404Post not found in this organization
GET /api/analytics/links — Tracked-link performance
Every bulkpubli.sh short link minted for a post published in the window, with its click count. Clicks are measured by BulkPublish's own redirector (bot and link-preview traffic excluded) rather than reported by the platform, so they exist for every network — including those in unmeasuredPlatforms. Totals sync from the redirector every 15 minutes; referrer and country splits are not stored. links is ordered by clicks desc (newest first among equal counts) and capped at 2000 links; totalClicks and totalLinks count every tracked link in the window, so when totalLinks exceeds the length of links the list holds only the 2000 most-clicked. The date window is capped at 30 days like every other analytics endpoint. Returns {from, to, totalClicks, totalLinks, links[]}; each link is {id, shortUrl, code, originalUrl, finalUrl, destinationHost, clicks, lastClickAt, createdAt, platform, channelId, accountName, postId, postContent, publishedAt}. Empty for organizations that have not enabled Link Tracking.
Parameters
| Name | Type | Description |
|---|---|---|
from (query) required | string | required — Start date (YYYY-MM-DD) |
to (query) required | string | required — End date (YYYY-MM-DD) |
tz (query) | string | optional — IANA timezone (e.g. |
channelIds (query) | string | optional — Comma-separated channel ids. Only post_platform rows on these channels are counted. Combines with |
platforms (query) | string | optional — Comma-separated platform keys ( |
labelIds (query) | string | optional — Comma-separated label ids. A post matches when it carries ANY of them. |
postFormat (query) | "post" | "thread" | optional — |
mediaType (query) | "text" | "image" | "video" | optional — |
compare (query) | "1" | optional — set to |
Responses
200Link performance Withcompare=1,previouscarriestotalClicksandtotalLinksfor the preceding window of equal length (null when that window is outside the 30-day retention limit), andpreviousWindowstates that window and whether it was available.400Invalidfrom/todate, ortzis not an IANA timezone name
Labels
Organize posts and media with labels
GET /api/labels — List labels
Sorted by name (ties by id) and capped at 500 labels; a workspace with more gets the first 500 alphabetically. Response is Cache-Control: private, no-store. Each label: { id, name, color, type, createdAt }. Add ?counts=1 to include usageCount (posts, media files or conversations carrying the label) on each row. Labels are read with the posts:read scope. An OAuth app or read-only key also needs inbox:read to see inbox labels here, and inbox:write to create, rename or delete one (deleting an inbox label removes it from every conversation); without it those labels are left out of the list and answer 404. An app that only has inbox:read sees a conversation's labels on the conversation itself (labels in GET /api/inbox/conversations).
Parameters
| Name | Type | Description |
|---|---|---|
type (query) | "post" | "media" | "inbox" | optional — Filter by label type: |
Responses
200Labels
POST /api/labels — Create label
Counts against the org's label quota (every type together). Requires a role that can edit posts (owner, admin, approver, contributor); viewers get 403 FORBIDDEN.
Request body
| Name | Type | Description |
|---|---|---|
name required | string | 1–100 characters, trimmed. Must be unique within the org for the same |
color | string | Hex colour, |
type | "post" | "media" | "inbox" | Which surface the label organizes: |
Responses
201Created
PUT /api/labels/{id} — Update label
At least one of name or color is required. type cannot be changed. Requires a role that can edit posts (owner, admin, approver, contributor); viewers get 403 FORBIDDEN.
Parameters
| Name | Type | Description |
|---|---|---|
id (path) required | integer |
Request body
| Name | Type | Description |
|---|---|---|
name | string | 1–100 characters, trimmed. Renaming to a name already used by another label of the same type returns 409 DUPLICATE_NAME. |
color | string | Hex colour, |
Responses
200Updated
DELETE /api/labels/{id} — Delete label
Detaches the label from every post and media file that carries it; the posts and files themselves are kept. Requires a role that can edit posts (owner, admin, approver, contributor); viewers get 403 FORBIDDEN.
Parameters
| Name | Type | Description |
|---|---|---|
id (path) required | integer |
Responses
200Deleted
Hashtag Groups
Saved sets of hashtags to drop into a post
GET /api/hashtag-groups — List hashtag groups
Every saved hashtag group in the organization, sorted by name. Returns { groups: HashtagGroup[] }.
Responses
200Hashtag groups
POST /api/hashtag-groups — Create hashtag group
Saves a named set of hashtags the composer can insert in one click. An organization may keep up to 100 groups (400 LIMIT_REACHED beyond that). Returns 201 with { group }. Requires a role that can edit posts (owner, admin, approver, contributor); viewers get 403 FORBIDDEN.
Request body
| Name | Type | Description |
|---|---|---|
name required | string | 1-100 characters, trimmed. Unique per organization (case-insensitive); a clash returns 409 CONFLICT. |
hashtags required | string[] | 1-30 hashtags, with or without the leading '#'. Letters, digits and underscores in any script, up to 100 characters each; anything else (spaces, hyphens) is rejected with 400 VALIDATION_ERROR. Duplicates are dropped case-insensitively. |
Responses
201Created400Validation error409Duplicate name
GET /api/hashtag-groups/{id} — Get hashtag group
Returns { group }, or 404 when it is not in your organization.
Parameters
| Name | Type | Description |
|---|---|---|
id (path) required | integer |
Responses
200Hashtag group404Not found
PUT /api/hashtag-groups/{id} — Update hashtag group
At least one of name or hashtags is required. hashtags replaces the whole list. Requires a role that can edit posts (owner, admin, approver, contributor); viewers get 403 FORBIDDEN.
Parameters
| Name | Type | Description |
|---|---|---|
id (path) required | integer |
Request body
| Name | Type | Description |
|---|---|---|
name | string | 1-100 characters, trimmed. Unique per organization (case-insensitive); a clash returns 409 CONFLICT. |
hashtags | string[] | 1-30 hashtags, with or without the leading '#'. Letters, digits and underscores in any script, up to 100 characters each; anything else (spaces, hyphens) is rejected with 400 VALIDATION_ERROR. Duplicates are dropped case-insensitively. |
Responses
200Updated400Validation error404Not found409Duplicate name
DELETE /api/hashtag-groups/{id} — Delete hashtag group
Removes the group. Posts that already contain its hashtags are untouched. Requires a role that can edit posts (owner, admin, approver, contributor); viewers get 403 FORBIDDEN.
Parameters
| Name | Type | Description |
|---|---|---|
id (path) required | integer |
Responses
200Deleted404Not found
Templates
Saved post text to start a new post from
GET /api/templates — List post templates
Every saved template in the organization, sorted by name. Returns { templates: PostTemplate[] }. A caption template may also keep a post setup (channelIds, postFormat, postTypeOverrides, mediaFileIds, platformMediaFileIds, platformContent); each template carries media, its files that are still in the media library. Per-platform publish options (platformSpecific) belong to the post.
Parameters
| Name | Type | Description |
|---|---|---|
kind (query) | "caption" | "first_comment" | Which kind of saved text to list: a post caption, or a first-comment reply. Defaults to caption. |
Responses
200Templates
POST /api/templates — Create post template
Up to 200 per organization, per kind — captions and first-comment snippets each get their own 200 (400 LIMIT_REACHED beyond that). Returns 201 { template }. Requires a role that can edit posts (owner, admin, approver, contributor); viewers get 403 FORBIDDEN.
Request body
| Name | Type | Description |
|---|---|---|
name required | string | 1-100 characters, trimmed; unique per organization (409 CONFLICT on a clash). |
content | string | Template text. CRLF is normalised to LF and surrounding whitespace trimmed. Required, except that a caption template that sets any of channelIds, postFormat, postTypeOverrides, mediaFileIds, platformMediaFileIds or platformContent may have no text. Setup fields that hold nothing (an empty list or object) do not count, so empty text with only those is rejected with 400 VALIDATION_ERROR (content is required). |
kind | "caption" | "first_comment" | What the saved text is for: a post caption, or a first-comment reply. Name uniqueness is scoped per kind, so a caption and a first comment can share a name. |
channelIds | integer[] | Optional. Channels a post started from this template is sent to. Channels disconnected since are skipped when it is used. Caption templates only. |
postFormat | "post" | "video" | "reel" | "story" | "carousel" | null | Optional. The post format the template starts in, as in a post's postFormat. Caption templates only. |
postTypeOverrides | object | null | Optional. Per-platform post types, as in a post's postTypeOverrides. Caption templates only. |
mediaFileIds | integer[] | Optional. Media file IDs from POST /api/media that a post started from this template attaches. While a template uses a file, the file is kept in the media library. Caption templates only. |
platformMediaFileIds | object | null | Optional. Which of mediaFileIds each platform gets, as in a post's platformMediaFileIds; every id must be in mediaFileIds. Caption templates only. |
platformContent | object | null | Optional. Per-platform text, as in a post's platformContent. Caption templates only. |
Responses
201Created400Validation error409Duplicate name
GET /api/templates/{id} — Get post template
Returns { template }, or 404 when it is not in your organization.
Parameters
| Name | Type | Description |
|---|---|---|
id (path) required | integer |
Responses
200{ template }404Not found
PUT /api/templates/{id} — Update post template
Send at least one of name, content or a setup field (null clears a setup field). A template left with no text and no setup is rejected with 400 VALIDATION_ERROR. Requires a role that can edit posts (owner, admin, approver, contributor); viewers get 403 FORBIDDEN.
Parameters
| Name | Type | Description |
|---|---|---|
id (path) required | integer |
Request body
| Name | Type | Description |
|---|---|---|
name | string | 1-100 characters, trimmed; unique per organization (409 CONFLICT on a clash). |
content | string | Template text. CRLF is normalised to LF and surrounding whitespace trimmed. |
channelIds | integer[] | Optional. Channels a post started from this template is sent to. Channels disconnected since are skipped when it is used. Caption templates only. Send null to clear it. |
postFormat | "post" | "video" | "reel" | "story" | "carousel" | null | Optional. The post format the template starts in, as in a post's postFormat. Caption templates only. Send null to clear it. |
postTypeOverrides | object | null | Optional. Per-platform post types, as in a post's postTypeOverrides. Caption templates only. Send null to clear it. |
mediaFileIds | integer[] | Optional. Media file IDs from POST /api/media that a post started from this template attaches. While a template uses a file, the file is kept in the media library. Caption templates only. Send null to clear it. |
platformMediaFileIds | object | null | Optional. Which of mediaFileIds each platform gets, as in a post's platformMediaFileIds; every id must be in mediaFileIds. Caption templates only. Send null to clear it. |
platformContent | object | null | Optional. Per-platform text, as in a post's platformContent. Caption templates only. Send null to clear it. |
Responses
200Updated400Validation error404Not found409Duplicate name
DELETE /api/templates/{id} — Delete post template
Requires a role that can edit posts (owner, admin, approver, contributor); viewers get 403 FORBIDDEN.
Parameters
| Name | Type | Description |
|---|---|---|
id (path) required | integer |
Responses
200Deleted404Not found
Review Links
Client review links covering a batch of posts at once
GET /api/review-links — List client review links
The organization's review links, newest first, each with how many posts it covers. Paged: limit (default 50, max 100) and page; total counts every link across all pages, so keep requesting the next page while page × limit < total. Returns { reviewLinks: [{ id, name, shareToken, createdAt, postCount, url }], page, limit, total }. Not available on the Free and Lifetime plans (single-seat, no client collaboration): those answer 403 FEATURE_DISABLED with plan and upgrade: true.
Parameters
| Name | Type | Description |
|---|---|---|
page (query) | integer | optional — Page number, 1-based (default: 1) |
limit (query) | integer | optional — Links per page, max 100 (default: 50) |
Responses
200Review links
POST /api/review-links — Create a client review link for a batch of posts
Returns a read-only review link (https://app.bulkpublish.com/p/schedule/<token>) covering every post in postIds at once — the multi-post counterpart of POST /api/posts/{id}/share. Every id must belong to the caller's organization (404 otherwise). Unlike a single post's link, this is never regenerated in place: each call mints a new link and a new token, even for the same posts. Returns 201 { reviewLink, url }. Requires a role that can edit posts (owner, admin, approver, contributor); viewers get 403 FORBIDDEN. Not available on the Free and Lifetime plans (single-seat, no client collaboration): those answer 403 FEATURE_DISABLED with plan and upgrade: true.
Request body
| Name | Type | Description |
|---|---|---|
postIds required | integer[] | Post IDs to cover, up to 50 per link. Duplicates are collapsed. |
name | string | Optional label shown only to your team (e.g. the client's name) — never shown on the public page. |
Responses
201Created400Validation error, or more than 50 postIds404One or more postIds were not found
DELETE /api/review-links/{id} — Revoke a client review link
The posts it covered are untouched — only the link stops working. Requires a role that can edit posts (owner, admin, approver, contributor); viewers get 403 FORBIDDEN. Not available on the Free and Lifetime plans (single-seat, no client collaboration): those answer 403 FEATURE_DISABLED with plan and upgrade: true.
Parameters
| Name | Type | Description |
|---|---|---|
id (path) required | integer |
Responses
200Revoked404Not found
Client Connect Links
One-time links for a client to connect their own platform account, with no BulkPublish account of their own
GET /api/client-connect-links — List client connect links
The organization's client-connect links, newest first. Paged: limit (default 50, max 100) and page; total counts every link across all pages, so keep requesting the next page while page × limit < total. Returns { clientConnectLinks: [{ id, name, status, expiresAt, usedAt, connectedChannelId, connectedPlatform, createdAt }], page, limit, total }. status is 'pending' | 'used' | 'revoked' | 'expired' — a stale pending row reads as expired on the way out. The raw token is never returned again after creation. Not available on the Free and Lifetime plans (single-seat, no client collaboration): those answer 403 FEATURE_DISABLED with plan and upgrade: true.
Parameters
| Name | Type | Description |
|---|---|---|
page (query) | integer | optional — Page number, 1-based (default: 1) |
limit (query) | integer | optional — Links per page, max 100 (default: 50) |
Responses
200Client connect links
POST /api/client-connect-links — Create a client connect link
Mints a one-time link (https://app.bulkpublish.com/connect/<token>) a client can open, with no BulkPublish account of their own, to connect one of their platform accounts into this organization. Expires after 7 days and stops working the moment an account is connected through it — creating again always makes a new link, it does not extend or reuse an existing one. Only these platforms are supported (telegram asks for a bot token instead of a plain sign-in, and is connected by your own team instead): bluesky, facebook, instagram, x, tiktok, youtube, threads, pinterest, gmb, linkedin, mastodon, discord, tumblr, snapchat. For bluesky, the client enters their handle and then approves access on Bluesky; they are never asked for a password. For facebook, the client signs in to Facebook and then chooses which one of their Pages to connect. For mastodon, the client first enters the address of the server their account is on. Returns 201 { clientConnectLink, url }. Requires a role that can edit posts (owner, admin, approver, contributor); viewers get 403 FORBIDDEN. Not available on the Free and Lifetime plans (single-seat, no client collaboration): those answer 403 FEATURE_DISABLED with plan and upgrade: true.
Request body
| Name | Type | Description |
|---|---|---|
name required | string | Your own label for this client (e.g. "Acme Corp"). Never shown to the client — only applied to the resulting channel's metadata ( |
Responses
201Created400Validation error
DELETE /api/client-connect-links/{id} — Revoke a client connect link
Idempotent: a link that already used, expired, or was previously revoked just stays that way. A channel the link already connected is untouched. Requires a role that can edit posts (owner, admin, approver, contributor); viewers get 403 FORBIDDEN. Not available on the Free and Lifetime plans (single-seat, no client collaboration): those answer 403 FEATURE_DISABLED with plan and upgrade: true.
Parameters
| Name | Type | Description |
|---|---|---|
id (path) required | integer |
Responses
200Revoked404Not found
Calendar Notes
Free-text notes pinned to calendar days
GET /api/calendar-notes — List calendar notes
Notes whose date falls in [from, to] (both inclusive, at most a year apart), ordered by date. At most 1000 notes are returned, earliest first; if a range holds more, request a narrower one to see the rest. Returns { notes: CalendarNote[] }. Notes are free text pinned to a day on the calendar (a campaign, a holiday, "no posts this week"); they never publish anywhere.
Parameters
| Name | Type | Description |
|---|---|---|
from (query) required | string | |
to (query) required | string |
Responses
200Notes400Missing or invalid range
POST /api/calendar-notes — Create calendar note
A workspace may keep up to 5000 calendar notes (400 LIMIT_REACHED beyond that; delete old notes to add more). Returns 201 with { note }. Requires a role that can edit posts (owner, admin, approver, contributor); viewers get 403 FORBIDDEN.
Request body
| Name | Type | Description |
|---|---|---|
date required | string | Calendar date, YYYY-MM-DD. A plain date: it reads the same in every timezone. |
body required | string | |
color | string | Six-digit hex colour. Default #F59E0B. |
Responses
201Created: { note }400Validation error, or LIMIT_REACHED when the workspace already keeps 5000 notes
PUT /api/calendar-notes/{id} — Update calendar note
At least one of date, body, color. Requires a role that can edit posts (owner, admin, approver, contributor); viewers get 403 FORBIDDEN.
Parameters
| Name | Type | Description |
|---|---|---|
id (path) required | integer |
Request body
| Name | Type | Description |
|---|---|---|
date | string | Calendar date, YYYY-MM-DD. A plain date: it reads the same in every timezone. |
body | string | |
color | string | Six-digit hex colour. Default #F59E0B. |
Responses
200Updated: { note }400Validation error404Not found
DELETE /api/calendar-notes/{id} — Delete calendar note
Requires a role that can edit posts (owner, admin, approver, contributor); viewers get 403 FORBIDDEN.
Parameters
| Name | Type | Description |
|---|---|---|
id (path) required | integer |
Responses
200Deleted404Not found
Schedules
Set up recurring post schedules
GET /api/schedules — List recurring schedules
Returns the organization's recurring schedules, newest first, capped at 500 (the 500 most recently created when a workspace has more; read any one by id with GET /api/schedules/{id}). Schedules created here are fully visible in the web app: they are listed and manageable (pause/resume/delete) on the Repeat Posts page, and each active schedule's upcoming runs are projected onto the Calendar. An occurrence materialises as a real post (carrying recurringScheduleId) only at its run time - GET /api/posts?recurring=true returns those generated posts, not the schedules themselves.
Responses
200Schedules
POST /api/schedules — Create schedule
Creates a recurring schedule that generates and publishes a post from contentTemplate at each run time. No post exists until the first run: the schedule itself appears on the web app's Repeat Posts page (with pause/resume/delete) and its upcoming runs are projected onto the Calendar, while each fired occurrence becomes a post carrying recurringScheduleId. Requires a role that can edit posts (owner, admin, approver, contributor); viewers get 403 FORBIDDEN.
Request body
| Name | Type | Description |
|---|---|---|
name required | string | |
frequency required | "daily" | "weekly" | "biweekly" | "monthly" | |
dayOfWeek | integer | |
dayOfMonth | integer | |
timeOfDay required | string | HH:MM format |
timezone | string | |
channelIds required | integer[] | |
contentTemplate | string | |
isActive | boolean | |
postFormat | "post" | "thread" | Post format. Defaults to 'post'. |
threadParts | object[] | Thread segments (required when postFormat is 'thread'; at least 2). Each part: { content, mediaFileIds }. EVERY part is measured against the character limit of every platform the post targets, not just the first one — a part over the limit is rejected with 400 VALIDATION_ERROR naming the part number, the platform and its limit. URLs count the way the platform counts them (23 characters on X and Mastodon). A part with neither text nor media is left out when the thread publishes, since no network accepts an empty segment. |
mediaFileIds | integer[] | Media file IDs to attach to each generated post. |
requireApproval | boolean | Optional. Hold every occurrence this schedule generates for team approval — each generated post lands with approvalStatus 'pending' and does not publish until an approver releases it via POST /api/posts/{id}/approve. Default false. Forced to true server-side for roles without post:publish (contributors), regardless of this flag — on create and on every update, including an update that does not send the field. |
platformMediaFileIds | object | Optional. Which of mediaFileIds each platform gets on every run, keyed by platform, e.g. { "instagram": [12] }. A platform that is not listed gets all of mediaFileIds; a listed one gets exactly those files, in that order; an empty list posts it without media. Every id must also be in mediaFileIds (400 VALIDATION_ERROR otherwise). Each run's post carries the same choice as its platformMediaFileIds. |
Responses
201Created
GET /api/schedules/{id} — Get schedule
Returns one recurring schedule, in the same shape as an item of GET /api/schedules. A schedule that does not exist or belongs to another organization returns 404. Readable by every role.
Parameters
| Name | Type | Description |
|---|---|---|
id (path) required | integer |
Responses
200Schedule400The id is not a positive integer404Schedule not found
PUT /api/schedules/{id} — Update schedule
Requires a role that can edit posts (owner, admin, approver, contributor); viewers get 403 FORBIDDEN.
Parameters
| Name | Type | Description |
|---|---|---|
id (path) required | integer |
Request body
| Name | Type | Description |
|---|---|---|
name | string | |
frequency | "daily" | "weekly" | "biweekly" | "monthly" | |
dayOfWeek | integer | |
dayOfMonth | integer | |
timeOfDay | string | HH:MM format |
timezone | string | |
channelIds | integer[] | |
contentTemplate | string | |
isActive | boolean | |
postFormat | "post" | "thread" | Post format. Defaults to 'post'. |
threadParts | object[] | Thread segments (required when postFormat is 'thread'; at least 2). Each part: { content, mediaFileIds }. EVERY part is measured against the character limit of every platform the post targets, not just the first one — a part over the limit is rejected with 400 VALIDATION_ERROR naming the part number, the platform and its limit. URLs count the way the platform counts them (23 characters on X and Mastodon). A part with neither text nor media is left out when the thread publishes, since no network accepts an empty segment. |
mediaFileIds | integer[] | Media file IDs to attach to each generated post. |
requireApproval | boolean | Optional. Hold every occurrence this schedule generates for team approval — each generated post lands with approvalStatus 'pending' and does not publish until an approver releases it via POST /api/posts/{id}/approve. Default false. Forced to true server-side for roles without post:publish (contributors), regardless of this flag — on create and on every update, including an update that does not send the field. |
platformMediaFileIds | object | Optional. Which of mediaFileIds each platform gets on every run, keyed by platform, e.g. { "instagram": [12] }. A platform that is not listed gets all of mediaFileIds; a listed one gets exactly those files, in that order; an empty list posts it without media. Every id must also be in mediaFileIds (400 VALIDATION_ERROR otherwise). Each run's post carries the same choice as its platformMediaFileIds. Sending it replaces the stored choice; when it is omitted but mediaFileIds changes, files no longer attached are dropped from each list, and a platform left with none of the files it named goes back to all of them. |
Responses
200Updated
DELETE /api/schedules/{id} — Delete schedule
Requires a role that can edit posts (owner, admin, approver, contributor); viewers get 403 FORBIDDEN.
Parameters
| Name | Type | Description |
|---|---|---|
id (path) required | integer |
Responses
200Deleted
Organizations
Manage workspaces and teams
GET /api/organizations — List organizations
Responses
200Organizations
POST /api/organizations — Create organization
Request body
| Name | Type | Description |
|---|---|---|
name required | string |
Responses
201Created
GET /api/organizations/{id} — Get organization details
Parameters
| Name | Type | Description |
|---|---|---|
id (path) required | integer |
Responses
200Organization details with user role
PUT /api/organizations/{id} — Rename organization
Owner only. Updates the organization name.
Parameters
| Name | Type | Description |
|---|---|---|
id (path) required | integer |
Request body
| Name | Type | Description |
|---|---|---|
name required | string |
Responses
200Updated organization
DELETE /api/organizations/{id} — Delete organization
Owner only. Requires confirmation by sending the organization name in the request body. Permanently deletes the organization and all associated data (posts, media, channels, schedules, metrics). Cannot delete the user's last organization. Does NOT cancel the subscription.
Parameters
| Name | Type | Description |
|---|---|---|
id (path) required | integer |
Request body
| Name | Type | Description |
|---|---|---|
confirmName required | string | Must exactly match the organization name |
Responses
200Deleted400Confirmation required or cannot delete last organization
POST /api/organizations/switch — Switch active organization
Request body
| Name | Type | Description |
|---|---|---|
organizationId required | integer |
Responses
200Switched
POST /api/organizations/leave — Leave an organization
Remove yourself from an organization you're a member of. The owner cannot leave (delete the organization instead). Everything you created in the workspace (posts, connected channels, repeat posts, RSS feeds, media, labels, channel sets, templates and similar) is reassigned to the owner, posts and conversations assigned to you become unassigned, and pending client connect links you created are revoked.
Request body
| Name | Type | Description |
|---|---|---|
organizationId required | integer |
Responses
200Left the organization400Owner cannot leave, or invalid request
Notifications
View and manage in-app notifications
GET /api/notifications — List notifications
Parameters
| Name | Type | Description |
|---|---|---|
page (query) | integer | optional — Page number (default: 1) |
limit (query) | integer | optional — Items per page (default: 20) |
unreadOnly (query) | boolean | optional — Show only unread notifications |
Responses
200Notifications
PATCH /api/notifications — Mark as read
Request body
| Name | Type | Description |
|---|---|---|
ids | integer[] | |
all | boolean |
Responses
200Marked
DELETE /api/notifications — Delete notifications
Request body
| Name | Type | Description |
|---|---|---|
ids | integer[] | |
all | boolean |
Responses
200Deleted
GET /api/notifications/preferences — Get notification preferences
Responses
200Preferences
PUT /api/notifications/preferences — Update preferences
Request body
| Name | Type | Description |
|---|---|---|
emailOnFailure | boolean | |
emailDailyDigest | boolean | |
emailOnTokenExpiry | boolean | |
inAppPublished | boolean | |
inAppFailed | boolean | |
inAppScheduleReminder | boolean | |
inAppTokenExpiry | boolean |
Responses
200Updated
POST /api/push/tokens — Register a mobile push token
Registers (or refreshes) an Expo push token for the authenticated user. Used by the BulkPublish mobile app; tokens are upserted by value, so a device that switches accounts is reassigned to the current user.
Request body
| Name | Type | Description |
|---|---|---|
token required | string | Expo push token, e.g. ExponentPushToken[xxxx] |
platform required | "ios" | "android" | |
deviceName | string |
Responses
200Registered400Invalid token or platform
DELETE /api/push/tokens — Unregister a mobile push token
Request body
| Name | Type | Description |
|---|---|---|
token required | string |
Responses
200Unregistered
API Keys
Manage API authentication keys. Available on all plans (Free: 1 key, Lifetime: 2, Pro: 5, Business: 10).
GET /api/api-keys — List API keys
Lists the workspace's keys with their secrets masked. Each key reports its access level. Read-only keys cannot call this endpoint.
Responses
200API keys (secrets masked)
POST /api/api-keys — Create API key
Keys are created from a signed-in session in the app (the API page). A request authenticated with an API key or OAuth token gets 403, so a key can never mint its own replacement. Documented here for the shape of the key it returns.
Request body
| Name | Type | Description |
|---|---|---|
name required | string | |
access | "full" | "read_only" | What the key may do. |
expiresAt | string | Must be in the future. Takes precedence over |
expires_in_days | integer | null | Days from now until the key expires. Omit both this and |
Responses
201Created (full key shown once)400Invalid name, expiry or access level403Not called from a signed-in session
GET /api/api-keys/usage — API usage stats
Returns today's API call count, daily limit based on plan, and per-key breakdown. Daily limits: Free 10, Lifetime 1,000, Pro 5,000, Business 50,000.
Responses
200Usage data with today's count, limit, plan, and per-key breakdown
GET /api/api-keys/usage/history — API usage history
Returns daily API call counts for the last N days (default 30, max 90). Includes today's count so far alongside the previous days.
Parameters
| Name | Type | Description |
|---|---|---|
days (query) | integer | Number of days (default 30, max 90) |
Responses
200Array of { date, count } entries
DELETE /api/api-keys/{id} — Delete API key
Parameters
| Name | Type | Description |
|---|---|---|
id (path) required | integer |
Responses
200Deleted
OAuth
Beta: let your users connect their own BulkPublish account instead of pasting an API key. Register an app under Settings > API to get a client ID.
POST /api/oauth/token — Exchange an authorization code or refresh token
Token endpoint (RFC 6749). No user authentication — the client authenticates itself. Confidential clients send client_secret (form field or HTTP Basic); public clients send none and rely on PKCE. Authorization codes are single-use and refresh tokens rotate: presenting either one twice revokes every token issued under that authorization, per OAuth 2.1. Failures return a single invalid_grant message for missing, expired and already-used credentials alike, so the endpoint cannot be used to probe which case applies.
Responses
200Tokens issued400invalid_request, invalid_grant or unsupported_grant_type401invalid_client — unknown client or bad secret429Too many token requests from this IP
POST /api/oauth/revoke — Revoke a token
Token revocation (RFC 7009). Revoking either the access or the refresh token disconnects the whole authorization — the user sees the app disappear from Connected apps. Returns 200 whether or not the token existed, so it cannot be used to probe for valid tokens.
Responses
200Revoked (or the token did not exist)401invalid_client — client authentication failed
Inbox
Read and answer direct messages, reviews and comments across your channels
GET /api/inbox/conversations — List conversations
Direct messages, reviews, comment threads and mentions across your connected channels, newest activity first.
Availability. The Inbox is being rolled out and is part of the Pro and Business plans. Until it is available to your account every Inbox endpoint returns 403 with code: "FEATURE_DISABLED" and feature: "inbox". On a plan without the Inbox the same 403 also carries plan, upgrade: true and a hint naming the plan to upgrade to. Check for the code, not the sentence. Comment threads (kind: "comment") are included only once comment replies are available to your account; until then they are left out of every view, including kind=comment. Mentions (kind: "mention") work the same way: they appear only once mentions are available to your account, and only from networks that report them, so which networks deliver mentions depends on the network and on your workspace's plan.
Search (q) also matches the internal notes your team has left on a conversation. Conversations on networks that are not yet generally available are not included for API keys and OAuth apps.
Paging. Pass nextCursor back as cursor to get the next page; nextCursor is null on the last page. Treat it as opaque.
Readable by every role. OAuth apps need the inbox:read scope (or full).
Parameters
| Name | Type | Description |
|---|---|---|
status (query) | "open" | "archived" | "snoozed" | optional — |
kind (query) | "dm" | "review" | "comment" | "mention" | optional — |
platforms (query) | string | optional — Comma-separated platforms; matches any of them. Unknown names are ignored. |
platform (query) | string | optional — Single platform (older form of |
channelId (query) | integer | optional — Only this channel. |
assigned (query) | string | optional — |
labelId (query) | integer | optional — Only conversations carrying this inbox label ( |
labelIds (query) | string | optional — Comma-separated inbox label ids; matches conversations carrying ANY of them. At most 50 ids are used; anything that is not a positive whole number is ignored. |
q (query) | string | optional — Search the participant's name and handle and the message text, including your team's internal notes (2 to 100 characters; shorter is ignored). |
cursor (query) | string | optional — |
offset (query) | integer | optional — Skip this many conversations, for numbered pages (0 to 100000, default 0). Ignored when |
limit (query) | integer | optional — Page size, 1 to 100 (default 50). |
Responses
200One page of conversations401Unauthorized403Not available:FEATURE_DISABLED(see Availability above), orFORBIDDENwhen your role cannot do this, orINSUFFICIENT_SCOPEfor an OAuth app without the scope.
PATCH /api/inbox/conversations/{id} — Update a conversation (read, archive, snooze, assign)
Changes your workspace's handling of one conversation. Nothing is sent to the other person and nothing changes on the platform.
Fields may be combined; send at least one.
read: truemarks it read;read: falsemarks it unread.status: "archived"archives it,status: "open"reopens it. Either clears a snooze.snoozedUntil(ISO timestamp, in the future and at most 90 days out) hides it until then and setsstatustosnoozed; it reopens on its own at that time (within a few minutes).nullunsnoozes it.assignedUserIdassigns it to a member of the workspace (that teammate is notified);nullunassigns it.
Availability. The Inbox is being rolled out and is part of the Pro and Business plans. Until it is available to your account every Inbox endpoint returns 403 with code: "FEATURE_DISABLED" and feature: "inbox". On a plan without the Inbox the same 403 also carries plan, upgrade: true and a hint naming the plan to upgrade to. Check for the code, not the sentence.
Requires a role that can edit posts (owner, admin, approver, contributor); viewers get 403 FORBIDDEN. Limited to 60 Inbox changes per minute per user, after which you get 429. OAuth apps need the inbox:write scope (or full). posts:write does not cover this: answering people is a separate consent from publishing posts.
Parameters
| Name | Type | Description |
|---|---|---|
id (path) required | integer |
Request body
| Name | Type | Description |
|---|---|---|
read | boolean | |
status | "open" | "archived" | |
snoozedUntil | string | null | |
assignedUserId | string | null |
Responses
200Updated400Invalid body, or nothing to update403Not available:FEATURE_DISABLED(see Availability above), orFORBIDDENwhen your role cannot do this, orINSUFFICIENT_SCOPEfor an OAuth app without the scope.404Conversation not found in this workspace422assignedUserIdis not a member of this workspace429Rate limited
GET /api/inbox/conversations/{id}/messages — Get a conversation's messages
The newest 500 messages of one conversation, oldest first. Reading does not mark the conversation read; use PATCH /api/inbox/conversations/{id} with read: true for that.
Availability. The Inbox is being rolled out and is part of the Pro and Business plans. Until it is available to your account every Inbox endpoint returns 403 with code: "FEATURE_DISABLED" and feature: "inbox". On a plan without the Inbox the same 403 also carries plan, upgrade: true and a hint naming the plan to upgrade to. Check for the code, not the sentence.
Internal notes your team leaves on the conversation are returned inline, in time order, with direction: "note" and their author. They are never sent to the other person. Add one with POST /api/inbox/conversations/{id}/notes. Conversations on networks that are not yet generally available are not available to API keys and OAuth apps (404).
Readable by every role. OAuth apps need the inbox:read scope (or full).
Parameters
| Name | Type | Description |
|---|---|---|
id (path) required | integer |
Responses
200The thread403Not available:FEATURE_DISABLED(see Availability above), orFORBIDDENwhen your role cannot do this, orINSUFFICIENT_SCOPEfor an OAuth app without the scope.404Conversation not found in this workspace
POST /api/inbox/conversations/{id}/messages — Reply in a conversation
Sends a reply to the person on the platform, immediately, from the channel the conversation belongs to. It cannot be unsent from here. In a comment thread the reply answers the newest comment from the other person, or the one given in replyToMessageId. In a mention, the reply answers the post that mentioned you.
Send text (up to 4,000 characters), mediaIds (up to 4 files from your media library), or both. Whether a platform accepts attachments, and which kinds, is in the conversation's attachments; reviews, comments and mentions are text only. To leave a note for your team instead, use POST /api/inbox/conversations/{id}/notes.
Some platforms only accept a reply within 24 hours of the person's last message (Facebook Messenger and Instagram); after that this returns 422 and canReply is false on the conversation.
Availability. The Inbox is being rolled out and is part of the Pro and Business plans. Until it is available to your account every Inbox endpoint returns 403 with code: "FEATURE_DISABLED" and feature: "inbox". On a plan without the Inbox the same 403 also carries plan, upgrade: true and a hint naming the plan to upgrade to. Check for the code, not the sentence.
Requires a role that can edit posts (owner, admin, approver, contributor). Limited to 30 replies per minute per user, after which you get 429. OAuth apps need the inbox:write scope (or full). posts:write does not cover this: answering people is a separate consent from publishing posts.
Parameters
| Name | Type | Description |
|---|---|---|
id (path) required | integer |
Request body
| Name | Type | Description |
|---|---|---|
text | string | |
mediaIds | integer[] | |
replyToMessageId | integer | Comment threads only: the |
Responses
201Sent400Invalid body (no text or media, too long, bad ids)403Not available:FEATURE_DISABLED(see Availability above), orFORBIDDENwhen your role cannot do this, orINSUFFICIENT_SCOPEfor an OAuth app without the scope. Also returned withcode: "QUOTA_EXCEEDED"(resource: "x_api_budget") when the workspace's monthly X budget cannot cover the call. X charges for every message and reply sent, and those charges count against the same plan budget (and credits) as publishing to X.404Conversation not found in this workspace409RECONNECT_REQUIRED: the channel this conversation belongs to has no working connection, or needs a permission the account can grant from the Channels page. Reconnect it, then retry.422The channel cannot reply here, the reply window has closed, or an attachment is not accepted.errorsays which, in a sentence you can show a person.429Rate limited502The platform refused or failed the send.errorcarries its reason.
POST /api/inbox/conversations/{id}/notes — Add an internal note to a conversation
Leaves a note in the conversation for your team. It is never sent to the other person and nothing changes on the platform. Notes come back inline in GET /api/inbox/conversations/{id}/messages with direction: "note", and q on the conversation list searches them.
The note's author is the person the API key or OAuth app acts for.
Mentioning a teammate. Write @[Display Name](user:USER_ID) in text to mention a member of the workspace; when note mentions are available to your account they are notified (at most 10 people per note, never the author, and only real members of the workspace). The name is for display only; the user id decides who is told. The teammate the conversation is assigned to is told about every note, unless a mention already told them.
Availability. The Inbox is being rolled out and is part of the Pro and Business plans. Until it is available to your account every Inbox endpoint returns 403 with code: "FEATURE_DISABLED" and feature: "inbox". On a plan without the Inbox the same 403 also carries plan, upgrade: true and a hint naming the plan to upgrade to. Check for the code, not the sentence.
Requires a role that can edit posts (owner, admin, approver, contributor); viewers get 403 FORBIDDEN. Limited to 60 Inbox changes per minute per user, after which you get 429. OAuth apps need the inbox:write scope (or full); a read-only API key gets 403 INSUFFICIENT_SCOPE.
Parameters
| Name | Type | Description |
|---|---|---|
id (path) required | integer | Conversation id |
Request body
| Name | Type | Description |
|---|---|---|
text required | string | 1 to 4,000 characters, trimmed. |
Responses
201Note added400Invalid id, invalid JSON, ortextmissing or longer than 4,000 characters401Unauthorized403Not available:FEATURE_DISABLED(see Availability above), orFORBIDDENwhen your role cannot do this, orINSUFFICIENT_SCOPEfor an OAuth app or read-only API key without the scope.404Conversation not found in this workspace429Rate limited
PUT /api/inbox/conversations/{id}/labels — Set a conversation's labels
Replaces the conversation's inbox labels with exactly the ids sent; [] removes them all. Every id must be a label of type inbox in this workspace (list them with GET /api/labels?type=inbox, create one with POST /api/labels and type: "inbox"); if any is not, nothing changes and you get 422. A conversation carries at most 20 labels. Duplicate ids are counted once. Labels are your workspace's own organization: nothing is sent to the other person.
Availability. The Inbox is being rolled out and is part of the Pro and Business plans. Until it is available to your account every Inbox endpoint returns 403 with code: "FEATURE_DISABLED" and feature: "inbox". On a plan without the Inbox the same 403 also carries plan, upgrade: true and a hint naming the plan to upgrade to. Check for the code, not the sentence.
Requires a role that can edit posts (owner, admin, approver, contributor); viewers get 403 FORBIDDEN. Limited to 60 Inbox changes per minute per user, after which you get 429. OAuth apps need the inbox:write scope (or full); a read-only API key gets 403 INSUFFICIENT_SCOPE.
Parameters
| Name | Type | Description |
|---|---|---|
id (path) required | integer | Conversation id |
Request body
| Name | Type | Description |
|---|---|---|
labelIds required | integer[] | The complete set of inbox label ids the conversation should carry: at most 20 different ids (duplicates are ignored before the limit is checked). |
Responses
200Labels set400Invalid id, invalid JSON,labelIdsnot an array of positive whole numbers, or more than 20 labels401Unauthorized403Not available:FEATURE_DISABLED(see Availability above), orFORBIDDENwhen your role cannot do this, orINSUFFICIENT_SCOPEfor an OAuth app or read-only API key without the scope.404Conversation not found in this workspace422One or more ids are not inbox labels of this workspace429Rate limited
GET /api/inbox/saved-replies — List saved replies
Your workspace's saved replies (reusable answer text), sorted by name; a workspace holds at most 200. variables lists the placeholders a reply may contain. They are returned exactly as written: fill them in yourself before sending the text with POST /api/inbox/conversations/{id}/messages.
Availability. The Inbox is being rolled out and is part of the Pro and Business plans. Until it is available to your account every Inbox endpoint returns 403 with code: "FEATURE_DISABLED" and feature: "inbox". On a plan without the Inbox the same 403 also carries plan, upgrade: true and a hint naming the plan to upgrade to. Check for the code, not the sentence.
Readable by every role. OAuth apps need the inbox:read scope (or full).
Responses
200Saved replies401Unauthorized403Not available:FEATURE_DISABLED(see Availability above), orFORBIDDENwhen your role cannot do this, orINSUFFICIENT_SCOPEfor an OAuth app or read-only API key without the scope.
POST /api/inbox/saved-replies — Create a saved reply
Adds a saved reply for the whole workspace. At most 200 per workspace (400 beyond that).
Availability. The Inbox is being rolled out and is part of the Pro and Business plans. Until it is available to your account every Inbox endpoint returns 403 with code: "FEATURE_DISABLED" and feature: "inbox". On a plan without the Inbox the same 403 also carries plan, upgrade: true and a hint naming the plan to upgrade to. Check for the code, not the sentence.
Requires a role that can edit posts (owner, admin, approver, contributor); viewers get 403 FORBIDDEN. Limited to 60 Inbox changes per minute per user, after which you get 429. OAuth apps need the inbox:write scope (or full); a read-only API key gets 403 INSUFFICIENT_SCOPE.
Request body
| Name | Type | Description |
|---|---|---|
name required | string | 1 to 100 characters, trimmed. Unique within the workspace (409 otherwise). |
body required | string | 1 to 4,000 characters, trimmed. May contain the placeholders listed in |
Responses
201Created400Invalid JSON,nameorbodymissing or too long, or the workspace already has 200 saved replies401Unauthorized403Not available:FEATURE_DISABLED(see Availability above), orFORBIDDENwhen your role cannot do this, orINSUFFICIENT_SCOPEfor an OAuth app or read-only API key without the scope.409A saved reply with this name already exists429Rate limited
PUT /api/inbox/saved-replies/{id} — Update a saved reply
Replaces a saved reply's name and text; send both.
Availability. The Inbox is being rolled out and is part of the Pro and Business plans. Until it is available to your account every Inbox endpoint returns 403 with code: "FEATURE_DISABLED" and feature: "inbox". On a plan without the Inbox the same 403 also carries plan, upgrade: true and a hint naming the plan to upgrade to. Check for the code, not the sentence.
Requires a role that can edit posts (owner, admin, approver, contributor); viewers get 403 FORBIDDEN. Limited to 60 Inbox changes per minute per user, after which you get 429. OAuth apps need the inbox:write scope (or full); a read-only API key gets 403 INSUFFICIENT_SCOPE.
Parameters
| Name | Type | Description |
|---|---|---|
id (path) required | integer | Saved reply id |
Request body
| Name | Type | Description |
|---|---|---|
name required | string | 1 to 100 characters, trimmed. Unique within the workspace (409 otherwise). |
body required | string | 1 to 4,000 characters, trimmed. May contain the placeholders listed in |
Responses
200Updated400Invalid id, invalid JSON, ornameorbodymissing or too long401Unauthorized403Not available:FEATURE_DISABLED(see Availability above), orFORBIDDENwhen your role cannot do this, orINSUFFICIENT_SCOPEfor an OAuth app or read-only API key without the scope.404Saved reply not found in this workspace409Another saved reply already has this name429Rate limited
DELETE /api/inbox/saved-replies/{id} — Delete a saved reply
Deletes a saved reply for the whole workspace. Replies already sent with its text are not affected.
Availability. The Inbox is being rolled out and is part of the Pro and Business plans. Until it is available to your account every Inbox endpoint returns 403 with code: "FEATURE_DISABLED" and feature: "inbox". On a plan without the Inbox the same 403 also carries plan, upgrade: true and a hint naming the plan to upgrade to. Check for the code, not the sentence.
Requires a role that can edit posts (owner, admin, approver, contributor); viewers get 403 FORBIDDEN. Limited to 60 Inbox changes per minute per user, after which you get 429. OAuth apps need the inbox:write scope (or full); a read-only API key gets 403 INSUFFICIENT_SCOPE.
Parameters
| Name | Type | Description |
|---|---|---|
id (path) required | integer | Saved reply id |
Responses
200Deleted400Invalid id401Unauthorized403Not available:FEATURE_DISABLED(see Availability above), orFORBIDDENwhen your role cannot do this, orINSUFFICIENT_SCOPEfor an OAuth app or read-only API key without the scope.404Saved reply not found in this workspace429Rate limited
POST /api/posts/{id}/comments/reply — Reply to a comment on a published post
Posts a public reply to a comment, immediately, as the channel the post was published to. It cannot be taken back from here.
postPlatformId and commentId come from GET /api/posts/{id}/engagement: the post's entry for that channel, and the comment's id.
When replying to a reply, pass the thread's top-level comment as rootCommentId (Instagram and YouTube address replies to the top-level comment).
Availability. Replying to and moderating comments is being rolled out. Until it is available to your account this returns 403 with code: "FEATURE_DISABLED" and feature: "comments_inbox". Comment replies are part of every plan except Free: on Free the same 403 also carries plan, upgrade: true and a hint naming the plan to upgrade to. Check for the code, not the sentence. Reading comments through GET /api/posts/{id}/engagement is not affected and stays available on every plan.
Requires a role that can edit posts (owner, admin, approver, contributor). Limited to 10 replies per minute per user, after which you get 429. OAuth apps need the inbox:write scope (or full). posts:write does not cover this: answering people is a separate consent from publishing posts.
Parameters
| Name | Type | Description |
|---|---|---|
id (path) required | integer | The post id |
Request body
| Name | Type | Description |
|---|---|---|
postPlatformId required | integer | |
commentId required | string | |
text required | string | |
rootCommentId | string |
Responses
201Replied400Missing or invalid field403Not available:FEATURE_DISABLED(see Availability above), orFORBIDDENwhen your role cannot do this, orINSUFFICIENT_SCOPEfor an OAuth app without the scope. Also returned withcode: "QUOTA_EXCEEDED"(resource: "x_api_budget") when the workspace's monthly X budget cannot cover the call. X charges for every message and reply sent, and those charges count against the same plan budget (and credits) as publishing to X.404Post not found in this workspace409RECONNECT_REQUIRED(codederrorobject) when the channel must be reconnected; a plainerrorstring when the post has not been published to that channel yet.422This channel cannot reply to comments.errorsays why.429Rate limited502The platform refused or failed the reply.
POST /api/posts/{id}/comments/moderate — Like, hide or delete a comment on a published post
Acts on a comment, on the platform, as the channel the post was published to. like/unlike and hide/unhide can be undone; delete is permanent on the platform and needs a role that can publish (owner, admin, approver) — other roles get 403. Hiding or deleting also removes the comment from your Inbox.
Which actions a channel supports is in commentActions on its GET /api/posts/{id}/engagement entry; anything else returns 422. Threads supports hide and unhide; Facebook supports hide, unhide and delete. A comment you hid on Threads or Facebook comes back from GET /api/posts/{id}/engagement with hidden: true.
postPlatformId and commentId come from GET /api/posts/{id}/engagement: the post's entry for that channel, and the comment's id.
Availability. Replying to and moderating comments is being rolled out. Until it is available to your account this returns 403 with code: "FEATURE_DISABLED" and feature: "comments_inbox". Comment replies are part of every plan except Free: on Free the same 403 also carries plan, upgrade: true and a hint naming the plan to upgrade to. Check for the code, not the sentence. Reading comments through GET /api/posts/{id}/engagement is not affected and stays available on every plan.
Requires a role that can edit posts (owner, admin, approver, contributor). Limited to 30 actions per minute per user, after which you get 429. OAuth apps need the inbox:write scope (or full). posts:write does not cover this: answering people is a separate consent from publishing posts.
Parameters
| Name | Type | Description |
|---|---|---|
id (path) required | integer | The post id |
Request body
| Name | Type | Description |
|---|---|---|
postPlatformId required | integer | |
commentId required | string | |
action required | "like" | "unlike" | "hide" | "unhide" | "delete" |
Responses
200Done400Missing or invalid field403Not available:FEATURE_DISABLED(see Availability above), orFORBIDDENwhen your role cannot do this, orINSUFFICIENT_SCOPEfor an OAuth app without the scope.404Post not found in this workspace409RECONNECT_REQUIRED(codederrorobject) when the channel must be reconnected; a plainerrorstring when the post has not been published to that channel yet.422This channel cannot take that action on this comment.429Rate limited502The platform refused or failed the action.
Utilities
Link previews, quotas, activity log
GET /api/link-preview — Preview link metadata
Fetch OpenGraph metadata from a URL. SSRF-protected.
Parameters
| Name | Type | Description |
|---|---|---|
url (query) required | string | required — HTTP/HTTPS URL to preview |
Responses
200Link metadata
GET /api/quotas/usage — Get quota usage
Current usage vs limits for all resource types on your plan.
Parameters
| Name | Type | Description |
|---|---|---|
tz (query) | string | optional — IANA timezone name (e.g. |
Responses
200Current usage vs limits for all resource types on your plan.usage.scheduledTodaycounts posts scheduled FOR the current day (excludingdraftandfailed) and pairs withlimits.scheduledPerDay— distinct fromusage.pendingScheduled, which is every pending scheduled post regardless of date and pairs withlimits.maxPendingScheduled.usage.postsTodaycounts posts created today (UTC) and pairs withlimits.postsPerDay; likeusage.postsThisMonth, it counts creations, so deleting a post does not lower it.usage.mediaStorageMBcounts only files whose original is still stored: a file deleted after publishing keeps its library entry and its reported size, but no longer counts here. The response also carrieschannelSlots— the org's purchased extra-channel add-on state:{ active, slots: [{id, expiresAt, autoRenews}], baseChannelLimit, effectiveChannelLimit }. Slots are granted by a seat-based subscription at $2.99 per slot per month (seats = slot count, one subscription per organization). Each active slot raises the effective total channel limit by one and allows one channel above the per-platform cap (shared across platforms). A slot'sautoRenewssays whether it rolls forward with the subscription (expiresAtmoves each cycle) or lapses atexpiresAt; slots no connected channel is using are auto-canceled shortly before renewal, so the org is never billed for unused headroom.effectiveChannelLimit(base plan limit + active slots;-1stays-1) is what channel-connect quota checks actually enforce.
GET /api/quotas/x-usage — X (Twitter) API spend
Per-org X API call costs. Writes AND metered reads (metrics, engagement, user search, health checks) draw from ONE monthly budget — plan allowance first, purchased credits as overage; there is no separate read quota, and metered reads are unavailable on the Free and Lifetime plans, which have no included budget (credits unlock publishing only). absorbedDcents is retained for compatibility and covers only historical pre-2026-08 read usage. Returns today's breakdown, monthly budget status, and 30-day history. The included budget is one per owner: it is shared by every workspace the owner has on the plan, so budget.usedDcents is their combined use and budget.shared is true. Credits stay per workspace and pay for that workspace's own use beyond the shared budget. costs lists every billed action, including media_metadata (an image description, $0.005). The budget renews monthly on the workspace's billing date (on the 1st for a workspace without one, such as Free); budget.resetsAt is when the current period ends. A post the budget cannot cover is held for up to 24 hours and published as soon as credits cover it, then fails.
Parameters
| Name | Type | Description |
|---|---|---|
days (query) | integer | optional — History window in days (default 30, max 90) |
Responses
200X usage data
POST /api/quotas/x-credits/checkout — Create X credits checkout
Create a checkout session to top up X (Twitter) API credits. amountCents is the X usage to buy. Checkout charges that amount plus a processing fee (for example $0.72 on $5, $1.59 on $20), and the credit balance increases by amountCents once the payment completes. The response states the fee and the total so a client can show them before redirecting. Requires the workspace owner; other roles get 403 FORBIDDEN.
Request body
| Name | Type | Description |
|---|---|---|
amountCents required | integer | X usage to buy, in USD cents, before the processing fee. Minimum 500 ($5), maximum 100000 ($1000). |
Responses
200Checkout URL, with the credit bought, the processing fee and the total charged before tax
POST /api/quotas/ai-credits/checkout — Create AI credits checkout
Create a checkout session to top up AI caption credits. The user pays the chosen amount; their credit balance increases 1:1 once the payment completes (1 cent = 1 AI run). Requires the workspace owner; other roles get 403 FORBIDDEN.
Request body
| Name | Type | Description |
|---|---|---|
amountCents required | integer | Amount to charge in USD cents. Minimum 500 ($5), maximum 100000 ($1000). |
Responses
200Checkout URL
POST /api/quotas/channel-slots/checkout — Add extra channel slots
Purchase extra channel slots — a seat-based subscription at $2.99 per slot per month (seats = slot count, one subscription per organization). Each active slot raises the organization's effective total channel limit by one and allows one channel above the per-platform cap (slots are generic and shared across platforms). Body: { count?: number } — slots to add, default 1, clamped to 1..100. With no existing slot subscription this returns { url, checkoutId } — redirect the user to url to subscribe. With an existing slot subscription the seats are increased server-side (prorated) and the response is { updated: true, seats } with no redirect. Purchase is available on every plan, including Free; already-granted slots keep working on any tier until they lapse. Slots renew automatically with the subscription; shortly before each renewal, slots no connected channel is using are automatically canceled or reduced so the organization is never billed for unused headroom (an email explains how to keep them). When slots lapse (cancellation, refund, or payment failure) and the organization is left over its limit, the most recently connected excess channels are suspended (paused, tokens kept) after 7-day and 1-day warning emails. Channel-limit 403 QUOTA_EXCEEDED errors on every plan include addon: "channel_slot" to signal this purchase as a remedy. Requires the workspace owner; other roles get 403 FORBIDDEN.
Responses
200New subscription:{ url, checkoutId }— redirect the user tourlto pay. Existing subscription:{ updated: true, seats }— slots added by prorated seat increase, no redirect.400Already at the maximum of 100 extra slots (code: SLOT_MAX_REACHED).403Reserved: organization is on a plan that cannot purchase slots (code: SLOT_PLAN_INELIGIBLE). Currently unused — every plan may purchase slots.503Payments are disabled (code: PAYMENTS_DISABLED) or the product is not configured.
POST /api/ai/caption — Generate an AI caption
Generate, rephrase, improve, shorten, expand or restyle a caption, apply your own instruction to a selected passage (action=custom), or caption an image. Consumes one AI run-unit (image = 2) from the plan's monthly allowance, then from purchased credits. Returns up to several variants plus a usage snapshot. Requires a role that can edit posts (owner, admin, approver, contributor); viewers get 403 FORBIDDEN.
Request body
| Name | Type | Description |
|---|---|---|
action required | "generate" | "improve" | "rephrase" | "shorten" | "expand" | "hashtags" | "emojis" | "fix" | "tone" | "custom" | "image" | What to do. |
text | string | Working caption draft (context for generate; target for edit actions). |
selection | string | Selected substring to act on (Wordtune-style). When present, every edit action — including custom — rewrites this rather than the whole of text, and text is passed along as the surrounding context. |
prompt | string | Topic or instruction. Required for action=generate (what the caption should be about) and for action=custom (what to do to the passage). Optional extra context for action=image. The fixed edit actions carry their own instruction and ignore it. |
platform | string | Target platform key (drives tone + character budget). |
tone | "professional" | "casual" | "funny" | "inspirational" | "informative" | Required for action=tone. |
imageUrl | string | Public image URL. Required for action=image. |
Responses
200Caption variants + usage402Out of AI runs — buy credits429Rate limited
GET /api/activity — Activity log
Parameters
| Name | Type | Description |
|---|---|---|
page (query) | integer | optional — Page number (default: 1) |
limit (query) | integer | optional — Items per page (default: 20) |
action (query) | string | optional — Filter by action type |
resource (query) | string | optional — Filter by resource type |
userId (query) | string | optional — Only entries recorded for this member. |
from (query) | string | optional — Earliest entry to return, ISO 8601. A bare date starts at its first instant. |
to (query) | string | optional — Latest entry to return, ISO 8601. A bare date includes the whole day it names. |
Responses
200Activities. Each entry carriesactor—{ id, name, image }for the member who performed it, or null when that account no longer exists.