PostJr
Sign in Start for $0

PostJr API reference

PostJr's web app, command line and MCP server all call this one REST API. It describes itself in an OpenAPI document, and this page is built from that document.

Start here

Limits: a workspace may make 600 requests a minute (240 that are not GET or HEAD), 300 posts and 500 uploads (5 GB) in 24 hours, and 3000 scheduled posts waiting. A workspace with no plan may make 25 posts and upload 250 MB a day. On 429, stop and wait retryAfter seconds (also the Retry-After header) before the next call.

Endpoint groups: System, Account and API keys, Support, Billing, Accounts, Groups, Feeds, Webhooks, Media, Posts, Client review, Client review pages (no sign-in), Publications, Analytics, Repeating posts.

System

Instance status

GET /v1/health

Whether the instance is up, which sign-in methods and networks it has keys for, whether it can send mail, and whether the test network is on. Needs no sign-in.

Answers: 200.

Account and API keys

Who is calling

GET /v1/me

The user behind the session or API key, and their workspace.

Answers: 200, 401, 429.

List API keys

GET /v1/api-keys

The workspace's API keys, without their secrets. Needs a signed-in session: an API key gets 403 Forbidden. Make the first key in the web app's Settings.

Answers: 200, 401, 403, 429.

Create an API key

POST /v1/api-keys

Answers the secret once, in key. Send it as a bearer token to /v1 and /mcp. A workspace has up to 25 API keys; past that, 422. Needs a signed-in session: an API key gets 403 Forbidden. Make the first key in the web app's Settings.

Body of POST /v1/api-keys
FieldTypeRequiredWhat it is
namestringYes

Answers: 200, 401, 403, 422, 429.

List connected agent apps

GET /v1/connected-agents

Lists approved MCP clients and their recent use. Needs a signed-in session: an API key gets 403 Forbidden. Make the first key in the web app's Settings.

Answers: 200, 401, 403, 429.

Revoke an API key

DELETE /v1/api-keys/{id}

The key stops working at once. Needs a signed-in session: an API key gets 403 Forbidden. Make the first key in the web app's Settings.

Parameters of DELETE /v1/api-keys/{id}
ParameterInRequiredType
idpathYesstring

Answers: 200, 401, 403, 404, 429.

Support

Contact support

POST /v1/support

Sends a bug report (bug), a question (question) or an idea (idea) to the people who run PostJr. message is 1 to 5000 characters; page (the path the person was on, max 500) and context (build, userAgent, viewport) are optional. The request is stored, then emailed to the support inbox with the caller's email as Reply-To, so the answer comes by email. Never put tokens or passwords in message. The call answers 200 with an id and receivedAt even when the email could not be sent. At most 10 per user per hour, then 429; a blank message is 422.

Body of POST /v1/support
FieldTypeRequiredWhat it is
kindbug | question | ideaYes
messagestringYes
pagestring or nullNo
contextobject or nullNo

Answers: 200, 401, 422, 429.

Billing

Billing status

GET /v1/billing

The workspace's plan: status (none, trialing, active, past_due, canceled, incomplete), the trial end or next charge, accounts used of the plan's limit, the plan (starter, pro, agency) and interval (month, year), the plans on offer, and whether it can schedule and connect now. Posts already scheduled keep publishing while a payment is past due; after 7 days, and when cancelled, new scheduling and new connections are refused with 402. Written only from Stripe's signed webhooks.

Answers: 200, 401, 429.

Start a plan

POST /v1/billing/checkout

Answers the Stripe Checkout page to send the browser to, for plan (starter $29 a month, pro $49, agency $99; about 20% less a year) and interval (month or year). 7-day free trial (once per workspace and per card), card required. During the trial a workspace may connect as many different accounts as its plan's limit in all (disconnecting one does not free a place), 20 posts may go out per UTC day, X numbers are not read, and 20 alt texts a day are written with AI. 409 when this instance has no billing, the workspace is exempt, it already has a plan, or it does not sell that plan and interval.

Body of POST /v1/billing/checkout
FieldTypeRequiredWhat it is
planstarter | pro | agencyYes
intervalmonth | yearYes

Answers: 200, 401, 409, 429, 502.

Change plan

POST /v1/billing/plan

Moves a running plan to another plan or interval through Stripe, at once, prorated. Going up a plan charges the difference for what is left of the period straight away; going down, or changing interval, credits the unused time of the old price to the next invoice (Stripe's default). A plan in its free trial keeps the trial and is charged nothing yet. A card that is declined leaves the plan as it was (409). Nothing is disconnected on a downgrade: accounts stay connected, but one post may go to at most the new plan's accounts, and no account is added while the plan is full. Answers the new status. 409 when there is no running plan, it is already on that plan and interval, or this instance does not sell it.

Body of POST /v1/billing/plan
FieldTypeRequiredWhat it is
planstarter | pro | agencyYes
intervalmonth | yearYes

Answers: 200, 401, 409, 429, 502.

Start the plan now

POST /v1/billing/trial/end

Ends the free trial at once: Stripe charges the first period now, and the trial's limits stop. Answers the new status. 409 when the workspace is not in its free trial.

Answers: 200, 401, 409, 429, 502.

Manage billing

POST /v1/billing/portal

Answers Stripe's customer portal, where the card changes and the plan cancels. 409 until the workspace has started a plan.

Answers: 200, 401, 409, 429, 502.

Accounts

List channels

GET /v1/channels

Connected social accounts with their network, handle, status and text limits. A workspace can hold several accounts on one network.

Answers: 200, 401, 429.

Connect a test channel

POST /v1/channels/fake

Local end-to-end runs only.

Body of POST /v1/channels/fake
FieldTypeRequiredWhat it is
handlestringYes

Answers: 200, 400, 401, 402, 404, 429.

Connect Bluesky

POST /v1/channels/bluesky

Signs in with a handle and an app password, never the main password. With channelId, reconnects that channel on its own server and refuses a different account. A workspace without a plan (no subscription, a payment failed more than 7 days ago, or cancelled), or one at its plan's account limit, or a post to more accounts than its plan allows (Starter 6, Pro 30, Agency 100), is refused with 402 PlanRequired and nothing changes. In the free trial, connecting more different accounts than the plan's limit over the whole trial (disconnecting one frees no place; reconnecting the same account is fine) is refused the same way with reason trial_limit, and a schedule that would put more than 20 copies on one UTC day before the trial ends is refused with 422. See GET /v1/billing.

Body of POST /v1/channels/bluesky
FieldTypeRequiredWhat it is
identifierstringYes
appPasswordstringYes
servicestring or nullNo
channelIdstring or nullNo

Answers: 200, 400, 401, 402, 404, 429.

Start connecting a Telegram channel or group

POST /v1/channels/telegram/connect

Answers a one-time code (valid 30 minutes) and PostJr's bot. Add the bot to the channel or group as an administrator who can post messages, then send /connect <code> there. PostJr learns the chat from Telegram's webhook and adds it as a channel, and open tabs refetch; poll GET /v1/channels to see it. One code connects one chat. With channelId, the code reconnects that channel and refuses a different chat. A workspace without a plan (no subscription, a payment failed more than 7 days ago, or cancelled), or one at its plan's account limit, or a post to more accounts than its plan allows (Starter 6, Pro 30, Agency 100), is refused with 402 PlanRequired and nothing changes. In the free trial, connecting more different accounts than the plan's limit over the whole trial (disconnecting one frees no place; reconnecting the same account is fine) is refused the same way with reason trial_limit, and a schedule that would put more than 20 copies on one UTC day before the trial ends is refused with 422. See GET /v1/billing.

Body of POST /v1/channels/telegram/connect
FieldTypeRequiredWhat it is
channelIdstring or nullNo

Answers: 200, 400, 401, 402, 404, 429.

Start connecting Mastodon

POST /v1/channels/mastodon/connect

Registers PostJr with the server if needed and answers the consent page to send the browser to. The server signs in whoever the browser is signed in as there. A workspace without a plan (no subscription, a payment failed more than 7 days ago, or cancelled), or one at its plan's account limit, or a post to more accounts than its plan allows (Starter 6, Pro 30, Agency 100), is refused with 402 PlanRequired and nothing changes. In the free trial, connecting more different accounts than the plan's limit over the whole trial (disconnecting one frees no place; reconnecting the same account is fine) is refused the same way with reason trial_limit, and a schedule that would put more than 20 copies on one UTC day before the trial ends is refused with 422. See GET /v1/billing.

Body of POST /v1/channels/mastodon/connect
FieldTypeRequiredWhat it is
instancestringYes

Answers: 200, 400, 401, 402, 429.

Mastodon callback

GET /v1/channels/mastodon/callback

Redirects to /accounts with connected (a new channel), reconnected (the same channel again), choose (a Slack workspace is signed in and its channels are waiting to be chosen, with network=slack) or error.

Parameters of GET /v1/channels/mastodon/callback
ParameterInRequiredType
codequeryNostring
statequeryYesstring
errorqueryNostring

Answers: 200, 401, 429.

Start connecting Threads, Instagram, TikTok, X, LinkedIn, YouTube, Discord, Pinterest or Slack

POST /v1/channels/oauth/{network}/connect

Answers the network's consent page to send the browser to. Each network signs in whoever the browser is signed in as there. Threads and Instagram are refused with a "coming soon" message until the instance's Meta apps are live (/health metaLive). A network the instance lists in NETWORKS_IN_REVIEW is refused the same way for every workspace but the ones in REVIEW_WORKSPACES (/me inReview names them); reconnecting is refused too, and channels already connected keep working. A workspace without a plan (no subscription, a payment failed more than 7 days ago, or cancelled), or one at its plan's account limit, or a post to more accounts than its plan allows (Starter 6, Pro 30, Agency 100), is refused with 402 PlanRequired and nothing changes. In the free trial, connecting more different accounts than the plan's limit over the whole trial (disconnecting one frees no place; reconnecting the same account is fine) is refused the same way with reason trial_limit, and a schedule that would put more than 20 copies on one UTC day before the trial ends is refused with 422. See GET /v1/billing.

Parameters of POST /v1/channels/oauth/{network}/connect
ParameterInRequiredType
networkpathYesthreads | instagram | tiktok | x | linkedin | youtube | discord | pinterest | slack

Answers: 200, 400, 401, 402, 429.

Network callback

GET /v1/channels/oauth/{network}/callback

Redirects to /accounts with connected (a new channel), reconnected (the same channel again), choose (a Slack workspace is signed in and its channels are waiting to be chosen, with network=slack) or error. Discord redirects with discordPick instead of connected: the server is added and the channels are still to be chosen (GET /v1/channels/discord/:pick).

Parameters of GET /v1/channels/oauth/{network}/callback
ParameterInRequiredType
networkpathYesthreads | instagram | tiktok | x | linkedin | youtube | discord | pinterest | slack
codequeryNostring
statequeryYesstring
errorqueryNostring
error_descriptionqueryNostring
guild_idqueryNostring
permissionsqueryNostring

Answers: 200, 401, 429.

List a Discord server's channels

GET /v1/channels/discord/{pick}

After the PostJr bot was added to a server, answers the server's name and the text and announcement channels the bot can post in, each with added (already a PostJr account). pick is the discordPick value of the callback; it works for 10 minutes.

Parameters of GET /v1/channels/discord/{pick}
ParameterInRequiredType
pickpathYesstring

Answers: 200, 400, 401, 404, 429.

Connect Discord channels

POST /v1/channels/discord/{pick}

Makes one account of each chosen channel of the server (handle #channel, name the server's). A channel that is already an account is kept. A workspace without a plan (no subscription, a payment failed more than 7 days ago, or cancelled), or one at its plan's account limit, or a post to more accounts than its plan allows (Starter 6, Pro 30, Agency 100), is refused with 402 PlanRequired and nothing changes. In the free trial, connecting more different accounts than the plan's limit over the whole trial (disconnecting one frees no place; reconnecting the same account is fine) is refused the same way with reason trial_limit, and a schedule that would put more than 20 copies on one UTC day before the trial ends is refused with 422. See GET /v1/billing.

Parameters of POST /v1/channels/discord/{pick}
ParameterInRequiredType
pickpathYesstring
Body of POST /v1/channels/discord/{pick}
FieldTypeRequiredWhat it is
channelIdslist of stringYes

Answers: 200, 400, 401, 402, 404, 429.

List the channels to choose from

GET /v1/channels/oauth/{network}/choose/{state}

After Slack's consent page, its callback redirects to /accounts with choose and network=slack. This lists that workspace's channels (public ones, and private ones the PostJr app was invited to), valid for 10 minutes; connected marks channels that are already accounts.

Parameters of GET /v1/channels/oauth/{network}/choose/{state}
ParameterInRequiredType
networkpathYesthreads | instagram | tiktok | x | linkedin | youtube | discord | pinterest | slack
statepathYesstring

Answers: 200, 401, 404, 429.

Connect the chosen channels

POST /v1/channels/oauth/{network}/choose/{state}

Makes one account of each chosen channel (a Slack channel is an account: its id is the account's id, its handle "#name"). A workspace without a plan (no subscription, a payment failed more than 7 days ago, or cancelled), or one at its plan's account limit, or a post to more accounts than its plan allows (Starter 6, Pro 30, Agency 100), is refused with 402 PlanRequired and nothing changes. In the free trial, connecting more different accounts than the plan's limit over the whole trial (disconnecting one frees no place; reconnecting the same account is fine) is refused the same way with reason trial_limit, and a schedule that would put more than 20 copies on one UTC day before the trial ends is refused with 422. See GET /v1/billing.

Parameters of POST /v1/channels/oauth/{network}/choose/{state}
ParameterInRequiredType
networkpathYesthreads | instagram | tiktok | x | linkedin | youtube | discord | pinterest | slack
statepathYesstring
Body of POST /v1/channels/oauth/{network}/choose/{state}
FieldTypeRequiredWhat it is
channelIdslist of stringYes

Answers: 200, 400, 401, 402, 404, 429.

Reconnect a channel

POST /v1/channels/{id}/reconnect

Answers the consent page to sign the channel's account in again, for Mastodon and the OAuth networks. The callback refuses a different account instead of adding it. Bluesky reconnects through POST /v1/channels/bluesky with channelId.

Parameters of POST /v1/channels/{id}/reconnect
ParameterInRequiredType
idpathYesstring

Answers: 200, 400, 401, 402, 404, 429.

Check a channel

POST /v1/channels/{id}/check

Asks the network whether the channel's sign-in still works, refreshing it first when it is about to expire, and records the result in its status.

Parameters of POST /v1/channels/{id}/check
ParameterInRequiredType
idpathYesstring

Answers: 200, 401, 404, 429.

Read a TikTok channel's posting options

GET /v1/channels/{id}/tiktok

Read from TikTok now: the account's nickname, the privacy levels it offers, interactions it turned off, its longest video in seconds, and canInbox (whether PostJr holds the video.upload permission that sending a draft to its TikTok inbox needs; false for a channel connected before PostJr asked for it, which must reconnect). Show them to the person and let them choose before scheduling a TikTok post, as TikTok requires.

Parameters of GET /v1/channels/{id}/tiktok
ParameterInRequiredType
idpathYesstring

Answers: 200, 400, 401, 404, 429.

Read a Pinterest account's boards

GET /v1/channels/{id}/pinterest/boards

Read from Pinterest now (PostJr does not keep them): the boards the account can pin to, with their privacy (PUBLIC, PROTECTED or SECRET), and, when boardId is given, that board's sections. Choose one board per Pinterest copy before scheduling; there is no default.

Parameters of GET /v1/channels/{id}/pinterest/boards
ParameterInRequiredType
idpathYesstring
boardIdqueryNostring

Answers: 200, 400, 401, 404, 429.

Disconnect a channel

DELETE /v1/channels/{id}

Deletes its credentials and cancels its scheduled publications.

Parameters of DELETE /v1/channels/{id}
ParameterInRequiredType
idpathYesstring

Answers: 200, 401, 404, 429.

Groups

List groups

GET /v1/groups

The workspace's channel groups in position order, each with its channel ids. A group marked publishTarget is offered as one choice when composing.

Answers: 200, 401, 429.

Create a group

POST /v1/groups

A named set of this workspace's channels. channelIds must be connected channels of the workspace (otherwise 422, with the ids under problems); position defaults to after the last group.

Body of POST /v1/groups
FieldTypeRequiredWhat it is
namestringYes
publishTargetboolean or nullNo
channelIdslist of string or nullNo
positionnumber or nullNo
startingTextstring or nullNo
startingVariantslist of object or nullNo

Answers: 200, 401, 422, 429.

Edit a group

PATCH /v1/groups/{id}

Changes what is sent: name, publishTarget, position, or channelIds (which replaces the members in that order). With expectedRevision, a group edited since answers 409.

Parameters of PATCH /v1/groups/{id}
ParameterInRequiredType
idpathYesstring
Body of PATCH /v1/groups/{id}
FieldTypeRequiredWhat it is
namestring or nullNo
publishTargetboolean or nullNo
channelIdslist of string or nullNo
positionnumber or nullNo
startingTextstring or nullNo
startingVariantslist of object or nullNo
expectedRevisioninteger or nullNo

Answers: 200, 401, 404, 409, 422, 429.

Delete a group

DELETE /v1/groups/{id}

Removes the group and its memberships. The channels stay connected.

Parameters of DELETE /v1/groups/{id}
ParameterInRequiredType
idpathYesstring

Answers: 200, 401, 404, 429.

Feeds

List feeds

GET /v1/feeds

The workspace's RSS and Atom feeds, newest first, each with its last error, back-off and the newest items it read. Set view=brief for ids, names, status and errors only.

Parameters of GET /v1/feeds
ParameterInRequiredType
viewqueryNobrief

Answers: 200, 401, 429.

Follow a feed

POST /v1/feeds

Reads the feed once and follows it: up to 20 per workspace; each new item becomes a draft, never a published post. The URL must be https on a public host and answer RSS 2.0, RSS 1.0 or Atom, else 422. Drafts go to channelIds or to the members of groupId (not both), with text from template (default "{title} {link}"; {title}, {link}, {summary}, {author} and {feed} are filled in) and a note naming the feed and holding the item link. firstFetch "latest" (default) drafts the newest item now and none of the older ones; "none" drafts nothing until a new item appears. Feeds are checked about every 30 minutes (never sooner), a failing one backs off up to a day. Following a URL already followed returns that feed, so a retry is safe. view: "brief" answers ids, name, status and errors only.

Body of POST /v1/feeds
FieldTypeRequiredWhat it is
urlstringYes
namestring or nullNo
templatestring or nullNo
channelIdslist of string or nullNo
groupIdstring or nullNo
firstFetchlatest | none or nullNo
viewbrief or nullNo

Answers: 200, 401, 422, 429.

Preview a feed

POST /v1/feeds/preview

Fetches a feed URL with the same checks as following it and answers its title and newest items. Saves nothing and creates no draft.

Body of POST /v1/feeds/preview
FieldTypeRequiredWhat it is
urlstringYes

Answers: 200, 401, 422, 429.

Edit a feed

PATCH /v1/feeds/{id}

Changes name, template, the accounts or the group the drafts go to (setting one clears the other), or status: paused feeds are not checked, and resuming one checks it at the next run. Drafts already made keep their text. With expectedRevision, a feed edited since answers 409.

Parameters of PATCH /v1/feeds/{id}
ParameterInRequiredType
idpathYesstring
Body of PATCH /v1/feeds/{id}
FieldTypeRequiredWhat it is
namestring or nullNo
templatestring or nullNo
channelIdslist of string or nullNo
groupIdstring or nullNo
statusactive | paused or nullNo
expectedRevisioninteger or nullNo

Answers: 200, 401, 404, 409, 422, 429.

Stop following a feed

DELETE /v1/feeds/{id}

Removes the feed and its record of items seen. Drafts it made stay.

Parameters of DELETE /v1/feeds/{id}
ParameterInRequiredType
idpathYesstring

Answers: 200, 401, 404, 429.

Check a feed now

POST /v1/feeds/{id}/check

Reads the feed now instead of waiting, and drafts its new items. One check a minute per feed: sooner answers 409. A feed that fails keeps its error in lastError; this call still answers it.

Parameters of POST /v1/feeds/{id}/check
ParameterInRequiredType
idpathYesstring

Answers: 200, 401, 404, 409, 429.

Webhooks

List webhook endpoints

GET /v1/webhooks

The workspace's endpoints, newest first (up to 5), with their status and last delivery result, never their secrets.

Answers: 200, 401, 429.

Add a webhook endpoint

POST /v1/webhooks

Registers an HTTPS URL that receives publication.published, publication.failed, publication.unconfirmed, post.scheduled, post.deleted as POSTs signed with the endpoint's own secret: up to 5 per workspace. The URL must be on a public host, without credentials or a port (else 422); redirects are never followed. Answers the signing secret once, in secret. A URL already registered answers 409. Deliveries follow the plan: a workspace that may not schedule (402 PlanRequired) gets no new events, and cannot add an endpoint or send a test. Events already queued are still delivered.

Body of POST /v1/webhooks
FieldTypeRequiredWhat it is
urlstringYes

Answers: 200, 401, 402, 409, 422, 429.

Send a test event

POST /v1/webhooks/{id}/test

Sends one signed webhook.test event now, without retries, and answers what the endpoint replied. It does not count toward disabling the endpoint; a test the endpoint accepts enables a disabled endpoint again.

Parameters of POST /v1/webhooks/{id}/test
ParameterInRequiredType
idpathYesstring

Answers: 200, 401, 402, 404, 429.

Delete a webhook endpoint

DELETE /v1/webhooks/{id}

Removes the endpoint and its pending deliveries at once.

Parameters of DELETE /v1/webhooks/{id}
ParameterInRequiredType
idpathYesstring

Answers: 200, 401, 404, 429.

Media

Upload media from a URL

POST /v1/media/from-url

Fetches an HTTPS image or video from a public destination, validates and stores it just like a raw upload, with at most three redirects and a 20-second overall deadline.

Body of POST /v1/media/from-url
FieldTypeRequiredWhat it is
urlstringYes
altstring or nullNo

Answers: 200, 401, 413, 422, 429.

Upload an image or video

POST /v1/media

The raw file is the body, typed by Content-Type. Images: JPEG, PNG, WebP or GIF up to 20 MB. Video: MP4 or QuickTime up to 95 MB, with Content-Length and the headers x-media-width, x-media-height and x-media-duration-ms. PostJr does not process media: send files already sized for the networks you post to (the web composer does this).

Parameters of POST /v1/media
ParameterInRequiredType
x-media-widthheaderNostring
x-media-heightheaderNostring
x-media-duration-msheaderNostring

Answers: 200, 401, 413, 422, 429.

Get media

GET /v1/media/{id}

An uploaded file's kind, type, size, dimensions and description.

Parameters of GET /v1/media/{id}
ParameterInRequiredType
idpathYesstring

Answers: 200, 401, 404, 429.

Download media

GET /v1/media/{id}/file

The stored file, with byte ranges.

Parameters of GET /v1/media/{id}/file
ParameterInRequiredType
idpathYesstring

Answers: 200, 401, 404, 429.

Suggest alt text

POST /v1/media/{id}/describe

From the image's own caption, else from Workers AI. Scheduling fills missing alt text the same way; a draft save does not call the model. In the free trial, up to 20 descriptions a day are written this way (422 after that; alt text you type yourself is never limited).

Parameters of POST /v1/media/{id}/describe
ParameterInRequiredType
idpathYesstring

Answers: 200, 401, 404, 422, 429.

Posts

List posts

GET /v1/posts

Most recently edited first (ties by id), 50 by default and at most 200 (limit), with their variants and publications. Set view=brief to return only post and publication ids, states, due times, URLs and errors. When more rows follow, the response carries an x-next-cursor header; send its value as cursor to get the rows after the last one returned. A cursor holds its place when rows change in between, an offset does not. A cursor this list did not give out is refused with 400. q keeps posts whose text contains it, ignoring case for A to Z only: other letters must match exactly (up to 100 characters).

Parameters of GET /v1/posts
ParameterInRequiredType
limitqueryNostring
offsetqueryNostring
cursorqueryNostring
qqueryNostring
viewqueryNobrief

Answers: 200, 400, 401, 429.

Create a post

POST /v1/posts

Optional schedule saves and schedules atomically: channelIds and dueAt (UTC milliseconds) or at (ISO 8601 with an offset or Z), at most one; neither publishes now. repeat (frequency daily, weekly with weekdays, or monthly with monthDay; time HH:MM; an IANA timeZone; optional until date or count) makes it a series: the time is then the start, and the first departure is the first match of the rule at or after it. A workspace without a plan (no subscription, a payment failed more than 7 days ago, or cancelled), or one at its plan's account limit, or a post to more accounts than its plan allows (Starter 6, Pro 30, Agency 100), is refused with 402 PlanRequired and nothing changes. In the free trial, connecting more different accounts than the plan's limit over the whole trial (disconnecting one frees no place; reconnecting the same account is fine) is refused the same way with reason trial_limit, and a schedule that would put more than 20 copies on one UTC day before the trial ends is refused with 422. See GET /v1/billing. Supply an optional ULID id for safe retries of identical content and schedule. body is the shared text; variants overrides it per channel id; media lists uploaded media ids with optional alt text: up to 4 images or one video on its own (X, Bluesky); each network sets its own cap: Instagram takes a carousel of up to 20 images and videos mixed (one video alone is a Reel), Threads and LinkedIn 20 images, TikTok 35 photos. A TikTok channel takes one video or images (a photo carousel), and its variant needs tiktok settings: mode direct with a privacy the person chose from the channel's TikTok options (GET /v1/channels/:id/tiktok; there is no default), or mode inbox to send a draft to the creator's TikTok inbox (needs canInbox; the copy ends published with inbox: true and is not posted until the creator finishes it in TikTok); scheduling a direct post records their agreement to TikTok's Music Usage Confirmation. A YouTube channel takes one vertical or square video of up to 3 minutes and nothing else (a Short): the title is the variant's youtube.title (up to 100 UTF-16 characters, no < or >; refused, never cut) or, when it sets none, the text's first line cut to 100, and the whole text is the description. Its variant needs youtube settings: privacy (public, unlisted or private) and madeForKids, both chosen by the person, with no default. Posting to YouTube confirms that the person has the rights to the video and that it follows YouTube's Terms of Service and Community Guidelines. A Telegram channel takes text of up to 4,096 characters, or an album of up to 10 images, or one video of up to 50 MB, with the text as its caption (up to 1,024 characters); it has no settings of its own. A Pinterest account makes one Pin: an image, 2 to 5 images as a carousel, or one video (4 seconds to 15 minutes); a text-only copy is refused. The title is the first line (cut to 100 characters), the description (up to 800) the lines after it when the first line fits the title and otherwise the whole text, the Pin's link the first http(s) address in the text, and the alt text the image's. Its variant needs pinterest.boardId, chosen from GET /v1/channels/:id/pinterest/boards with no default, and may add boardSectionId. Each X post spends the instance's X API credits (about 1.5 cents, 20 with a link). A draft save keeps each media item's alt as sent (an image's own caption fills a blank one) and calls no model, so it never fails for missing alt text. A save that schedules, and a save of a post that has scheduled copies, needs alt text on every image and video: a blank one is taken from the asset's stored description, else written by Workers AI for an image, and the call answers 422 when none can be had (describe a video first with POST /v1/media/:id/describe and a frame). canvas lists media kept with the draft but not posted, with where each sits on the compose canvas (up to 24); omitted means none. notes holds up to 24 text notes; attachedNotes names which notes join each copy's text, in order. thread lists up to 24 follow-up parts, each with its own body and media, and an optional delayMinutes (up to 10080, 7 days): X, Bluesky, Mastodon, Threads and Discord send them as replies, in order; Instagram sends them as comments on the post (text only; its login configuration needs instagram_manage_comments); each is checked against that network's limits; TikTok, LinkedIn, YouTube and Pinterest send part 1 only. A part goes right away, delayMinutes after the part before it (the first part goes at the post's time), or, with minLikes and/or minReplies, once the first post has that many likes (readable on Bluesky, Mastodon, Threads, Instagram and X) or comments from other people (readable on Bluesky, Mastodon, Threads, Instagram and X; your own earlier parts are not counted); a network that cannot be read, such as LinkedIn, sends its part right away. PostJr looks after 2 minutes, 5, 15, 30, 1 hour, then hourly up to 6 hours, then every 6 hours, and gives up after 7 days: the copy is then published with partsNote ("Did not reach 50 likes in 7 days"), never failed. variants[].later (delayMinutes, minLikes, minReplies) sets one timing for every later part on that channel in place of the parts' own. A thread waiting for a part keeps state scheduled with betweenParts: true and dueAt at its next time (partPlan lists each part's timing, gateChecks the looks so far), and is published only when every part is out or the wait ended; a failed part retries itself and the parts after it, never the ones sent, except an Instagram comment Instagram refuses, which ends the thread with partsNote while the post stays published. channelIds lists the channels the draft is addressed to, in the order chosen, so another device opens it with the same accounts; they must be this workspace's channels (otherwise 422, with the ids under problems), and one that needs reconnecting may be kept but not scheduled. Omitted means none; a schedule names its own channels. Upload with POST /v1/media; PostJr does not resize, crop or trim, so send files that already fit the networks. view: "brief" returns only ids, states, due times, URLs, errors and problems; full is the default.

Body of POST /v1/posts
FieldTypeRequiredWhat it is
bodystringYes
medialist of object or nullNo
canvaslist of object or nullNo
noteslist of object or nullNo
attachedNoteslist of string or nullNo
threadlist of object or nullNo
channelIdslist of string or nullNo
plannedAtnumber or nullNo
variantslist of object or nullNo
shortenLinksboolean or nullNo
scheduleobject or nullNo
idstring or nullNo
needsApprovalboolean or nullNo
viewbrief or nullNo

Answers: 200, 401, 402, 409, 422, 429.

Check a post

POST /v1/posts/check

Validates a post without saving it, part by part for a thread. An optional schedule also checks its time and channels.

Body of POST /v1/posts/check
FieldTypeRequiredWhat it is
bodystringYes
medialist of object or nullNo
canvaslist of object or nullNo
noteslist of object or nullNo
attachedNoteslist of string or nullNo
threadlist of object or nullNo
channelIdslist of string or nullNo
plannedAtnumber or nullNo
variantslist of object or nullNo
shortenLinksboolean or nullNo
scheduleobject or nullNo

Answers: 200, 401, 422, 429.

Create several posts

POST /v1/posts/bulk

Creates up to 20 posts, each exactly like POST /v1/posts and each on its own: one bad item fails alone with its problems, and the result lists every item by index with its post or its error. Give each item an id (ULID) so a retry of the whole call never duplicates a post. Send more requests for more posts (the cap keeps each request inside the Free plan's CPU). view: "brief" returns only ids, states, due times, URLs, errors and problems; full is the default.

Body of POST /v1/posts/bulk
FieldTypeRequiredWhat it is
postslist of objectYes
viewbrief or nullNo

Answers: 200, 401, 422, 429.

Delete posts

POST /v1/posts/delete

Deletes up to 100 PostJr posts and their scheduled publications. Without fromNetworks, a post still live on a network is refused and the networks are never touched; with it, a post that was published is kept ("kept"): its scheduled copies are cancelled and its live copies are deleted from the networks, and its copies read deleted. Remove it from PostJr afterwards with DELETE /v1/posts/:id. A post that was never published is removed ("removed"). A post still publishing is always refused. A copy on a network that cannot delete posts (Instagram, TikTok) never blocks it: with fromNetworks the copy is marked deleted in PostJr only and listed in the result's manual with its url, for the owner to delete by hand (TikTok gives only the profile's URL); deletedFrom lists the networks deleted through their APIs. Without fromNetworks, such a copy keeps the post until it is marked deleted. A copy marked published by its link alone has no network id, so it stays on its network and does not hold the post. With thenRemove (and fromNetworks) the post is also removed from PostJr as soon as no copy of it is still on a network: at once if none is, else when the last network deletion succeeds or the last copy on Instagram or TikTok is marked deleted (those copies are then not marked for you). A failed network deletion leaves the post in place.

Body of POST /v1/posts/delete
FieldTypeRequiredWhat it is
postIdslist of stringYes
fromNetworksboolean or nullNo
thenRemoveboolean or nullNo

Answers: 200, 401, 422, 429.

Get a post

GET /v1/posts/{id}

With its variants and publications.

Parameters of GET /v1/posts/{id}
ParameterInRequiredType
idpathYesstring
viewqueryNobrief

Answers: 200, 401, 404, 429.

Edit a post

PATCH /v1/posts/{id}

Replaces its body, media, thread, canvas, notes, attachedNotes, variants and channelIds. Notes named by attachedNotes join each account's own text in tile order. A draft save keeps each media item's alt as sent (an image's own caption fills a blank one) and calls no model, so it never fails for missing alt text. A save that schedules, and a save of a post that has scheduled copies, needs alt text on every image and video: a blank one is taken from the asset's stored description, else written by Workers AI for an image, and the call answers 422 when none can be had (describe a video first with POST /v1/media/:id/describe and a frame). canvas lists media kept with the draft but not posted, with where each sits on the compose canvas (up to 24); omitted means none. channelIds lists the channels the draft is addressed to, in the order chosen, so another device opens it with the same accounts; they must be this workspace's channels (otherwise 422, with the ids under problems), and one that needs reconnecting may be kept but not scheduled. Omitted means none; a schedule names its own channels. With schedule (channelIds and dueAt (UTC milliseconds) or at (ISO 8601 with an offset or Z), at most one; neither publishes now. repeat (frequency daily, weekly with weekdays, or monthly with monthDay; time HH:MM; an IANA timeZone; optional until date or count) makes it a series: the time is then the start, and the first departure is the first match of the rule at or after it.) it saves and schedules atomically and needs expectedRevision; a stale revision answers 409, and so does a schedule, cancel or other save that lands while this one validates: reload the post and save again.

Parameters of PATCH /v1/posts/{id}
ParameterInRequiredType
idpathYesstring
Body of PATCH /v1/posts/{id}
FieldTypeRequiredWhat it is
bodystringYes
medialist of object or nullNo
canvaslist of object or nullNo
noteslist of object or nullNo
attachedNoteslist of string or nullNo
threadlist of object or nullNo
channelIdslist of string or nullNo
plannedAtnumber or nullNo
variantslist of object or nullNo
shortenLinksboolean or nullNo
scheduleobject or nullNo
expectedRevisioninteger or nullNo

Answers: 200, 401, 402, 404, 409, 422, 429.

Delete a post

DELETE /v1/posts/{id}

Removes a post or draft from PostJr with its scheduled publications and history. A published post whose copies are all deleted can be removed. 409 while any copy is live on a network (delete it there with POST /v1/publications/:id/delete, or by hand and then POST /v1/publications/:id/mark-deleted on TikTok) or still publishing.

Parameters of DELETE /v1/posts/{id}
ParameterInRequiredType
idpathYesstring

Answers: 200, 401, 404, 409, 429.

Schedule a post

POST /v1/posts/{id}/schedule

Schedules the post to channelIds at dueAt (UTC milliseconds) or at (ISO 8601 with an offset or Z), at most one; neither publishes now. repeat (frequency daily, weekly with weekdays, or monthly with monthDay; time HH:MM; an IANA timeZone; optional until date or count) makes it a series: the time is then the start, and the first departure is the first match of the rule at or after it. A workspace without a plan (no subscription, a payment failed more than 7 days ago, or cancelled), or one at its plan's account limit, or a post to more accounts than its plan allows (Starter 6, Pro 30, Agency 100), is refused with 402 PlanRequired and nothing changes. In the free trial, connecting more different accounts than the plan's limit over the whole trial (disconnecting one frees no place; reconnecting the same account is fine) is refused the same way with reason trial_limit, and a schedule that would put more than 20 copies on one UTC day before the trial ends is refused with 422. See GET /v1/billing. Missing alt text is filled from the asset's stored description or Workers AI first, and refused (422) when none can be had. A save, schedule or cancel that lands while it validates answers 409: reload the post and schedule again. The post's revision does not change when it is scheduled. view: "brief" returns only ids, states, due times, URLs and errors; full is the default.

Parameters of POST /v1/posts/{id}/schedule
ParameterInRequiredType
idpathYesstring
Body of POST /v1/posts/{id}/schedule
FieldTypeRequiredWhat it is
channelIdslist of stringYes
dueAtnumber or nullNo
atstring or nullNo
repeatobject or nullNo
endSeriesstring or nullNo
viewbrief or nullNo

Answers: 200, 401, 402, 404, 409, 422, 429.

Move a scheduled post to drafts (cancel its scheduled publications)

POST /v1/posts/{id}/cancel

Cancels every scheduled publication of the post that has not started publishing, so nothing is sent at their time. A post with nothing else sent or scheduled returns to Drafts with its text and media (each publication's returnsToDrafts says so). dueAt (UTC milliseconds) keeps the post's other departures and cancels only those due then; the post then stays scheduled and is not a draft. For a repeating post this skips this occurrence only: the series goes on with the next one (end it with POST /v1/series/:id/cancel).

Parameters of POST /v1/posts/{id}/cancel
ParameterInRequiredType
idpathYesstring
dueAtqueryNostring

Answers: 200, 401, 404, 429.

Client review

POST /v1/posts/{id}/review-links

Makes a link anyone can open without an account: a read-only page of the post's previews and media where they leave comments under a name and Approve or Request changes. url holds the secret token and is answered only now. It expires after expiresInDays (default 14, at most 90) and can be revoked. A post has at most 20 live links (revoked and expired ones do not count). The first link sets the review state to waiting. needsApproval turns the approval gate on or off in the same call. While needsApproval is on and the state is not approved, the post's scheduled copies are held: they stay scheduled and publish the moment it is approved.

Parameters of POST /v1/posts/{id}/review-links
ParameterInRequiredType
idpathYesstring
Body of POST /v1/posts/{id}/review-links
FieldTypeRequiredWhat it is
expiresInDaysinteger or nullNo
needsApprovalboolean or nullNo

Answers: 200, 401, 404, 422, 429.

Get a post's review

GET /v1/posts/{id}/review

The review state, the post's links without their tokens, and every comment and decision with its author and the revision it was left on. view=brief answers the state and the unresolved comments only. A decision counts for the revision it was made on: editing the post puts approved or changes_requested back to waiting.

Parameters of GET /v1/posts/{id}/review
ParameterInRequiredType
idpathYesstring
viewqueryNobrief

Answers: 200, 401, 404, 429.

Require approval before publishing

PATCH /v1/posts/{id}/review

Turns the approval gate on or off. While needsApproval is on and the state is not approved, the post's scheduled copies are held: they stay scheduled and publish the moment it is approved. Turning it off releases held copies. A copy already publishing is not recalled.

Parameters of PATCH /v1/posts/{id}/review
ParameterInRequiredType
idpathYesstring
Body of PATCH /v1/posts/{id}/review
FieldTypeRequiredWhat it is
needsApprovalbooleanYes

Answers: 200, 401, 404, 429.

DELETE /v1/review-links/{id}

The link stops working at once. Its comments and decisions stay.

Parameters of DELETE /v1/review-links/{id}
ParameterInRequiredType
idpathYesstring

Answers: 200, 401, 404, 429.

Resolve a comment

POST /v1/review-comments/{id}/resolve

Marks a reviewer's comment as dealt with; resolved: false reopens it. Resolving does not change the review state.

Parameters of POST /v1/review-comments/{id}/resolve
ParameterInRequiredType
idpathYesstring
Body of POST /v1/review-comments/{id}/resolve
FieldTypeRequiredWhat it is
resolvedboolean or nullNo

Answers: 200, 401, 404, 429.

Client review pages (no sign-in)

Open a review link

GET /v1/review/{token}

No sign-in. The post's per-network text, media and the comments so far. An unknown, expired or revoked link answers 404. Rate limited by caller and by link.

Parameters of GET /v1/review/{token}
ParameterInRequiredType
tokenpathYesstring

Answers: 200, 404, 429.

Comment on a review

POST /v1/review/{token}/comments

No sign-in. author is a display name (up to 80 characters) and body up to 2000. A post holds at most 200 comments (422 after). Send a ULID id to retry safely.

Parameters of POST /v1/review/{token}/comments
ParameterInRequiredType
tokenpathYesstring
Body of POST /v1/review/{token}/comments
FieldTypeRequiredWhat it is
idstring or nullNo
authorstringYes
bodystringYes

Answers: 200, 404, 409, 422, 429.

Approve or request changes

POST /v1/review/{token}/decision

No sign-in. revision must be the revision the page showed (409 if the post changed meanwhile). Approving releases the post's held copies; either decision can be changed by sending the other.

Parameters of POST /v1/review/{token}/decision
ParameterInRequiredType
tokenpathYesstring
Body of POST /v1/review/{token}/decision
FieldTypeRequiredWhat it is
decisionapproved | changes_requestedYes
authorstringYes
revisionintegerYes

Answers: 200, 404, 409, 422, 429.

Publications

List publications

GET /v1/publications

Newest due time first (ties by id), 100 by default and at most 500 (limit). Set view=brief to return only ids, states, due times, URLs and errors. When more rows follow, the response carries an x-next-cursor header; send its value as cursor to get the rows after the last one returned. A cursor holds its place when rows change in between, an offset does not. A cursor this list did not give out is refused with 400. state takes one or more states separated by commas: scheduled, claimed, publishing, processing (waiting on the network), published, failed, unconfirmed (needs review), cancelled. A failed-only query (state=failed) is the attention queue; scheduling a replacement cancels the failed copy, which remains in multi-state history. channelId keeps one channel; from (inclusive) and to (exclusive) bound the due time in UTC milliseconds.

Parameters of GET /v1/publications
ParameterInRequiredType
statequeryNostring
channelIdqueryNostring
fromqueryNostring
toqueryNostring
limitqueryNostring
offsetqueryNostring
cursorqueryNostring
viewqueryNobrief

Answers: 200, 400, 401, 429.

Get a publication

GET /v1/publications/{id}

Its state, live URL once published, last error, and every attempt. Each publication finishes on its own; fetch it again to follow one. Set view=brief to omit attempts and unrequested timestamps.

Parameters of GET /v1/publications/{id}
ParameterInRequiredType
idpathYesstring
viewqueryNobrief

Answers: 200, 401, 404, 429.

Wait for publications

POST /v1/publications/wait

Waits for 1 to 50 workspace publications to finish, returning immediately when all are published, failed, cancelled, or need review (unconfirmed). Defaults to 20 seconds and accepts at most 25 seconds. Uses publication events rather than repeated reads. Set view: "brief" to return only ids, states, URLs and errors.

Body of POST /v1/publications/wait
FieldTypeRequiredWhat it is
idslist of stringYes
timeoutMsinteger or nullNo
viewbrief or nullNo

Answers: 200, 401, 404, 422, 429.

Resolve an unconfirmed publication

POST /v1/publications/{id}/resolve

For a publication PostJr could not confirm: send the live url if it went out, retry to publish it again, or cancel.

Parameters of POST /v1/publications/{id}/resolve
ParameterInRequiredType
idpathYesstring

Answers: 200, 401, 404, 409, 429.

Delete a published copy from its network

POST /v1/publications/{id}/delete

Runs in the background: deletion goes from pending to deleted, or to failed with the reason in errorMessage. A failed deletion can be requested again. 409 on a network whose API cannot delete posts (TikTok): use mark-deleted.

Parameters of POST /v1/publications/{id}/delete
ParameterInRequiredType
idpathYesstring

Answers: 200, 401, 404, 409, 429.

Read a post's numbers now

POST /v1/publications/{id}/metrics/refresh

Reads this published copy from its network now, stores what came back and returns it: views on Threads, TikTok, X and YouTube Shorts; likes on Bluesky, Mastodon, Threads, Instagram, TikTok, X and YouTube Shorts; replies on Bluesky, Mastodon, Threads, Instagram, TikTok, X and YouTube Shorts; reposts on Bluesky, Mastodon, Threads, TikTok and X; quotes on Bluesky, Threads and X; saves on X. A number a network does not report is null. Each copy can be read once every 60 minutes on Starter, 15 on Pro and 5 on Agency, a scheduled read counted; sooner answers 429 with retryAfter seconds. It does not change the schedule of later reads. 422 for a copy that is not published, one on a network PostJr does not read (Discord, Slack, Telegram, LinkedIn, Pinterest, and TikTok unless this instance sets TIKTOK_READS), a TikTok account that has not given PostJr the permissions to read (it must reconnect), a TikTok copy with no public video (a draft in the inbox, or a private post), an X copy while the workspace is in its free trial (X numbers start when the plan starts), or one the network no longer returns. 502 when the network does not answer.

Parameters of POST /v1/publications/{id}/metrics/refresh
ParameterInRequiredType
idpathYesstring

Answers: 200, 401, 404, 422, 429, 502.

Mark a copy deleted

POST /v1/publications/{id}/mark-deleted

Records that you deleted a published copy yourself, on a network whose API cannot delete posts (TikTok). Its PostJr post can then be deleted. 409 for any other copy.

Parameters of POST /v1/publications/{id}/mark-deleted
ParameterInRequiredType
idpathYesstring

Answers: 200, 401, 404, 409, 429.

Delete from the networks

POST /v1/publications/delete

Keeps the PostJr posts: deletes publications by id, and every live copy of the posts named (up to 100 in all). Runs in the background; follow each with GET /v1/publications/:id until deletion is deleted or failed. TikTok copies are skipped: TikTok cannot delete through its API.

Body of POST /v1/publications/delete
FieldTypeRequiredWhat it is
publicationIdslist of string or nullNo
postIdslist of string or nullNo

Answers: 200, 401, 422, 429.

Analytics

Get analytics

GET /v1/analytics

Reads only stored numbers, never a network. from (inclusive) and to (exclusive) are UTC milliseconds and default to the last 30 days; channelIds is a comma-separated list and defaults to every connected account. accounts sums the latest numbers of each account's posts published in the range (posts counts them, read those read at least once; a sum is null when no post reported that number). topByLikes and topByViews list up to 10 posts each. followers has one point per UTC day for each account, from its daily check. Posts are read on a fixed schedule after they go out (1 hour, 6 hours, 1, 3, 7 and 30 days; X at 1, 7 and 30 days; Instagram at 2, 7 and 30 days), so readAt tells how old a number is. Which numbers exist: views on Threads, TikTok, X and YouTube Shorts; likes on Bluesky, Mastodon, Threads, Instagram, TikTok, X and YouTube Shorts; replies on Bluesky, Mastodon, Threads, Instagram, TikTok, X and YouTube Shorts; reposts on Bluesky, Mastodon, Threads, TikTok and X; quotes on Bluesky, Threads and X; saves on X.

Parameters of GET /v1/analytics
ParameterInRequiredType
fromqueryNostring
toqueryNostring
channelIdsqueryNostring

Answers: 200, 401, 422, 429.

Repeating posts

List repeating posts

GET /v1/series

Active series first, then the others, newest first (at most 200). A series repeats a post by a rule in an IANA time zone: its next occurrence is always scheduled as an ordinary post (postId), and the one after it is created when that one departs. Create one by sending repeat with a schedule. Edit the next departure through postId; published occurrences keep their content.

Answers: 200, 401, 429.

Cancel a whole series

POST /v1/series/{id}/cancel

Ends the series and cancels its scheduled occurrence. Published occurrences stay. Safe to repeat. To skip only the next departure, use POST /v1/posts/:id/cancel: the series continues with the following one.

Parameters of POST /v1/series/{id}/cancel
ParameterInRequiredType
idpathYesstring

Answers: 200, 401, 404, 429.