Publishing
Delete a post
Delete a post from your sangtao.ai history. It stays up on the networks.
DELETE
https://api.sangtao.ai/v2/publishing/posts/{id}Authorization
X-Api-Keystring · headerrequiredYour API key, from the API keys page of your account.
Path parameters
idstringrequiredThe 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
| Status | errorCode | When |
|---|---|---|
| 404 | POST_NOT_FOUND | No 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
}
}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
}
}