Pages in API reference

Posts

Publish a post now

POST/api/posts/:postId/publish

Publish a draft or scheduled post to all its accounts now.

  • Check platformPosts for each account's result; an account with a video may stay processing (the platform is still processing it) for a few minutes before it is published; follow it with posts_get.
  • To publish later, set scheduledFor with posts_update instead; to publish again to accounts that failed, use posts_retry. 404 POST_NOT_FOUND for an id that is not yours; 409 INVALID_STATUS_TRANSITION for a post that is posting, published, discarded or deleted.
  • In approval mode, a member whose posts need approval gets 403 APPROVAL_REQUIRED and a drafts-only key (posts:propose) 403 INSUFFICIENT_SCOPE (use posts_submit), and publishing a post that waits for approval approves it (403 APPROVER_ROLE_REQUIRED for anyone but an approver).
Key scope
posts:write
MCP tool
posts_publish
Retries
Safe with an Idempotency-Key

Headers

  • Authorizationstringrequired

    Bearer <API key>. Create a key in the dashboard under API keys.

  • Idempotency-Keystring

    A unique value per logical request, so a retry never creates a second post. See Idempotency.

Path parameters

  • postIdstringrequired

    Post id (UUID): id from posts_list or posts_create

Errors return { error: { code, message } }; every code is in Error codes.