publish_post
Changes state
Publishes a post as soon as possible. Asynchronous: the outcome is queued (check get_publishing_status), or pending_approval with an approval_url.
Permission
Scope posts:publish: Schedule, publish, cancel and retry posts. Draft only: not listed and refused. Approval required: the post waits for approval (outcome pending_approval). Publish without approval: goes ahead.
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 |
|---|---|---|
outcome Required | "scheduled" | "queued" | "pending_approval" | "partially_pending" | — |
approval_url Required | string | null | — |
targets Required | object[] | — |
Example
Request
{
"post_id": "post_…",
"idempotency_key": "publish-now-1"
}Response
{
"outcome": "queued",
"approval_url": null,
"targets": [
{
"target_id": "tgt_…",
"account_id": "acc_…",
"platform": "x",
"status": "queued",
"scheduled_at": null,
"platform_post_url": null
}
]
}Errors
UNAUTHENTICATEDINSUFFICIENT_SCOPERATE_LIMITEDINTERNALVALIDATION_FAILEDNOT_FOUNDPOLICY_DENIEDSUBSCRIPTION_INACTIVEACCOUNT_NOT_ALLOWEDIDEMPOTENCY_CONFLICTPLAN_LIMIT_REACHEDMEDIA_NOT_READYACCOUNT_NEEDS_REAUTHINVALID_STATEPLATFORM_QUOTA_EXHAUSTED
Rate limit
30 calls a minute per connection, and 300 a minute across all tools.