Posts
List the posts in the trash
Lists deleted posts, most recently deleted first, with who deleted them, when, when they will be deleted forever, and their channels.
GET
header
AuthorizationBearer <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.
projectId*stringLength
1 <= lengthResponse for status 200
application/json- response
posts*array<>retentionDays*integerRange
1 <= valuecurl -X GET 'https://postdot.example/api/projects/string/trash/posts'Example Response
{
"posts": [
{
"id": "string",
"projectId": "string",
"title": "string",
"sourceExcerpt": "string",
"createdAt": 0,
"deletedAt": 0,
"purgeAt": 0,
"deletedBy": {
"id": "string",
"displayName": "string"
},
"publications": [
{
"id": "string",
"channelId": "string",
"channelName": "string",
"state": "draft",
"deliveryMode": "manual",
"scheduledAt": 0,
"publishedAt": 0,
"externalUrl": "string"
}
]
}
],
"retentionDays": 1
}Was this page helpful?
List quotes waiting for the post to be published GET
Previous Page
Delete a post in the trash forever POST
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.