delete_post
Cancels a scheduled, draft, or failed post and removes it from the workspace. Posts already broadcast are not retracted from the networks they reached.
On this page
- Category
- Publishing
- REST
- POST/api/tools/delete_post
Parameters
idstringrequired
ObjectId of the post to delete.
workspaceIdstringoptional
Workspace to act on, from list_workspaces. Omit to use the default workspace on the key.
Example request
curl -X POST "https://api.postmcpai.com/api/tools/delete_post" \
-H "Content-Type: application/json" \
-H "x-api-key: $POSTMCPAI_API_KEY" \
-d '{
"id": "66a50c89e4b019a2b72f"
}'Response
A confirmation object.
{
"success": true,
"message": "Post removed from workspace."
}