Skip to content

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

Parameters
NameDescription
Idempotency-Key

string (required)
Header · Required

Stable idempotency key for the logical publication.
connection_id

string (UUID of active Instagram or Facebook connection)
Body · Required

UUID of an active Instagram or Facebook connection.
caption

string (up to 2200 characters; defaults to empty)
Body · Optional

Caption, maximum 2200 characters. Caption or media_asset_id must be provided.
media_asset_id

string (UUID; required for Instagram)
Body · Optional

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.

Request

curl -X POST "https://vendrix-api-7897083941.europe-west4.run.app/api/public/v1/publications" \
  -H "Authorization: Bearer $VENDRIX_API_KEY" \
  -H "Idempotency-Key: new-arrivals-1" \
  -H "Content-Type: application/json" \
  -d '{
    "connection_id": "a6e7369f-b1a5-47b7-a990-6d4c916aa66e",
    "media_asset_id": "eac7edcb-9c30-4fa4-becd-fb92b73d6ee9",
    "caption": "New arrivals are in."
  }'

Response

202 Accepted
{
  "id": "a6e7369f-b1a5-47b7-a990-6d4c916aa66e",
  "status": "pending",
  "platform_post_id": null
}

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

Parameters
NameDescription
job_id

string (UUID)
Path · Required

UUID returned by POST /publications.

Errors

Any authenticated endpoint can also return the authentication, scope and rate limit errors listed on the errors page.

Request

curl "https://vendrix-api-7897083941.europe-west4.run.app/api/public/v1/publications/JOB_ID" \
  -H "Authorization: Bearer $VENDRIX_API_KEY"

Response

200 OK
{
  "id": "a6e7369f-b1a5-47b7-a990-6d4c916aa66e",
  "status": "succeeded",
  "platform_post_id": "17890000000000000"
}