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

NameTypeDescription
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 published also covers partial (the post went live, just not on every channel), and that team approval is a separate axis — use approvalStatus, not a status value, to find posts awaiting review.

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 status: a post can be scheduled and pending at once. A value outside this list answers 400.

assignedTo (query)string

Filter by who the post is assigned to: a user id, me for the caller, or unassigned for posts nobody has taken. Assignment is orthogonal to status — a post can be scheduled AND assigned.

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. desc (the default) returns the most recent first. asc returns the earliest first, which is what you want when reading the next few scheduled posts rather than the furthest-out ones. Any other value answers 400 rather than quietly falling back to desc.

Responses

  • 200 Posts 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

NameTypeDescription
contentstring

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 requiredobject[]

Required. Target channels to publish to

status"draft" | "scheduled"

Optional. Default: draft

mediaFilesinteger[]

Optional. Media file IDs from POST /api/media

scheduledAtstring

Optional. Required when status is 'scheduled'

timezonestring

Optional. IANA timezone (default: UTC)

labelsinteger[]

Optional. Label IDs to attach

postFormat"post" | "video" | "reel" | "story" | "carousel" | "thread"

Optional. Default: post

postTypeOverridesobject

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: post (text, one image or one video), multi_image (2 to 20 images), pdf_carousel (2 to 20 images shown as a swipeable carousel), article (a link with preview), document (one PDF, Word or PowerPoint file of up to 100MB and 300 pages, shown in the feed as a document people page through; needs exactly one document in mediaIds and no images or videos; title from platformSpecific.linkedin.documentTitle), poll (a question with 2 to 4 answers from platformSpecific.linkedin.poll; needs post text; takes no media) and reshare (shares an existing LinkedIn post from platformSpecific.linkedin.reshareId; post text is optional and is published alongside it; takes no media). A document can only be published to LinkedIn, as a document post: a post that carries a document and targets any other platform, or a LinkedIn post type other than document, is rejected with 400 VALIDATION_ERROR when it is scheduled or published (a draft may hold one). repost (X, Threads, Bluesky, Mastodon) reposts an existing post at the scheduled time: the post's own text and media are ignored and platformSpecific.<platform>.repostId must hold the target (X: status URL or ID; Mastodon: status URL or ID; Bluesky: bsky.app post URL or at:// URI; Threads: the numeric post ID; Threads links cannot be used, and for posts published through BulkPublish the ID is in the post details). A missing or unparsable target is rejected with 400 VALIDATION_ERROR. This post type is available through the API only; the composer in the app does not offer it.

platformSpecificobject

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 reel and feed_video, which Instagram publishes as the same Reel), graduationStrategy ('manual'|'auto' — any other value is rejected with 400 VALIDATION_ERROR; ignored unless trialReel is true), thumbnailTimestamp (seconds), coverUrl, isAiGenerated }. isAiGenerated (boolean) shows Instagram's "AI info" label, a self-disclosure that the post contains AI-generated content; it applies to feed photos, videos, Reels and carousels but not Stories, and on a carousel it is set on the carousel itself rather than on its items. Only true is sent: false or leaving it out adds no label, and Instagram may still label a post on its own. A non-boolean value is rejected with 400 VALIDATION_ERROR. collaborators is a comma-separated list of Instagram usernames (no leading @) tagged as co-authors; it applies to post types feed_photo, feed_video, reel and carousel — on a carousel it is set on the carousel itself rather than on its individual items — and is ignored on story, which has no co-author concept. thumbnailTimestamp and coverUrl both set the still shown before a video or Reel plays, and both apply to post types feed_video and reel; coverUrl wins when both are sent, because Instagram rejects a request carrying both. userTags is an array of { username, x, y, mediaIndex }: username is a public Instagram account (letters, numbers, periods, underscores, up to 30 characters, leading @ optional); x and y are the person's position on the photo as fractions from 0 to 1 from the top left, given together or not at all; mediaIndex is the item of the post's media the tag belongs to, counting from 0 in attachment order (default 0). Up to 20 people per photo or video. On a single photo and on each photo of a carousel a tag needs x and y, and a tag without a position is left out; on a Reel or video post people are tagged by username only, any position is ignored and mediaIndex does not matter; carousel videos and Stories carry no tags. Tags follow position, so re-check them if you reorder media. Invalid username, x or y outside 0 to 1 or only one of them, a negative or fractional mediaIndex, more than 20 on one item, or a non-array value is rejected with 400 VALIDATION_ERROR. shareToFeed (boolean) applies to Reels (post types reel and feed_video): false shows the Reel only in the Reels tab, true also shows it in the main feed, and when omitted Instagram's own default applies (feed and Reels tab); it is ignored on every other post type, and a non-boolean value is rejected with 400 VALIDATION_ERROR. locationId (string of digits) tags a place by the numeric ID of a Facebook Page that has a location; it applies to photos, videos, Reels and carousels but not Stories, anything but digits is rejected with 400 VALIDATION_ERROR, and if Instagram does not recognise the ID as a place it refuses the post. TikTok: { privacyLevel ('PUBLIC_TO_EVERYONE'|'MUTUAL_FOLLOW_FRIENDS'|'FOLLOWER_OF_CREATOR'|'SELF_ONLY' — any other value is rejected with 400 VALIDATION_ERROR; only the levels the connected account's creator info lists are accepted by TikTok; when omitted or null, the post is published as PUBLIC_TO_EVERYONE), disableDuet, disableStitch, disableComment, isAigc, brandContentToggle, brandOrganicToggle, thumbnailTimestamp, sendToDrafts, photoCoverIndex, autoAddMusic }. sendToDrafts (boolean, default false) sends a video or photo_slideshow post to the creator's TikTok drafts instead of publishing it; TikTok notifies the creator, who adds a sound, chooses who can view it and posts it from the app. With sendToDrafts true, privacyLevel is not required, and privacyLevel, disableDuet, disableStitch, disableComment, isAigc, brandContentToggle, brandOrganicToggle, autoAddMusic and thumbnailTimestamp are ignored. A video draft carries no caption (the creator writes it in the app), and TikTok may show its own default description on it until the creator replaces it; a photo draft sends the caption and honours photoCoverIndex. Once TikTok has the draft, the post's TikTok destination becomes published with no platformUrl, because there is no public post until the creator posts it. For about a week after that we check whether the creator has posted it; once they have, platformPostId becomes the TikTok video id, platformUrl is filled in, and analytics are collected from then on. A draft posted later than that keeps no platformUrl. A non-boolean value is rejected with 400 VALIDATION_ERROR. photoCoverIndex (integer 0 to 34, default 0) picks which image of a photo_slideshow post is the cover, counting from 0 in attachment order; it is ignored on video posts, any other value is rejected with 400 VALIDATION_ERROR, and an index past the last attached image falls back to the first image. autoAddMusic (boolean, default false) applies to photo posts that are published directly and lets TikTok add a recommended track; it is ignored with sendToDrafts. YouTube: { title, privacyStatus ('public'|'unlisted'|'private' — any other value is rejected with 400 VALIDATION_ERROR), categoryId, madeForKids, playlistId, thumbnailUrl, containsSyntheticMedia, notifySubscribers, license, embeddable, publicStatsViewable, defaultLanguage, defaultAudioLanguage, recordingDate }. The last eight apply to post types video and short and are sent to YouTube only when set, so YouTube's own defaults (and the channel's upload defaults) apply otherwise. containsSyntheticMedia (boolean) true discloses realistic altered or synthetic content. notifySubscribers (boolean): only an explicit false changes anything and publishes without notifying subscribers. license ('youtube'|'creativeCommon'; default youtube; creativeCommon publishes under Creative Commons Attribution; any other value is rejected with 400 VALIDATION_ERROR). embeddable (boolean): false stops other websites embedding the video. publicStatsViewable (boolean): false hides extended statistics on the watch page. defaultLanguage is the language of the title and description and defaultAudioLanguage the language spoken in the video, each a language code such as 'en', 'pt-BR' or 'zh-Hans'. recordingDate is YYYY-MM-DD or an ISO 8601 date-time; a plain date is stored as midnight UTC. A non-boolean, bad language code or bad date is rejected with 400 VALIDATION_ERROR. Pinterest: { title, description, link, coverKeyFrameTime, boardSectionId, [channelId]: { boardId, boardSectionId } }. boardSectionId (numeric string) puts the pin in a section of the chosen board, sent beside its board either per channel or as the flat pair; list a board's sections with GET /api/channels/{id}/options?boardId=<boardId> on a Pinterest channel. It applies to pin, video_pin and carousel; a non-numeric value is rejected with 400 VALIDATION_ERROR, a flat boardSectionId is ignored for a channel that has its own boardId, and any section is ignored when no board was chosen and the pin goes to the default board. coverKeyFrameTime (integer seconds, video_pin only, 0 or more) uses the frame at that time as the cover, and a time past the end uses the last frame; coverImageUrl wins when both are sent; any other value is rejected with 400 VALIDATION_ERROR. LinkedIn: { url, title, description, documentTitle, poll, reshareId, thumbnailUrl, visibility, disableReshare }. On an article post, url (an http(s) link) is required and title and description are optional text for the link card; a missing url is only reported when the post is published. Every field is optional on its own; what a post type needs is checked when the post is scheduled or published, so a draft may be incomplete. documentTitle (string) is the title shown above the document in the feed on a document post; it defaults to the file's name. poll is { question, options, duration } on a poll post: question is up to 140 characters, options is 2 to 4 strings of up to 30 characters each (surrounding spaces trimmed, blank entries ignored) and duration is 'ONE_DAY'|'THREE_DAYS'|'SEVEN_DAYS'|'FOURTEEN_DAYS' (default THREE_DAYS); a poll needs post text as well as the question and cannot carry media, and any violation is rejected with 400 VALIDATION_ERROR. reshareId is the post to share on a reshare post, as its LinkedIn link (on LinkedIn, the post's menu, 'Copy link to post') or its urn:li:share:<id> or urn:li:ugcPost:<id> ID; activity links (urn:li:activity:<id>) cannot be reshared and are rejected when the post is scheduled or published, as is any value no post can be read from. A reshare takes optional post text, published alongside the shared post, and no media. thumbnailUrl is the cover for a post that carries a video: a public http(s) link to an image of up to 10MB, and a value that is not a public http(s) link is rejected with 400 VALIDATION_ERROR; a cover that cannot be fetched, is not an image or is over 10MB is skipped and the video publishes with the frame LinkedIn picks. visibility ('PUBLIC'|'CONNECTIONS'|'LOGGED_IN'; default PUBLIC; any other value is rejected with 400 VALIDATION_ERROR) sets who can see the post: anyone, your first-degree connections, or signed-in LinkedIn members. CONNECTIONS applies to personal profiles only: on a Page it is published as PUBLIC, because a Page has no connections. disableReshare (boolean, default false) stops other members resharing the post, and a non-boolean value is rejected with 400 VALIDATION_ERROR. visibility and disableReshare apply to every LinkedIn post type. GMB: { ctaType ('BOOK'|'ORDER'|'SHOP'|'LEARN_MORE'|'SIGN_UP'|'CALL' — any other value is rejected with 400 VALIDATION_ERROR), ctaUrl, eventTitle, startDate, startTime, endDate, endTime, couponCode, redeemOnlineUrl, termsConditions }. X: { replySettings ('everyone'|'following'|'verified'|'subscribers'|'mentionedUsers' — any other value is rejected with 400 VALIDATION_ERROR), poll, quoteId, communityId, shareWithFollowers }. replySettings applies to a single post and to the first post of a thread. poll is { options, durationMinutes }: options is 2 to 4 strings of 1 to 25 characters each (surrounding spaces trimmed) and durationMinutes is a whole number from 5 to 10080. quoteId is the post to quote, as its numeric ID or its URL (x.com or twitter.com status links). A poll cannot be combined with media or with quoteId, and either combination is rejected with 400 VALIDATION_ERROR (a poll with media is checked when the post is scheduled or published, so a draft may hold both). communityId posts into an X Community, as its numeric ID or its URL (https://x.com/i/communities/<id>); the account must be a member. shareWithFollowers (boolean, default false) also shows a community post to followers and is ignored without communityId. On a thread, poll, quoteId and communityId apply to the first post only. None of these applies to a repost. Threads: { quotePostId, topicTag, locationId, replyControl, pollOptions, linkAttachment, isAiGenerated }. isAiGenerated (boolean) shows Threads' "AI info" label on text, image, video and carousel posts, and on every part of a thread; on a carousel it is set on the carousel itself. Only true is sent: false or leaving it out adds no label, and Threads may still label a post on its own. A non-boolean value is rejected with 400 VALIDATION_ERROR. topicTag is one topic per post, sent without a leading '#'; a value containing a period or an ampersand is rejected with 400 VALIDATION_ERROR. locationId is a numeric place ID from GET /api/channels/{id}/options?q=<place> on a Threads channel (any other value is rejected with 400 VALIDATION_ERROR); location search is available only once the connected Threads account has granted location tagging, and the options endpoint answers { unavailable: true } until then. Both apply to the root post of a thread, never to its replies. replyControl ('everyone'|'accounts_you_follow'|'mentioned_only'|'parent_post_author_only'|'followers_only'; default everyone, which is not sent) sets who can reply; parent_post_author_only means only you. It applies to the post itself (text, image, video, carousel and the first part of a thread), never to later replies in a thread, and is ignored on a repost. Any other value is rejected with 400 VALIDATION_ERROR, with a 'did you mean' hint for upper-case spellings. pollOptions is an array of 2 to 4 strings of 1 to 25 characters each after trimming (empty strings are ignored, and an array with none filled means no poll); Threads allows polls on text-only posts, so on an image, video or carousel post the poll is left out and the post publishes without it, and in a thread the poll goes on the first part when it has no media. A non-array, 1 or more than 4 filled options, or an option over 25 characters is rejected with 400 VALIDATION_ERROR. linkAttachment is an http(s) URL on a public host that Threads shows as the preview card on a text post; it is left out on any other post type, and when omitted Threads shows a card for the first link in the text. Threads refuses a post with more than 5 links in total, and a linkAttachment that differs from every link in the text counts as one more. A non-URL, non-http scheme or private host is rejected with 400 VALIDATION_ERROR. Bluesky: { replyAllow, allowQuotes, quoteId, langs, contentLabel }. replyAllow is an array of who can reply: omitted or [] means everyone, otherwise ['nobody'] or any combination of 'mention' (accounts mentioned in the post), 'following' (accounts you follow) and 'follower' (your followers); 'nobody' cannot be combined with other values and any other value is rejected with 400 VALIDATION_ERROR. replyAllow and allowQuotes are set right after the post publishes; if Bluesky refuses the setting the post stays published without it. allowQuotes (boolean, default true) false stops other accounts quoting the post. quoteId is the post to quote, as a https://bsky.app/profile/<handle>/post/<id> link or an at:// post URI (a bare ID is read as one of your own posts); with images or a video attached the quote and media appear together, a quote replaces a link card, and if the post cannot be found publishing fails before anything is posted. langs is up to 3 language codes such as 'en' or 'pt-BR'; more than 3 or a value that is not a language code is rejected with 400 VALIDATION_ERROR. contentLabel ('sexual'|'nudity'|'porn'|'graphic-media') adds a content warning, and any other value is rejected with 400 VALIDATION_ERROR. replyAllow, allowQuotes and quoteId apply to the first post of a thread; langs and contentLabel apply to every part; none applies to a repost. Mastodon: { poll, sensitive, quoteId }. poll is { options, expiresIn, multiple, hideTotals }: options is 2 to 4 strings of 1 to 50 characters, expiresIn is a whole number of seconds from 300 to 2629746, multiple (boolean, default false) lets voters pick more than one choice, and hideTotals (boolean, default false) hides counts until the poll ends. A poll cannot be combined with media (rejected with 400 VALIDATION_ERROR when the post is scheduled or published, so a draft may hold both), and a server configured with tighter limits refuses the post at publish time with its own message. sensitive (boolean, default false) hides attached media behind a click and has no effect without media; it applies to every part of a thread. quoteId is the post to quote, as its URL or its status ID on your own server (a URL from another server is looked up from your account first); quote posts need a server running Mastodon 4.5 or later, and on an older server publishing fails with 'Your Mastodon server does not support quote posts yet' and nothing is posted. If the quoted author does not allow quotes, Mastodon refuses the post. poll and quoteId apply to the first post of a thread; none applies to a repost. Discord: { [channelId]: { channelId, silent, buttons, startThread, threadName, embed, poll, pin, tags } } — the outer key is the BulkPublish channel id, the inner channelId is the target Discord text channel. silent (boolean) suppresses notifications. buttons is an array of { label, url } link buttons: up to 5, label up to 80 characters, url http(s); a row left completely blank is dropped. startThread (boolean) starts a thread from the message, named by threadName (up to 100 characters); it has no effect on a forum channel, where each post is already its own thread. embed is { title (up to 256 characters), color ('orange'|'blue'|'green'|'red'|'purple'|'gray') } and sends the text as a rich embed with the first image inside. poll is { question (up to 300 characters), answers (2 to 10 strings of up to 55 characters), durationHours (whole number from 1 to 768, default 24), multiselect (boolean, default false) }; a forum channel's starter message cannot carry a poll, so a poll is left off a forum post. pin (boolean) pins the message; if Discord refuses, the post stays published and a warning is recorded. tags is up to 5 forum tag IDs (digits) for a forum channel; the forum channels and their tag IDs come from GET /api/channels/{id}/options. Pinning and polls need the bot to hold the Pin Messages and Send Polls permissions: servers where the bot was added earlier must grant them in the server's role settings, otherwise those options are refused by Discord. Any value outside these limits is rejected with 400 VALIDATION_ERROR naming the path, for example platformSpecific.discord.123.poll.answers accepts at most 10 answers. Telegram: { [channelId]: { silent, protectContent, pin, threadId, buttons, spoiler, disablePreview, poll } }; the destination chat is fixed when the channel is connected. silent (boolean) sends without a notification sound; protectContent (boolean) stops recipients forwarding or saving the message; pin (boolean) pins it after sending, and if the bot lacks the right to pin the post still publishes and a warning is recorded; threadId (digits, up to 12) is the forum topic to post into; buttons is an array of { label, url } link buttons: up to 3, label up to 64 characters, url http(s), blank rows dropped; spoiler (boolean) hides a photo or video behind a spoiler; disablePreview (boolean) turns off the link preview. poll is { question (1 to 300 characters, required), options (2 to 12 strings of up to 100 characters), anonymous (boolean, default true), multipleAnswers (boolean, default false), quiz (boolean, default false), correctOption } and is sent as a poll after the message; correctOption is the 0-based index of the right answer and is required when quiz is true, and multipleAnswers cannot be combined with quiz. A non-boolean flag, an out-of-range value or a malformed button or poll is rejected with 400 VALIDATION_ERROR naming the path, for example platformSpecific.telegram.123.poll.options needs at least 2 answers. Attached GIFs, audio and other files are sent to Telegram as an animation, an audio file or a document according to their type. Tumblr: { [channelId]: { blogName, title, tags (array of strings, or one comma-separated string; leading '#' and blank entries are dropped), link, sourceUrl, state, slug, reblogInteraction, reblogUrl } }; blogName defaults to the blog the channel was connected as. state ('published'|'queue'|'draft'|'private'; default published; any other value is rejected with 400 VALIDATION_ERROR) sets where the post goes: a scheduled post with state published still goes out at its scheduled time, while draft and private override that and the post is never made public by BulkPublish. slug (up to 200 characters) is lowercased and hyphenated into the permalink. reblogInteraction ('everyone'|'noone') sets who can reblog the post. reblogUrl is a Tumblr post link (tumblr.com/<blog>/<post id> or <blog>.tumblr.com/post/<post id>) and publishes a reblog of that post with your text as the comment; a value that is not a Tumblr post link is rejected with 400 VALIDATION_ERROR. Snapchat: { [channelId]: { title (Saved Story title, max 45 chars — defaults to the caption's first line), locale (Spotlight locale, default 'en_US'), link (Story and Spotlight: a full http(s) URL, max 2000 chars, opened from a link sticker on the snap), linkStickerText (up to 40 chars, one line, no emoji; ignored without a link), linkStickerPosition ('top'|'middle'|'bottom'; ignored without a link; Snapchat centres it when omitted), overlayText (Story and Spotlight on-screen text, up to 250 chars, no emoji), overlayPosition ('top'|'middle'|'bottom'), storyDurationDays (Story only: 1, 2, 3 or 7; default 1, i.e. 24 hours). A video carrying link or overlayText must be vertical (9:16); photos of any shape are fine. Invalid values are rejected with 400 VALIDATION_ERROR whatever the post type; a saved_story ignores all six, and sticker text and position are ignored without a link. saveToProfile (Spotlight only) is still accepted but has no effect: Snapchat no longer lets an app choose whether a Spotlight is saved to the profile } }; post types are story (default; caption not sent to Snapchat), saved_story and spotlight (video only, caption becomes the 160-char description); every Snapchat post requires exactly one image or video. Links held in these options are tracked like links in the caption when link tracking is on for the post: snapchat link (not on a saved_story) is sent as a bulkpubli.sh short link, so its clicks are counted (if Snapchat refuses the short link, the post is published with the link as written); tumblr link, pinterest link and gmb ctaUrl / redeemOnlineUrl are never shortened and still point straight at your site (Tumblr builds its link card from the address it is given, and Pinterest may block links that redirect). Wherever the workspace adds UTM tags to caption links automatically, these links get the same tags. The stored values always stay as written. Telegram, Discord, Tumblr and Snapchat also accept a flat (non channel-id-keyed) object that applies to every channel of that platform on the post; both shapes are validated. Use _firstComment (string), at the TOP level of platformSpecific rather than inside a platform key, for an auto-posted reply after publish. Supported on x, instagram, facebook, linkedin, youtube, threads, bluesky, mastodon and telegram; NOT supported on discord, pinterest, tiktok, gmb or tumblr, where the main post still publishes and the comment is recorded as failed. Snapchat does not support first comments either.

platformContentobject

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 content otherwise; an override for a platform the post does not target is ignored.

platformMediaFileIdsobject

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.

deleteMediaAfterPublishboolean

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.

threadPartsobject[]

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.

platformThreadPartsobject

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.

repeatScheduleobject

Optional. Recurring schedule config

autoPlugEnabledboolean

Optional. Auto-post a comment when the post reaches a like threshold

autoPlugTextstring

Optional. The promotional comment text for auto-plug

autoPlugThresholdinteger

Optional. Number of likes to trigger auto-plug (default: 50). Whole number from 0 to 2147483647; outside that range the request is rejected.

autoRepostEnabledboolean

Optional. Auto-repost/reshare when the post reaches a like threshold

autoRepostThresholdinteger

Optional. Number of likes to trigger auto-repost (default: 100). Whole number from 0 to 2147483647; outside that range the request is rejected.

requestApprovalboolean

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.

publishWhenApprovedboolean

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

linkTrackingOverrideboolean | null

Per-post override for link tracking (bulkpubli.sh). true forces links in this post to be shortened and their clicks counted, false forces them to publish as written, and null (the default) inherits the organization's Link Tracking setting. Shortening happens at publish time, per channel, so two accounts on the same platform get distinct codes; it is skipped for a channel when the rewrite would push the post past that platform's character limit. Short links are part of the Pro and Business plans: on Free, links always publish as written and true has no effect.

Responses

  • 201 Post created
  • 400 Validation error (character limit, missing fields), or CHANNEL_INACTIVE when a scheduled or publish-now post names a disconnected channel (error.channelIds lists them; drafts may still name one)
  • 403 Platform not on the plan (FEATURE_DISABLED) or switched off server-side (PLATFORM_DISABLED)
  • 422 Quota 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

NameTypeDescription
id (path) requiredinteger

Responses

  • 200 Post details
  • 404 Not 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

NameTypeDescription
id (path) requiredinteger

Request body

NameTypeDescription
contentstring
mediaFilesinteger[]
scheduledAtstring
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.

channelsany[]

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: publishing, processing, unconfirmed) must stay in the list, or the request is refused with 400 CHANNEL_ALREADY_PUBLISHED and nothing is saved.

labelsinteger[]
platformSpecificobject

Per-platform options, keyed by platform. Replaced wholesale on update (not merged). Accepts the same per-platform options and validation as platformSpecific on POST /api/posts.

platformContentobject

Per-platform content overrides, keyed by platform; values must be plain strings (nested objects are rejected with 400 VALIDATION_ERROR). Replaced wholesale on update.

platformMediaFileIdsobject

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.

postTypeOverridesobject

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 document, poll and reshare types and a document attached to a non-LinkedIn channel are described on POST /api/posts. repost (X, Threads, Bluesky, Mastodon) reposts an existing post at the scheduled time: the post's own text and media are ignored and platformSpecific.<platform>.repostId must hold the target (X: status URL or ID; Mastodon: status URL or ID; Bluesky: bsky.app post URL or at:// URI; Threads: the numeric post ID; Threads links cannot be used, and for posts published through BulkPublish the ID is in the post details). A missing or unparsable target is rejected with 400 VALIDATION_ERROR. This post type is available through the API only; the composer in the app does not offer it.

postFormat"post" | "thread"

Post format. Defaults to 'post'.

threadPartsobject[]

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.

requestApprovalboolean

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.

publishWhenApprovedboolean

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

linkTrackingOverrideboolean | null

Per-post override for link tracking (bulkpubli.sh). true forces links in this post to be shortened and their clicks counted, false forces them to publish as written, and null (the default) inherits the organization's Link Tracking setting. Shortening happens at publish time, per channel, so two accounts on the same platform get distinct codes; it is skipped for a channel when the rewrite would push the post past that platform's character limit. Short links are part of the Pro and Business plans: on Free, links always publish as written and true has no effect.

ifUnmodifiedSincestring

Optional precondition: the post's updatedAt as you last read it, ISO 8601 with milliseconds. The edit is refused with 409 CONFLICT if somebody else has changed the post since then, instead of overwriting their version. Omit it for the previous behaviour, last write wins. Milliseconds matter — two edits in the same second are distinct, which is why this is a body field and not the If-Unmodified-Since header.

Responses

  • 200 Updated post
  • 400 Validation error, including CHANNEL_ALREADY_PUBLISHED when channels leaves out a channel the post has already gone out on
  • 409 Somebody 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

NameTypeDescription
id (path) requiredinteger

Request body

NameTypeDescription
recurringScheduleIdinteger | 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.

ifUnmodifiedSincestring

Optional precondition: the post's updatedAt as you last read it, ISO 8601 with milliseconds. The edit is refused with 409 CONFLICT if somebody else has changed the post since then, instead of overwriting their version. Omit it for the previous behaviour, last write wins. Milliseconds matter — two edits in the same second are distinct, which is why this is a body field and not the If-Unmodified-Since header.

assignedUserIdstring | 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

  • 200 Updated post
  • 400 A 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 null
  • 404 Post not found
  • 409 Somebody else changed the post after the ifUnmodifiedSince you sent. The error body carries the post's current updatedAt.
  • 422 recurringScheduleId 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

NameTypeDescription
id (path) requiredinteger

Responses

  • 200 Deleted
  • 409 Post 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

NameTypeDescription
id (path) requiredinteger

Responses

  • 200 Publishing started
  • 400 Validation error, or only unconfirmed platforms remain (code UNCONFIRMED_REQUIRES_REPUBLISH)
  • 403 Role cannot publish, or a target platform is switched off server-side (PLATFORM_DISABLED)
  • 409 A 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

NameTypeDescription
id (path) requiredinteger

Request body

NameTypeDescription
republishboolean

Explicit opt-in to also retry platforms in status 'unconfirmed'. Their publish may have already gone through; retrying can create a duplicate post.

Responses

  • 200 Retry queued
  • 400 No 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

NameTypeDescription
id (path) requiredinteger

Responses

  • 200 Metrics per platform. Each entry in platforms carries metricsSupported (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) and supportedMetrics, the list of metric keys that platform's API can populate. supportedMetrics can also depend on the post type: an Instagram story lists only impressions, reach, comments (story replies) and engagementRate, because story insights have no likes, saves or shares. Every other key on latest is 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 carries linkClicks, and totals.linkClicks sums them: clicks on bulkpubli.sh short links in this post, measured by BulkPublish. It sits OUTSIDE latest because it is not a platform snapshot — a platform that reports nothing still has link clicks — and is distinct from the platform-reported clicks field. supportedMetrics therefore always includes linkClicks, even when metricsSupported is 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

NameTypeDescription
id (path) requiredinteger
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, hasMoreComments is true.

reactionsLimit (query)integer

optional — Max reactors per platform (default 25, max 100)

Responses

  • 200 Engagement per platform
  • 404 Post 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

NameTypeDescription
id (path) requiredinteger

Request body

NameTypeDescription
platform required"facebook" | "instagram"

required — Target platform for the story

Responses

  • 200 Story published
  • 400 Invalid platform, no media, or no matching platform entry
  • 404 Post not found
  • 409 A story for this post+platform is already being published (code STORY_IN_PROGRESS)
  • 422 The 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

NameTypeDescription
action required"delete" | "retry" | "reschedule"
postIds requiredinteger[]

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.

scheduledAtstring

Responses

  • 200 Bulk action completed
  • 400 Invalid request (e.g. more than 100 postIds, or an unparseable scheduledAt)
  • 403 Role cannot edit posts (FORBIDDEN), or reschedule would 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

NameTypeDescription
timezone (query)string

optional — IANA timezone (default: UTC)

position (query)"next" | "end"

optional — next (default) returns the next free slot. end returns the slot after the last pending scheduled post, i.e. the bottom of the queue; with nothing queued it equals next. Any other value is rejected with 400 VALIDATION_ERROR.

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

  • 200 Next available queue slot
  • 400 timezone is not an IANA timezone name, or position/excludePostId is invalid (VALIDATION_ERROR)
  • 422 No 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

NameTypeDescription
id (path) requiredinteger

Request body

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

ifUnmodifiedSincestring

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

  • 200 The approved post
  • 400 Post is not awaiting approval, whenLate is not 'publish' or 'hold', or ifUnmodifiedSince is not an ISO 8601 timestamp
  • 403 Role lacks post:approve
  • 404 Post not found
  • 409 The 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

NameTypeDescription
id (path) requiredinteger

Request body

NameTypeDescription
reasonstring

Optional. Shown to the author (in-app notification + on the post).

ifUnmodifiedSincestring

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

  • 200 The rejected post
  • 400 Post is not awaiting approval, or ifUnmodifiedSince is not an ISO 8601 timestamp
  • 403 Role lacks post:approve
  • 404 Post not found
  • 409 The 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}/share — Create or get the post's review link

Returns a read-only review link (https://app.bulkpublish.com/p/<token>) that anyone holding it can open without signing in. It shows the post's text, media, destinations and timing, always the current version. The first call creates the token (201); later calls return the same one (200). Body { "regenerate": true } mints a new token and kills the old link. Posts expose the token as shareToken (null when no link exists). 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

NameTypeDescription
id (path) requiredinteger

Request body

NameTypeDescription
regenerateboolean

Responses

  • 200 Existing link: { shareToken, url, created: false }
  • 201 New link: { shareToken, url, created: true }
  • 404 Not found

DELETE /api/posts/{id}/share — Revoke the post's review link

Idempotent. Returns { success: true, revoked } where revoked says whether a link existed. 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

NameTypeDescription
id (path) requiredinteger

Responses

  • 200 Revoked
  • 404 Not found

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

NameTypeDescription
active (query)boolean

optional — Filter by active status (default: true). false returns every active channel plus up to 100 disconnected ones, most recently updated first.

Responses

  • 200 Channel list

GET /api/channels/{id} — Get channel

Parameters

NameTypeDescription
id (path) requiredinteger

Responses

  • 200 Channel 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

NameTypeDescription
id (path) requiredinteger

Request body

NameTypeDescription
metricsSyncEnabledboolean
inboxSyncEnabledboolean

Responses

  • 200 Updated
  • 400 No supported field in the body
  • 403 Role cannot manage channels
  • 404 Channel 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

NameTypeDescription
id (path) requiredinteger

Responses

  • 200 Disconnected

GET /api/channels/{id}/health — Check channel health

Parameters

NameTypeDescription
id (path) requiredinteger

Responses

  • 200 Health 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

NameTypeDescription
id (path) requiredinteger

Channel ID

q (query)string

optional — Search term. Threads: place search for platformSpecific.threads.locationId.

boardId (query)string

optional Pinterest only: numeric board ID. Returns that board's sections instead of the boards. Anything non-numeric returns 400 Invalid board ID.

Responses

  • 200 Platform options
  • 409 The 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

NameTypeDescription
id (path) requiredinteger

Channel ID

q (query) requiredstring

Search query (max 100 chars)

Responses

  • 200 { users: [{ id, handle, name, profileImage?, vanityName? }], notice? }. vanityName is present on LinkedIn results only: it is the Page's URL slug (linkedin.com/company/<slug>), which is what the search matched on. notice is 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

  • 200 Platform list
  • 401 Unauthorized

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

  • 200 Channel 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

NameTypeDescription
name requiredstring
channelIds requiredinteger[]

IDs of channels in your organization

Responses

  • 201 Created
  • 400 Invalid name or channelIds
  • 409 Duplicate 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

NameTypeDescription
id (path) requiredinteger

Request body

NameTypeDescription
namestring
channelIdsinteger[]

IDs of channels in your organization

Responses

  • 200 Updated
  • 404 Not found
  • 409 Duplicate 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

NameTypeDescription
id (path) requiredinteger

Responses

  • 200 Deleted
  • 404 Not 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

  • 200 Feeds

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

NameTypeDescription
name requiredstring
feedUrl requiredstring

Public RSS 2.0 or Atom feed URL

channelIds requiredinteger[]
mode"draft" | "publish"

draft = new items become drafts for review; publish = auto-published

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

requireApprovalboolean

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

  • 201 Created
  • 400 Invalid 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

NameTypeDescription
id (path) requiredinteger

Request body

NameTypeDescription
namestring
feedUrlstring

Public RSS 2.0 or Atom feed URL

channelIdsinteger[]
mode"draft" | "publish"

draft = new items become drafts for review; publish = auto-published

enabledboolean
fieldMappingobject | 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.

requireApprovalboolean

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

  • 200 Updated
  • 404 Not 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

NameTypeDescription
id (path) requiredinteger

Responses

  • 200 Deleted
  • 404 Not found

Media

Upload and manage images and videos

GET /api/media — List media files

Parameters

NameTypeDescription
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: image, video or document (PDF, Word and PowerPoint files). Omit for all files.

Responses

  • 200 Media list — { files, page, limit, total }, where total counts 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

NameTypeDescription
filestring

Responses

  • 201 File 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

NameTypeDescription
contentType requiredstring

MIME type (JPEG, PNG, WebP, GIF, MP4, QuickTime, WebM, PDF, Word, PowerPoint)

sizeBytes requiredinteger

Size of the file to upload in bytes

Responses

  • 200 Presigned URL
  • 400 Invalid type or size
  • 403 Storage 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

NameTypeDescription
r2Key requiredstring

Object key returned by /api/media/presign

fileName requiredstring
mimeType requiredstring
sizeBytes requiredinteger
widthinteger

optional — image/video width

heightinteger

optional — image/video height

durationinteger

optional — video duration in seconds

Responses

  • 201 Media file created
  • 400 Invalid key, missing object, or content mismatch
  • 403 Storage quota exceeded

GET /api/media/{id} — Get media file

Parameters

NameTypeDescription
id (path) requiredinteger

Responses

  • 200 Media 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

NameTypeDescription
id (path) requiredinteger

Request body

NameTypeDescription
altText requiredstring

Responses

  • 200 Updated: { file: { id, altText } }
  • 400 Validation error
  • 404 Not 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

NameTypeDescription
id (path) requiredinteger

Responses

  • 200 Deleted

GET /api/media/{id}/thumbnail — Get media thumbnail

Redirects to the thumbnail URL for the given media file.

Parameters

NameTypeDescription
id (path) requiredinteger

Responses

  • 302 Redirect to thumbnail URL
  • 404 Media not found or no thumbnail available

GET /api/media/{id}/labels — Get media labels

Parameters

NameTypeDescription
id (path) requiredinteger

Responses

  • 200 Labels

PUT /api/media/{id}/labels — Set media labels

Requires a role that can edit posts (owner, admin, approver, contributor); viewers get 403 FORBIDDEN.

Parameters

NameTypeDescription
id (path) requiredinteger

Request body

NameTypeDescription
labelIdsinteger[]

Responses

  • 200 Updated

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

NameTypeDescription
contentType requiredstring

One of the allowed media MIME types (images, videos, and PDF, Word and PowerPoint documents)

sizeBytes requiredinteger

Exact file size. Videos up to 1GB; images and documents up to 100MB.

Responses

  • 200 uploadId, r2Key, partSize, and presigned partUrls
  • 400 Disallowed 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

NameTypeDescription
r2Key requiredstring
uploadId requiredstring
parts requiredobject[]
fileName requiredstring
mimeType requiredstring
sizeBytes requiredinteger
widthinteger
heightinteger
durationinteger

Responses

  • 201 Media file recorded
  • 400 Assembly 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

NameTypeDescription
r2Key requiredstring
uploadId requiredstring

Responses

  • 200 Aborted

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

NameTypeDescription
from (query) requiredstring

required — Start date (YYYY-MM-DD)

to (query) requiredstring

required — End date (YYYY-MM-DD)

tz (query)string

optional — IANA timezone (e.g. Asia/Karachi) used for day boundaries and per-day bucketing. Defaults to UTC. Invalid names fall back to UTC.

heatmap (query)"1"

optional — set to 1 to include publishedTimes (raw publish timestamps for the posting-activity heatmap, up to 5000 entries). Omitted by default; publishedTimes is then an empty array.

channelIds (query)string

optional — Comma-separated channel ids. Only post_platform rows on these channels are counted. Combines with platforms, labelIds, postFormat and mediaType (all must match).

platforms (query)string

optional — Comma-separated platform keys (x,youtube,…). Unknown keys are ignored.

labelIds (query)string

optional — Comma-separated label ids. A post matches when it carries ANY of them.

postFormat (query)"post" | "thread"

optional — post (single) or thread. Reads posts.post_format.

mediaType (query)"text" | "image" | "video"

optional — text (no media), image or video, decided by the post's FIRST media file (media_files.mime_type).

compare (query)"1"

optional — Set to 1 to also compute the equal-length window immediately before from. The result carries previous (same totals for that window, plus byDay on the engagement endpoint) and previousWindow ({from, to, days, available}). previous is null and available is false when the earlier window would reach past the 30-day statistics-retention floor — in practice comparison works for windows of 15 days or fewer.

Responses

  • 200 Summary data: totalPosts, published, scheduled, failed, partial, byPlatform, byDay, publishedTimes, from, to, plus previous/previousWindow when compare=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

NameTypeDescription
from (query) requiredstring

required — Start date (YYYY-MM-DD)

to (query) requiredstring

required — End date (YYYY-MM-DD)

tz (query)string

optional — IANA timezone (e.g. Asia/Karachi) that sets where each day of from..to starts and ends, and how byDay is bucketed. Defaults to UTC. Pass the same zone as to /api/analytics/summary so the two agree. A name that is not a timezone returns 400.

channelId (query)integer

optional — Legacy single-channel filter; equivalent to channelIds=<id> and merged with it.

top (query)"1"

optional — Set to 1 to return only the ranked topPosts list; allPosts comes back as an empty array. Used by dashboards that render a short leaderboard and would otherwise download every post in the window.

sort (query)"date" | "impressions" | "reach" | "likes" | "comments" | "shares" | "saves" | "clicks" | "videoViews" | "linkClicks" | "engagements" | "engagementRate"

Sort field for allPosts. engagements = likes + comments + shares + clicks; linkClicks sorts by bulkpubli.sh click count; engagementRate by the post-level rate.

order (query)"asc" | "desc"

Sort direction for allPosts.

topBy (query)"impressions" | "reach" | "likes" | "comments" | "shares" | "saves" | "clicks" | "videoViews" | "linkClicks" | "engagements" | "engagementRate"

optional — Metric topPosts is ranked by. Same values as sort except date. Default impressions.

topOrder (query)"asc" | "desc"

optional — desc (default) for the best posts, asc for the worst.

heatmap (query)"1"

optional — Set to 1 to include postTimes: one {t, e, i} per published post_platform (publish instant, engagements, impressions; up to 5000), for engagement-weighted best-time-to-post views. Empty array otherwise.

bestTimes (query)"1"

optional — Set to 1 to include bestTimes: the window's published posts grouped by weekday and hour in tz, with the average engagements and impressions per slot and the best slots ranked. Respects every filter and the 30-day window. A slot is only recommended in best once it holds at least minPosts (3) posts, so a single lucky post never becomes advice; when no slot gets there, best is empty and enoughData is false. Posts whose network cannot report engagements (YouTube, which does not allow combined figures; networks or LinkedIn profiles without post statistics; X channels with statistics turned off) and posts whose figures have not been read yet are left out of the averages and counted in excludedPosts. Independent of heatmap.

vsMedian (query)"1"

optional — Set to 1 to add vsMedian {impressions, engagements, basis} to every platformMetrics[] entry of topPosts and allPosts: this destination's figure divided by the median of the same channel's posts in the window (respecting every filter), rounded to 2 decimals. 1 is a typical post for that account, 0.5 half of typical, 2 twice. basis is how many of the channel's posts in the window have figures to compare against. A value is null when no comparison is possible, which is not the same as zero: the network does not report that figure, fewer than 3 of the channel's posts report it, the median is 0, or this post's figures have not been read yet. YouTube is always null for both, because YouTube does not allow derived figures. Posts not yet measured are left out of the medians.

channelIds (query)string

optional — Comma-separated channel ids. Only post_platform rows on these channels are counted. Combines with platforms, labelIds, postFormat and mediaType (all must match).

platforms (query)string

optional — Comma-separated platform keys (x,youtube,…). Unknown keys are ignored.

labelIds (query)string

optional — Comma-separated label ids. A post matches when it carries ANY of them.

postFormat (query)"post" | "thread"

optional — post (single) or thread. Reads posts.post_format.

mediaType (query)"text" | "image" | "video"

optional — text (no media), image or video, decided by the post's FIRST media file (media_files.mime_type).

compare (query)"1"

optional — Set to 1 to also compute the equal-length window immediately before from. The result carries previous (same totals for that window, plus byDay on the engagement endpoint) and previousWindow ({from, to, days, available}). previous is null and available is false when the earlier window would reach past the 30-day statistics-retention floor — in practice comparison works for windows of 15 days or fewer.

Responses

  • 200 Engagement data including totalImpressions, totalReach, totalLikes, totalComments, totalShares, totalSaves, totalClicks, totalVideoViews, avgEngagementRate, byPlatform, byDay, topPosts, allPosts, and unmeasuredPlatforms. unmeasuredPlatforms lists 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's platformMetrics carries the same signal as metricsSupported, which is also false (with supportedMetrics reduced to linkClicks) for an X post that has no snapshot because its channel has not opted into metrics sync. All figures come from the stored post_metrics snapshot, synced every 6 hours (or on demand via POST /api/analytics/refresh) — not a live read of the platform. metricSupport maps 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), so reach, clicks and videoViews are always 0 for X rows; Bluesky and Mastodon report no impressions, so engagementRate is always 0 for them; Pinterest reports no reach; YouTube reports no shares, reach or impressions (its views are videoViews), so it has no engagementRate and adds 0 to every engagements figure, because YouTube's API policies do not allow figures derived from its data; Discord reports likes (reaction counts) and comments (thread replies) only. supportedTotals is the union of metricSupport across the window — the org-wide total* fields are only measurements for keys listed here. A key absent from supportedTotals should be rendered as “not available” (a dash), never as 0. partialTotals maps 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's platformMetrics also carries supportedMetrics (same per-platform list) alongside metricsSupported. supportedMetrics can also depend on the post type: an Instagram story lists only impressions, reach, comments (story replies) and engagementRate, because story insights have no likes, saves or shares. Facebook's impressions, reach, clicks and engagementRate come from the Page Insights edge and require the read_insights permission; without it they stay 0 even though the metric is listed as supported. metricsDisabledChannels lists 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/refresh will not produce X figures for a channel that has not opted in. conditionalMetrics maps 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 for impressions, reach, clicks and engagementRate, and TikTok for reach, saves and clicks, which only accounts that have granted TikTok insights report. Each post in topPosts/allPosts carries both a post-level engagementRate and, inside platformMetrics[], a per-channel engagementRate. They are NOT the same number: the post-level value is the mean of the post's channels that reported a non-zero rate, while platformMetrics[].engagementRate is 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 (and linkClicks on each entry of byPlatform, byDay, topPosts, allPosts and platformMetrics) counts clicks on bulkpubli.sh short links, measured by BulkPublish rather than reported by the platform. It is deliberately NOT folded into totalClicks/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 in unmeasuredPlatforms, and it appears in supportedTotals/metricSupport for 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) plus platforms: the same bucket per platform for that day. byPlatform entries carry the same full set. byChannel[] lists {channelId, platform, accountName, …same metrics…} per channel. Each post in topPosts/allPosts also has reach, engagements, postFormat (post|thread), mediaType (text|image|video) and labels[] {id, name, color}; each platformMetrics[] entry has channelId, accountName, reach, engagements and fetchedAt. publishedCount is the number of published post_platform rows in the window. filters echoes the parsed filter set. With compare=1, previous holds the total*/avgEngagementRate/publishedCount fields and byDay for the preceding window (or null if unavailable) and previousWindow says which window that is. With bestTimes=1, bestTimes is {timezone, postCount, excludedPosts, minPosts, slots[], best[], enoughData}. Each slot is {weekday, hour, posts, avgEngagements, avgImpressions}: weekday is monday..sunday and hour 0..23, both in timezone; slots lists only slots with at least one post, Monday 00:00 first; avgImpressions is null when no post in the slot reports impressions. best is up to 5 slots with at least minPosts (3) posts, highest avgEngagements first. posts counts each network a post went to separately. With vsMedian=1, each platformMetrics[] entry carries vsMedian: {impressions: number|null, engagements: number|null, basis: integer}; see the vsMedian parameter for when a value is null.
  • 400 Invalid from/to date, or tz is 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

  • 200 Queued

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

NameTypeDescription
channelId (query)integer

optional — Legacy single-channel filter; equivalent to channelIds=<id>. A non-numeric value is a 400.

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

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, labelIds, postFormat and mediaType (all must match).

platforms (query)string

optional — Comma-separated platform keys (x,youtube,…). Unknown keys are ignored.

Responses

  • 200 Account metrics with channel list. engagementRate on each row is ALWAYS null: no platform handler computes an account-level engagement rate (the getAccountAnalytics contract 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-post engagementRate inside platformMetrics[] on GET /api/analytics/engagement. websiteClicks is populated by Google Business only; profileViews by 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

NameTypeDescription
postId (query) requiredinteger

required — The post id.

Responses

  • 200 History series
  • 400 postId missing or not a positive integer
  • 404 Post not found in this organization

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

NameTypeDescription
type (query)"post" | "media" | "inbox"

optional — Filter by label type: post, media or inbox (labels for Inbox conversations). Omitted, or an unknown value: every label. Labels are org-wide and one quota counts every type together (see GET /api/quotas/usage).

Responses

  • 200 Labels

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

NameTypeDescription
name requiredstring

1–100 characters, trimmed. Must be unique within the org for the same type (409 DUPLICATE_NAME otherwise).

colorstring

Hex colour, #RGB or #RRGGBB, e.g. #3B82F6. Default #6366f1. Any other format is rejected with 400.

type"post" | "media" | "inbox"

Which surface the label organizes: post, media, or inbox for Inbox conversations. Default post. Any value outside this list is rejected with 400.

Responses

  • 201 Created

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

NameTypeDescription
id (path) requiredinteger

Request body

NameTypeDescription
namestring

1–100 characters, trimmed. Renaming to a name already used by another label of the same type returns 409 DUPLICATE_NAME.

colorstring

Hex colour, #RGB or #RRGGBB, e.g. #3B82F6. Any other format is rejected with 400.

Responses

  • 200 Updated

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

NameTypeDescription
id (path) requiredinteger

Responses

  • 200 Deleted

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

  • 200 Hashtag 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

NameTypeDescription
name requiredstring

1-100 characters, trimmed. Unique per organization (case-insensitive); a clash returns 409 CONFLICT.

hashtags requiredstring[]

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

  • 201 Created
  • 400 Validation error
  • 409 Duplicate name

GET /api/hashtag-groups/{id} — Get hashtag group

Returns { group }, or 404 when it is not in your organization.

Parameters

NameTypeDescription
id (path) requiredinteger

Responses

  • 200 Hashtag group
  • 404 Not 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

NameTypeDescription
id (path) requiredinteger

Request body

NameTypeDescription
namestring

1-100 characters, trimmed. Unique per organization (case-insensitive); a clash returns 409 CONFLICT.

hashtagsstring[]

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

  • 200 Updated
  • 400 Validation error
  • 404 Not found
  • 409 Duplicate 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

NameTypeDescription
id (path) requiredinteger

Responses

  • 200 Deleted
  • 404 Not 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

NameTypeDescription
kind (query)"caption" | "first_comment"

Which kind of saved text to list: a post caption, or a first-comment reply. Defaults to caption.

Responses

  • 200 Templates

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

NameTypeDescription
name requiredstring

1-100 characters, trimmed; unique per organization (409 CONFLICT on a clash).

contentstring

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.

channelIdsinteger[]

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.

postTypeOverridesobject | null

Optional. Per-platform post types, as in a post's postTypeOverrides. Caption templates only.

mediaFileIdsinteger[]

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.

platformMediaFileIdsobject | null

Optional. Which of mediaFileIds each platform gets, as in a post's platformMediaFileIds; every id must be in mediaFileIds. Caption templates only.

platformContentobject | null

Optional. Per-platform text, as in a post's platformContent. Caption templates only.

Responses

  • 201 Created
  • 400 Validation error
  • 409 Duplicate name

GET /api/templates/{id} — Get post template

Returns { template }, or 404 when it is not in your organization.

Parameters

NameTypeDescription
id (path) requiredinteger

Responses

  • 200 { template }
  • 404 Not 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

NameTypeDescription
id (path) requiredinteger

Request body

NameTypeDescription
namestring

1-100 characters, trimmed; unique per organization (409 CONFLICT on a clash).

contentstring

Template text. CRLF is normalised to LF and surrounding whitespace trimmed.

channelIdsinteger[]

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.

postTypeOverridesobject | null

Optional. Per-platform post types, as in a post's postTypeOverrides. Caption templates only. Send null to clear it.

mediaFileIdsinteger[]

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.

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

platformContentobject | null

Optional. Per-platform text, as in a post's platformContent. Caption templates only. Send null to clear it.

Responses

  • 200 Updated
  • 400 Validation error
  • 404 Not found
  • 409 Duplicate name

DELETE /api/templates/{id} — Delete post template

Requires a role that can edit posts (owner, admin, approver, contributor); viewers get 403 FORBIDDEN.

Parameters

NameTypeDescription
id (path) requiredinteger

Responses

  • 200 Deleted
  • 404 Not 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

NameTypeDescription
from (query) requiredstring
to (query) requiredstring

Responses

  • 200 Notes
  • 400 Missing 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

NameTypeDescription
date requiredstring

Calendar date, YYYY-MM-DD. A plain date: it reads the same in every timezone.

body requiredstring
colorstring

Six-digit hex colour. Default #F59E0B.

Responses

  • 201 Created: { note }
  • 400 Validation 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

NameTypeDescription
id (path) requiredinteger

Request body

NameTypeDescription
datestring

Calendar date, YYYY-MM-DD. A plain date: it reads the same in every timezone.

bodystring
colorstring

Six-digit hex colour. Default #F59E0B.

Responses

  • 200 Updated: { note }
  • 400 Validation error
  • 404 Not 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

NameTypeDescription
id (path) requiredinteger

Responses

  • 200 Deleted
  • 404 Not 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

  • 200 Schedules

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

NameTypeDescription
name requiredstring
frequency required"daily" | "weekly" | "biweekly" | "monthly"
dayOfWeekinteger
dayOfMonthinteger
timeOfDay requiredstring

HH:MM format

timezonestring
channelIds requiredinteger[]
contentTemplatestring
isActiveboolean
postFormat"post" | "thread"

Post format. Defaults to 'post'.

threadPartsobject[]

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.

mediaFileIdsinteger[]

Media file IDs to attach to each generated post.

requireApprovalboolean

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.

platformMediaFileIdsobject

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

  • 201 Created

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

NameTypeDescription
id (path) requiredinteger

Responses

  • 200 Schedule
  • 400 The id is not a positive integer
  • 404 Schedule not found

PUT /api/schedules/{id} — Update schedule

Requires a role that can edit posts (owner, admin, approver, contributor); viewers get 403 FORBIDDEN.

Parameters

NameTypeDescription
id (path) requiredinteger

Request body

NameTypeDescription
namestring
frequency"daily" | "weekly" | "biweekly" | "monthly"
dayOfWeekinteger
dayOfMonthinteger
timeOfDaystring

HH:MM format

timezonestring
channelIdsinteger[]
contentTemplatestring
isActiveboolean
postFormat"post" | "thread"

Post format. Defaults to 'post'.

threadPartsobject[]

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.

mediaFileIdsinteger[]

Media file IDs to attach to each generated post.

requireApprovalboolean

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.

platformMediaFileIdsobject

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

  • 200 Updated

DELETE /api/schedules/{id} — Delete schedule

Requires a role that can edit posts (owner, admin, approver, contributor); viewers get 403 FORBIDDEN.

Parameters

NameTypeDescription
id (path) requiredinteger

Responses

  • 200 Deleted

Organizations

Manage workspaces and teams

GET /api/organizations — List organizations

Responses

  • 200 Organizations

POST /api/organizations — Create organization

Request body

NameTypeDescription
name requiredstring

Responses

  • 201 Created

GET /api/organizations/{id} — Get organization details

Parameters

NameTypeDescription
id (path) requiredinteger

Responses

  • 200 Organization details with user role

PUT /api/organizations/{id} — Rename organization

Owner only. Updates the organization name.

Parameters

NameTypeDescription
id (path) requiredinteger

Request body

NameTypeDescription
name requiredstring

Responses

  • 200 Updated 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

NameTypeDescription
id (path) requiredinteger

Request body

NameTypeDescription
confirmName requiredstring

Must exactly match the organization name

Responses

  • 200 Deleted
  • 400 Confirmation required or cannot delete last organization

POST /api/organizations/switch — Switch active organization

Request body

NameTypeDescription
organizationId requiredinteger

Responses

  • 200 Switched

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

NameTypeDescription
organizationId requiredinteger

Responses

  • 200 Left the organization
  • 400 Owner cannot leave, or invalid request

Notifications

View and manage in-app notifications

GET /api/notifications — List notifications

Parameters

NameTypeDescription
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

  • 200 Notifications

PATCH /api/notifications — Mark as read

Request body

NameTypeDescription
idsinteger[]
allboolean

Responses

  • 200 Marked

DELETE /api/notifications — Delete notifications

Request body

NameTypeDescription
idsinteger[]
allboolean

Responses

  • 200 Deleted

GET /api/notifications/preferences — Get notification preferences

Responses

  • 200 Preferences

PUT /api/notifications/preferences — Update preferences

Request body

NameTypeDescription
emailOnFailureboolean
emailDailyDigestboolean
emailOnTokenExpiryboolean
inAppPublishedboolean
inAppFailedboolean
inAppScheduleReminderboolean
inAppTokenExpiryboolean

Responses

  • 200 Updated

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

NameTypeDescription
token requiredstring

Expo push token, e.g. ExponentPushToken[xxxx]

platform required"ios" | "android"
deviceNamestring

Responses

  • 200 Registered
  • 400 Invalid token or platform

DELETE /api/push/tokens — Unregister a mobile push token

Request body

NameTypeDescription
token requiredstring

Responses

  • 200 Unregistered

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

  • 200 API 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

NameTypeDescription
name requiredstring
access"full" | "read_only"

What the key may do. full (the default) can do anything its owner's team role allows. read_only can read posts, schedules, RSS feeds, labels, templates, hashtag groups, review links, calendar notes, media, analytics, quota usage, channels and channel sets, and the Inbox, and nothing else: 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. Choose it for reporting, dashboards and agents that should only look. Any other value is a 400, never a full-access key.

expiresAtstring

Must be in the future. Takes precedence over expires_in_days.

expires_in_daysinteger | null

Days from now until the key expires. Omit both this and expiresAt (or send null) for a key that never expires.

Responses

  • 201 Created (full key shown once)
  • 400 Invalid name, expiry or access level
  • 403 Not 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

  • 200 Usage 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

NameTypeDescription
days (query)integer

Number of days (default 30, max 90)

Responses

  • 200 Array of { date, count } entries

DELETE /api/api-keys/{id} — Delete API key

Parameters

NameTypeDescription
id (path) requiredinteger

Responses

  • 200 Deleted

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

  • 200 Tokens issued
  • 400 invalid_request, invalid_grant or unsupported_grant_type
  • 401 invalid_client — unknown client or bad secret
  • 429 Too 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

  • 200 Revoked (or the token did not exist)
  • 401 invalid_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

NameTypeDescription
status (query)"open" | "archived" | "snoozed"

optional — open (default), archived or snoozed. An unknown value is treated as open.

kind (query)"dm" | "review" | "comment" | "mention"

optional — dm, review, comment or mention. Omit for all kinds. Asking for a kind that is not yet available to your account (see Availability) is ignored, as if kind were omitted; that kind is still left out.

platforms (query)string

optional — Comma-separated platforms; matches any of them. Unknown names are ignored.

platform (query)string

optional — Single platform (older form of platforms).

channelId (query)integer

optional — Only this channel.

assigned (query)string

optional — me, unassigned, or a teammate's user id.

labelId (query)integer

optional — Only conversations carrying this inbox label (GET /api/labels?type=inbox). Combined with labelIds, both must match.

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 — nextCursor from the previous page.

offset (query)integer

optional — Skip this many conversations, for numbered pages (0 to 100000, default 0). Ignored when cursor is sent; prefer cursor for walking the whole list, since new messages reorder it between requests.

limit (query)integer

optional — Page size, 1 to 100 (default 50).

Responses

  • 200 One page of conversations
  • 401 Unauthorized
  • 403 Not available: FEATURE_DISABLED (see Availability above), or FORBIDDEN when your role cannot do this, or INSUFFICIENT_SCOPE for 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: true marks it read; read: false marks 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 sets status to snoozed; it reopens on its own at that time (within a few minutes). null unsnoozes it.
  • assignedUserId assigns it to a member of the workspace (that teammate is notified); null unassigns 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

NameTypeDescription
id (path) requiredinteger

Request body

NameTypeDescription
readboolean
status"open" | "archived"
snoozedUntilstring | null
assignedUserIdstring | null

Responses

  • 200 Updated
  • 400 Invalid body, or nothing to update
  • 403 Not available: FEATURE_DISABLED (see Availability above), or FORBIDDEN when your role cannot do this, or INSUFFICIENT_SCOPE for an OAuth app without the scope.
  • 404 Conversation not found in this workspace
  • 422 assignedUserId is not a member of this workspace
  • 429 Rate 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

NameTypeDescription
id (path) requiredinteger

Responses

  • 200 The thread
  • 403 Not available: FEATURE_DISABLED (see Availability above), or FORBIDDEN when your role cannot do this, or INSUFFICIENT_SCOPE for an OAuth app without the scope.
  • 404 Conversation 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

NameTypeDescription
id (path) requiredinteger

Request body

NameTypeDescription
textstring
mediaIdsinteger[]
replyToMessageIdinteger

Comment threads only: the id of the incoming message (comment) to answer.

Responses

  • 201 Sent
  • 400 Invalid body (no text or media, too long, bad ids)
  • 403 Not available: FEATURE_DISABLED (see Availability above), or FORBIDDEN when your role cannot do this, or INSUFFICIENT_SCOPE for an OAuth app without the scope. Also returned with code: "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.
  • 404 Conversation not found in this workspace
  • 409 RECONNECT_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.
  • 422 The channel cannot reply here, the reply window has closed, or an attachment is not accepted. error says which, in a sentence you can show a person.
  • 429 Rate limited
  • 502 The platform refused or failed the send. error carries 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

NameTypeDescription
id (path) requiredinteger

Conversation id

Request body

NameTypeDescription
text requiredstring

1 to 4,000 characters, trimmed.

Responses

  • 201 Note added
  • 400 Invalid id, invalid JSON, or text missing or longer than 4,000 characters
  • 401 Unauthorized
  • 403 Not available: FEATURE_DISABLED (see Availability above), or FORBIDDEN when your role cannot do this, or INSUFFICIENT_SCOPE for an OAuth app or read-only API key without the scope.
  • 404 Conversation not found in this workspace
  • 429 Rate 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

NameTypeDescription
id (path) requiredinteger

Conversation id

Request body

NameTypeDescription
labelIds requiredinteger[]

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

  • 200 Labels set
  • 400 Invalid id, invalid JSON, labelIds not an array of positive whole numbers, or more than 20 labels
  • 401 Unauthorized
  • 403 Not available: FEATURE_DISABLED (see Availability above), or FORBIDDEN when your role cannot do this, or INSUFFICIENT_SCOPE for an OAuth app or read-only API key without the scope.
  • 404 Conversation not found in this workspace
  • 422 One or more ids are not inbox labels of this workspace
  • 429 Rate 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

  • 200 Saved replies
  • 401 Unauthorized
  • 403 Not available: FEATURE_DISABLED (see Availability above), or FORBIDDEN when your role cannot do this, or INSUFFICIENT_SCOPE for 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

NameTypeDescription
name requiredstring

1 to 100 characters, trimmed. Unique within the workspace (409 otherwise).

body requiredstring

1 to 4,000 characters, trimmed. May contain the placeholders listed in variables of GET /api/inbox/saved-replies, e.g. Hi {{first_name}}.

Responses

  • 201 Created
  • 400 Invalid JSON, name or body missing or too long, or the workspace already has 200 saved replies
  • 401 Unauthorized
  • 403 Not available: FEATURE_DISABLED (see Availability above), or FORBIDDEN when your role cannot do this, or INSUFFICIENT_SCOPE for an OAuth app or read-only API key without the scope.
  • 409 A saved reply with this name already exists
  • 429 Rate 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

NameTypeDescription
id (path) requiredinteger

Saved reply id

Request body

NameTypeDescription
name requiredstring

1 to 100 characters, trimmed. Unique within the workspace (409 otherwise).

body requiredstring

1 to 4,000 characters, trimmed. May contain the placeholders listed in variables of GET /api/inbox/saved-replies, e.g. Hi {{first_name}}.

Responses

  • 200 Updated
  • 400 Invalid id, invalid JSON, or name or body missing or too long
  • 401 Unauthorized
  • 403 Not available: FEATURE_DISABLED (see Availability above), or FORBIDDEN when your role cannot do this, or INSUFFICIENT_SCOPE for an OAuth app or read-only API key without the scope.
  • 404 Saved reply not found in this workspace
  • 409 Another saved reply already has this name
  • 429 Rate 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

NameTypeDescription
id (path) requiredinteger

Saved reply id

Responses

  • 200 Deleted
  • 400 Invalid id
  • 401 Unauthorized
  • 403 Not available: FEATURE_DISABLED (see Availability above), or FORBIDDEN when your role cannot do this, or INSUFFICIENT_SCOPE for an OAuth app or read-only API key without the scope.
  • 404 Saved reply not found in this workspace
  • 429 Rate 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

NameTypeDescription
id (path) requiredinteger

The post id

Request body

NameTypeDescription
postPlatformId requiredinteger
commentId requiredstring
text requiredstring
rootCommentIdstring

Responses

  • 201 Replied
  • 400 Missing or invalid field
  • 403 Not available: FEATURE_DISABLED (see Availability above), or FORBIDDEN when your role cannot do this, or INSUFFICIENT_SCOPE for an OAuth app without the scope. Also returned with code: "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.
  • 404 Post not found in this workspace
  • 409 RECONNECT_REQUIRED (coded error object) when the channel must be reconnected; a plain error string when the post has not been published to that channel yet.
  • 422 This channel cannot reply to comments. error says why.
  • 429 Rate limited
  • 502 The 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

NameTypeDescription
id (path) requiredinteger

The post id

Request body

NameTypeDescription
postPlatformId requiredinteger
commentId requiredstring
action required"like" | "unlike" | "hide" | "unhide" | "delete"

Responses

  • 200 Done
  • 400 Missing or invalid field
  • 403 Not available: FEATURE_DISABLED (see Availability above), or FORBIDDEN when your role cannot do this, or INSUFFICIENT_SCOPE for an OAuth app without the scope.
  • 404 Post not found in this workspace
  • 409 RECONNECT_REQUIRED (coded error object) when the channel must be reconnected; a plain error string when the post has not been published to that channel yet.
  • 422 This channel cannot take that action on this comment.
  • 429 Rate limited
  • 502 The platform refused or failed the action.

Utilities

Link previews, quotas, activity log

GET /api/quotas/usage — Get quota usage

Current usage vs limits for all resource types on your plan.

Parameters

NameTypeDescription
tz (query)string

optional — IANA timezone name (e.g. Asia/Karachi) used only for the day boundary of usage.scheduledToday, so it matches the same calendar day the scheduledPerDay limit is enforced against at write time. Defaults to UTC; a malformed value falls back to UTC rather than erroring.

Responses

  • 200 Current usage vs limits for all resource types on your plan. usage.scheduledToday counts posts scheduled FOR the current day (excluding draft and failed) and pairs with limits.scheduledPerDay — distinct from usage.pendingScheduled, which is every pending scheduled post regardless of date and pairs with limits.maxPendingScheduled. usage.postsToday counts posts created today (UTC) and pairs with limits.postsPerDay; like usage.postsThisMonth, it counts creations, so deleting a post does not lower it. usage.mediaStorageMB counts 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 carries channelSlots — 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's autoRenews says whether it rolls forward with the subscription (expiresAt moves each cycle) or lapses at expiresAt; 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; -1 stays -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

NameTypeDescription
days (query)integer

optional — History window in days (default 30, max 90)

Responses

  • 200 X 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

NameTypeDescription
amountCents requiredinteger

X usage to buy, in USD cents, before the processing fee. Minimum 500 ($5), maximum 100000 ($1000).

Responses

  • 200 Checkout 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

NameTypeDescription
amountCents requiredinteger

Amount to charge in USD cents. Minimum 500 ($5), maximum 100000 ($1000).

Responses

  • 200 Checkout 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

  • 200 New subscription: { url, checkoutId } — redirect the user to url to pay. Existing subscription: { updated: true, seats } — slots added by prorated seat increase, no redirect.
  • 400 Already at the maximum of 100 extra slots (code: SLOT_MAX_REACHED).
  • 403 Reserved: organization is on a plan that cannot purchase slots (code: SLOT_PLAN_INELIGIBLE). Currently unused — every plan may purchase slots.
  • 503 Payments 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

NameTypeDescription
action required"generate" | "improve" | "rephrase" | "shorten" | "expand" | "hashtags" | "emojis" | "fix" | "tone" | "custom" | "image"

What to do.

textstring

Working caption draft (context for generate; target for edit actions).

selectionstring

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.

promptstring

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.

platformstring

Target platform key (drives tone + character budget).

tone"professional" | "casual" | "funny" | "inspirational" | "informative"

Required for action=tone.

imageUrlstring

Public image URL. Required for action=image.

Responses

  • 200 Caption variants + usage
  • 402 Out of AI runs — buy credits
  • 429 Rate limited

GET /api/activity — Activity log

Parameters

NameTypeDescription
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

  • 200 Activities. Each entry carries actor — { id, name, image } for the member who performed it, or null when that account no longer exists.