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": "<string>"
}
'
{
  "success": true
}

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

Response

Post unpublished

success
boolean
Example:

true