Skip to content

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.

Access
write
Category
Publishing
Endpoint
POST/api/tools/delete_post
On this page
  1. Parameters
  2. Example request
  3. Response

Parameters

id
stringrequired
ObjectId of the post to delete.
workspaceId
string
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.

200 · application/json
{
  "success": true,
  "message": "Post removed from workspace."
}