Pages in API reference

Posts

Delete a post

DELETE/api/posts/:postId

Discard a post that has not been published, including a scheduled one.

  • The post stays readable with status discarded, and its media in Ampost storage is deleted.
  • To take a published post down from the platforms, use posts_unpublish.
  • Returns the discarded post. 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 key or member whose posts need approval discards only drafts (403 APPROVAL_REQUIRED otherwise).
Key scope
posts:write
MCP tool
posts_delete

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

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