Create, schedule or publish a post
/api/postsCreate a post for one or more platforms.
targetslists platform sets, each with its platforms; omitplatformSetIdfor your default set.- List several sets to reach several accounts of the same platform in one post (each set holds one account per platform);
platformPoststhen has one entry per account. - Without
scheduledForit is a draft; setpublishNowto publish it right away, orscheduledForto publish later. mediaitems are public URLs with a requiredtype(REST also accepts multipart file uploads up to 4 MB per request; for larger files or files on the user's device use media_upload_create).- Use
options.<platform>for per-platform text and settings. firstCommentis posted as a comment (a reply on X, Threads and Bluesky) on each new post right after it publishes; a failed comment leaves the post published withplatformPosts[].firstComment.statusfailed.threadadds follow-up posts on X, Bluesky and Threads, each a reply to the one before (results inplatformPosts[].thread).- Call platforms_list (GET /api/platforms) for each platform's limits, placements and options.
- In approval mode, a drafts-only key or an Editor gets a draft that waits for an approver instead (see posts_submit).
- Key scope
- posts:write
- MCP tool
- posts_create
- Retries
- Safe with an Idempotency-Key
Headers
AuthorizationstringrequiredBearer <API key>. Create a key in the dashboard under API keys.Idempotency-KeystringA unique value per logical request, so a retry never creates a second post. See Idempotency.
Body
targetsobject[]requiredWhere the post goes: one entry per platform set (max 10). A set holds one account per platform, so to reach several accounts of one platform (two LinkedIn accounts, several clients' Instagram) list their sets. The post gets one platformPosts entry per account.
textstringPost text. Use
options.<platform>.textto vary it per platform.firstCommentstring | nullComment Ampost posts on each new post right after it publishes (X, Threads and Bluesky: a reply). Every target platform must support it (
firstComment.supportedin GET /api/platforms); useoptions.<platform>.firstCommentto set or turn it off ("") per platform. A failed comment does not fail the post.linkUrlstring | nullLink to attach. Ignored by platforms whose
link.supportedis false.mediaobject[]Images and videos, in order (at most 35; each platform's
media.maxItemsapplies):{ url, type }plus optional metadata andaltText.urlis a public https URL, such as a completed media upload'surl. The types and required fields per platform are in GET /api/platforms (media).mediaFitpad | crop | noneHow media outside a platform's aspect ratio is fitted (
media.conversionin GET /api/platforms), e.g. Instagram feed 4:5 to 1.91:1, Reels, Stories and TikTok 9:16, and on Pinterest a carousel's later images to the first one's ratio. pad: bars around the whole frame (white on images, black on video); crop: the centre fills the frame; none: the ratio stays as uploaded (a platform that requires one may refuse it). Default: pad.threadobject[]Follow-up posts published right after the post, in order, each replying to the one before (X, Bluesky, Threads). Item:
{ text, media: [{ url, type, altText }] }, checked like a post. Every target platform must take it (threadin GET /api/platforms);options.<platform>.threadoverrides it,[]for none. Not withfirstCommenton one platform. A failed item fails the account; posts_retry continues from it.optionsobjectPer-platform options keyed by platform. Every platform accepts
text, the platforms that take a first comment acceptfirstCommentand the ones that take a thread (X, Bluesky, Threads) acceptthread; see GET /api/platforms for the rest.scheduledForISO 8601 | nullPublish time in the future. Null or omitted: the post is a draft (or published now with
publishNow).publishNowbooleanPublish right after creating. Cannot be combined with
scheduledFor.useQueuebooleanSchedule the post in the next free slot of its platform set's queue (see queue_get) instead of at
scheduledFor. Needs exactly one target and a queue with slots. Cannot be combined withscheduledFororpublishNow.metadataobjectYour own JSON object (max 4096 bytes), such as your ids. Returned on the post and in every webhook post event. Set on create only.
Errors return { error: { code, message } }; every code is in Error codes.