cancel_scheduled_post

Changes state

Returns a scheduled or waiting post to draft and withdraws any pending approval. Nothing is deleted.

Permission

Scope posts:publish: Schedule, publish, cancel and retry posts. Allowed in every mode. Changing an approved post sends it back for approval.

Input

Input
NameTypeDescription
post_id Requiredstringpost_ ID
account_idsstring[]1 to 20 items
idempotency_key Requiredstring8 to 128 characters

Output

Output
NameTypeDescription
post_id Requiredstring—
status Required"draft" | "pending_approval" | "scheduled" | "publishing" | "published" | "partially_failed" | "failed" | "cancelled"—
targets Requiredobject[]—

Example

Request

{
  "post_id": "post_…",
  "idempotency_key": "cancel-1"
}

Response

{
  "post_id": "post_…",
  "status": "draft",
  "targets": [
    {
      "target_id": "tgt_…",
      "account_id": "acc_…",
      "platform": "x",
      "status": "draft",
      "scheduled_at": null,
      "platform_post_url": null
    }
  ]
}

Errors

Rate limit

30 calls a minute per connection, and 300 a minute across all tools.

Related tools