sangtao.ai
API key

Publishing

Delete a post

Delete a post from your sangtao.ai history. It stays up on the networks.

DELETEhttps://api.sangtao.ai/v2/publishing/posts/{id}

Authorization

  • X-Api-Keystring · headerrequired

    Your API key, from the API keys page of your account.

Path parameters

  • idstringrequired

    The ID in the path.

Deletes the post from your history here only — what was already published stays on the networks; take it down there yourself if you need to. A post deleted while still Pending is cancelled before anything is sent, and its credits are released. Otherwise what it was charged is not refunded.

Response

data is { "deleted": true }.

Errors

StatuserrorCodeWhen
404POST_NOT_FOUNDNo post of yours with this id
DELETE/publishing/posts/{id}
curl -X DELETE "https://api.sangtao.ai/v2/publishing/posts/7c9e6679-7425-40de-944b-e07fc1f90ae7" \
  -H "X-Api-Key: YOUR_API_KEY"
{
  "success": true,
  "data": {
    "deleted": true
  }
}