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

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

Output

Output
NameTypeDescription
outcome Required"scheduled" | "queued" | "pending_approval" | "partially_pending"—
approval_url Requiredstring | null—
targets Requiredobject[]—

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

Rate limit

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

Related tools