Skip to Content
Posts

Delete a post in the trash forever

Deletes a post that is in the trash, with its channels and their history, at once instead of at the end of the retention period. It cannot be undone, and it never removes anything from a platform. Delivery counts stay in analytics. Project owners only. API keys need publication:permanently_delete.

POST
/api/projects/{projectId}/posts/{postId}/purge

Authorization

headerAuthorizationBearer <Postdot API key>

A user-owned Postdot API key sent as Authorization: Bearer <token>. Its project scope is limited by the creator’s current access.

Path Parameters

projectId*string
Length1 <= length
postId*string
Length1 <= length

Response Body

Response for status 200

application/json
  1. response
purged*boolean
Example Request
curl -X POST 'https://postdot.example/api/projects/string/posts/string/purge'
Example Response
{
  "purged": true
}

Was this page helpful?