PostZen
Posts

Delete a post

DELETE
/v1/posts/{postId}

Deletes a draft, scheduled, queued, failed, partially failed, or canceled post. Published and publishing posts cannot be deleted.

Authorization

bearerAuth
AuthorizationBearer <token>

PostZen API key.

In: header

Path Parameters

postId*string

PostZen post id.

Response Body

application/json

application/json

application/json

application/json

application/json

application/json

application/json

curl -X DELETE "https://example.com/v1/posts/string"
{  "message": "Post deleted successfully"}
{  "error": "JSON body is required"}
{  "error": "Unauthorized"}
{  "error": "API key requires read_write permission"}
{  "error": "Not found"}
{  "error": "Post publishing is in progress. Retry after it completes.",  "type": "invalid_request_error",  "code": "post_publish_in_progress",  "param": null}
{  "error": "rate_limited",  "retryAfter": 30}