Skip to Content
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
/api/projects/{projectId}/trash/posts

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

Response Body

Response for status 200

application/json
  1. response
posts*array<>
retentionDays*integer
Range1 <= value
Example Request
curl -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?