Skip to main content
POST
/
posts
/
{pid}
/
unpublish
Unpublish a post
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": "acc_01HZ9X3Q4R5M6N7P8V2K0W1J"
}
'
{
  "success": true
}

Documentation Index

Fetch the complete documentation index at: https://docs.social-api.ai/llms.txt

Use this file to discover all available pages before exploring further.

Authorizations

Authorization
string
header
required

Prefix your API key with "Bearer ". Example: Authorization: Bearer sapi_key_...

Path Parameters

pid
string
required

Post ID

Body

application/json

Optional account_id to unpublish from

account_id
string

AccountID optionally scopes the unpublish to a single platform target.

Example:

"acc_01HZ9X3Q4R5M6N7P8V2K0W1J"

Response

Post unpublished

success
boolean
Example:

true