Pages in API reference

Posts

Submit a draft for approval

POST/api/posts/:postId/submit

Submit a draft for approval, with proposedFor, the time it should publish (null: as soon as it is approved; omitted: the time proposed before, if any).

  • The post stays a draft with approval.status pending, and the workspace's approvers are emailed.
  • Approving schedules it at proposedFor, or publishes it at once when the time has passed.
  • Submit again after a rejection (read approval.reason) or a change: it asks again.
  • Works with a drafts-only key (posts:propose). 409 INVALID_STATUS_TRANSITION unless the post is a draft.
Key scope
posts:write
MCP tool
posts_submit

Headers

  • Authorizationstringrequired

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

Path parameters

  • postIdstringrequired

    Post id (UUID): id from posts_list or posts_create

Body

  • proposedForISO 8601 | null

    When you want it published, ISO 8601. On approval a future time schedules it, and a time already past (or none) publishes it right away. Omitted: the time proposed before, else none.

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