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
BearerAuthheader
AuthorizationBearer <token>API key sk_...
id*stringPostgale post id
application/json- body
accountId?stringOnly this target
{postId, results}: per target; with one target (or accountId) its failure is the error
application/json- response
postId?stringresults?array<>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" } ]}POST /posts/{id}/edit POST
Edit the text of the post on the platform (Facebook; Telegram text or caption, keeping the post's parseMode; Discord message text; X Premium within 1 hour, as a new post id; the Postgale post keeps its text). Queued for approval (202) while approval applies
POST /posts/{id}/comments-settings POST
Turn comments on or off on the published post (Instagram)