Pages in API reference

Posts

Reject a waiting post

POST/api/posts/:postId/reject

Reject a post that waits for approval, with a reason its author reads in approval.reason.

  • The post stays a draft, to change and submit again. 403 APPROVER_ROLE_REQUIRED unless you are an Owner, Admin or Approver of the workspace; 409 NOT_PENDING_APPROVAL when the post does not wait for approval.
Key scope
posts:write
MCP tool
posts_reject

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

  • reasonstringrequired

    Why it is rejected, up to 1000 characters. Stored on the post (approval.reason) for the proposer, its API key or agent, and sent in the post.rejected webhook event.

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