Publications API
Create a publishing job with a live key and poll its status. Sandbox keys cannot publish.
These examples use a placeholder address. Your console shows the exact address of the API for your workspace.
POST /publications
Queue a Facebook Page or Instagram publication. Live keys only; requires an active matching connection.
- Instagram requires media_asset_id. Facebook accepts a caption without an image.
- The image asset must be ready and belong to the workspace. Product-linked images require catalogue approval.
- 202 returns a publication job with id and status pending. Reuse the same Idempotency-Key for retries.
- Required scope
publications.write- HTTP
- Success: HTTP 202
Parameters
| Name | Description |
|---|---|
Idempotency-Keystring (required) | Stable idempotency key for the logical publication. |
connection_idstring (UUID of active Instagram or Facebook connection) | UUID of an active Instagram or Facebook connection. |
captionstring (up to 2200 characters; defaults to empty) | Caption, maximum 2200 characters. Caption or media_asset_id must be provided. |
media_asset_idstring (UUID; required for Instagram) | Ready image asset UUID in this workspace. Required on Instagram. |
Errors
Any authenticated endpoint can also return the authentication, scope and rate limit errors listed on the errors page.
GET /publications/{job_id}
Return the publishing job status and platform_post_id when available. Live keys only.
- Possible status values: pending, in_progress, succeeded, failed, dead_letter, cancelled.
- Required scope
publications.read- HTTP
- Success: HTTP 200
Parameters
| Name | Description |
|---|---|
job_idstring (UUID) | UUID returned by POST /publications. |
Errors
Any authenticated endpoint can also return the authentication, scope and rate limit errors listed on the errors page.