API referencePublished posts

POST /posts/{id}/unpublish

Delete the post from the platform (Facebook, Threads, X, Telegram: every message of an album; Discord; Bluesky and Mastodon: the post, or a thread's first post; Instagram does not allow it → not_supported). The Postgale post stays

POST
/posts/{id}/unpublish

Authorization

BearerAuth
headerAuthorizationBearer <token>

API key sk_...

Path Parameters

id*string

Postgale post id

Request Body

application/json
  1. body
accountId?string

Only this target

Response Body

{postId, results}: per target; with one target (or accountId) its failure is the error

application/json
  1. response
postId?string
results?array<>
Example Request
curl -X POST 'https://example.com/api/v1/posts/string/unpublish' \  -H 'Content-Type: application/json' \  -d '{}'
Example Response
{  "postId": "string",  "results": [    {      "accountId": "string",      "platform": "string",      "platformPostId": "string",      "ok": true,      "code": "string",      "error": "string"    }  ]}