Publish a post now
POST
/api/posts/:postId/publishPublish a draft or scheduled post to all its accounts now.
- Check
platformPostsfor each account's result; an account with a video may stayprocessing(the platform is still processing it) for a few minutes before it ispublished; follow it with posts_get. - To publish later, set
scheduledForwith 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
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.
Path parameters
postIdstringrequiredPost id (UUID):
idfrom posts_list or posts_create
Errors return { error: { code, message } }; every code is in Error codes.