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
| Name | Type | Description |
|---|---|---|
post_id Required | string | post_ ID |
account_ids | string[] | 1 to 20 items |
idempotency_key Required | string | 8 to 128 characters |
Output
| Name | Type | Description |
|---|---|---|
post_id Required | string | — |
status Required | "draft" | "pending_approval" | "scheduled" | "publishing" | "published" | "partially_failed" | "failed" | "cancelled" | — |
targets Required | object[] | — |
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
UNAUTHENTICATEDINSUFFICIENT_SCOPERATE_LIMITEDINTERNALVALIDATION_FAILEDNOT_FOUNDPOLICY_DENIEDSUBSCRIPTION_INACTIVEACCOUNT_NOT_ALLOWEDIDEMPOTENCY_CONFLICTINVALID_STATE
Rate limit
30 calls a minute per connection, and 300 a minute across all tools.