cURL
curl --request POST \ --url https://api.social-api.ai/v1/posts/{pid}/unpublish \ --header 'Authorization: <api-key>' \ --header 'Content-Type: application/json' \ --data ' { "account_id": "<string>" } '
{ "success": true }
Unpublishes a published post from a specific account (if account_id provided) or all accounts.
Prefix your API key with "Bearer ". Example: Authorization: Bearer sapi_key_...
Authorization: Bearer sapi_key_...
Post ID
Optional account_id to unpublish from
Post unpublished
true