API reference

Channels

Connected social accounts — connect through OAuth or a connect link, capabilities, settings, queue slots, pause, refresh and disconnect.

Connected social accounts: connect through OAuth or a connect link, capabilities, settings, queue slots, pause, refresh and disconnect.

Method Endpoint Summary
GET /v1/workspaces/{ws}/channels List channels
POST /v1/workspaces/{ws}/channels/connect Connect a channel
GET /v1/channels/{id} Get a channel
PATCH /v1/channels/{id} Update channel settings and queue slots
GET /v1/channels/{id}/capabilities Channel capability matrix
POST /v1/channels/{id}/pause Pause or resume publishing on a channel
POST /v1/channels/{id}/refresh Refresh the channel token
POST /v1/channels/{id}/disconnect Disconnect a channel
GET /v1/workspaces/{ws}/channel-groups List channel groups
POST /v1/workspaces/{ws}/channel-groups Create a channel group
PATCH /v1/channel-groups/{id} Update a channel group
DELETE /v1/channel-groups/{id} Delete a channel group

List channels#

GET/v1/workspaces/{ws}/channels

?include=capabilities adds each capability matrix.

Auth: API key (Authorization: Bearer obx_live_…). Requires scope channels:read with workspace role owner / admin / editor / contributor / viewer / agent.

Path parameters

Name Required Description
ws yes Workspace id (ws_…) or slug

Query parameters

Name Required Description
include no Related data to embed.

Response 200 — List. Errors: RFC 9457 Problem with a stable code (error codes).

curl -X GET "https://api.outboxer.dev/v1/workspaces/acme/channels?include=stats" \
  -H "Authorization: Bearer $OUTBOXER_API_KEY"

Connect a channel#

POST/v1/workspaces/{ws}/channels/connect

Returns an OAuth authorization_url: send the person who owns the social account there to approve access; the channel appears once they finish. reconnect_channel_id keeps history and scheduled posts. Agents cannot complete OAuth themselves: create a connect link (POST /workspaces/{ws}/connect-links) for a human instead.

Auth: API key (Authorization: Bearer obx_live_…). Requires scope workspace:admin with workspace role owner / admin.

Path parameters

Name Required Description
ws yes Workspace id (ws_…) or slug

Headers

Name Required Description
Idempotency-Key no Replays within 24 h return the original response.

Request body

Field Type Description
provider string
reconnect_channel_id string

Response 200 — Object. Errors: RFC 9457 Problem with a stable code (error codes).

curl -X POST "https://api.outboxer.dev/v1/workspaces/acme/channels/connect" \
  -H "Authorization: Bearer $OUTBOXER_API_KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{
  "provider": "linkedin",
  "redirect_to": "https://app.example.com/channels"
}'

Get a channel#

GET/v1/channels/{id}

Includes capabilities.

Auth: API key (Authorization: Bearer obx_live_…). Requires scope channels:read with workspace role owner / admin / editor / contributor / viewer / agent.

Path parameters

Name Required Description
id yes Channel id (ch_…).

Response 200 — Channel. Errors: RFC 9457 Problem with a stable code (error codes).

curl -X GET "https://api.outboxer.dev/v1/channels/ch_01j9zq3k8m5v2b7x4c6n1p0r9s" \
  -H "Authorization: Bearer $OUTBOXER_API_KEY"

Update channel settings and queue slots#

PATCH/v1/channels/{id}

settings: default_first_comment, default_hashtags, posting_windows, shorten_links, utm_template, app_audited. queue_slots replaces all slots.

Auth: API key (Authorization: Bearer obx_live_…). Requires scope workspace:admin with workspace role owner / admin.

Path parameters

Name Required Description
id yes Channel id (ch_…).

Request body

Field Type Description
settings object
queue_slots array

Response 200 — Channel. Errors: RFC 9457 Problem with a stable code (error codes).

curl -X PATCH "https://api.outboxer.dev/v1/channels/ch_01j9zq3k8m5v2b7x4c6n1p0r9s" \
  -H "Authorization: Bearer $OUTBOXER_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "settings": {},
  "queue_slots": []
}'

Channel capability matrix#

GET/v1/channels/{id}/capabilities

Post types, limits (with counting method), media constraints, options, caps. Read before drafting.

Auth: API key (Authorization: Bearer obx_live_…). Requires scope channels:read with workspace role owner / admin / editor / contributor / viewer / agent.

Path parameters

Name Required Description
id yes Channel id (ch_…).

Response 200 — Capabilities. Errors: RFC 9457 Problem with a stable code (error codes).

curl -X GET "https://api.outboxer.dev/v1/channels/ch_01j9zq3k8m5v2b7x4c6n1p0r9s/capabilities" \
  -H "Authorization: Bearer $OUTBOXER_API_KEY"

Pause or resume publishing on a channel#

POST/v1/channels/{id}/pause

Auth: API key (Authorization: Bearer obx_live_…). Requires scope posts:publish with workspace role owner / admin / editor / agent.

Path parameters

Name Required Description
id yes Channel id (ch_…).

Headers

Name Required Description
Idempotency-Key no Replays within 24 h return the original response.

Request body

Field Type Description
paused boolean

Response 200 — Channel. Errors: RFC 9457 Problem with a stable code (error codes).

curl -X POST "https://api.outboxer.dev/v1/channels/ch_01j9zq3k8m5v2b7x4c6n1p0r9s/pause" \
  -H "Authorization: Bearer $OUTBOXER_API_KEY" \
  -H "Idempotency-Key: $(uuidgen)"

Refresh the channel token#

POST/v1/channels/{id}/refresh

Forces an OAuth refresh now (serialized with the scheduler, so a single-use refresh token is never spent twice). Returns the channel plus refreshed; reason: no_refresh_token when the provider has nothing to refresh (Facebook and Instagram Page tokens don't expire). 409 channel_disconnected for a disconnected channel; 502 refresh_failed when the provider refuses (with error_class; auth also sets needs_reconnect).

Auth: API key (Authorization: Bearer obx_live_…). Requires scope workspace:admin with workspace role owner / admin.

Path parameters

Name Required Description
id yes Channel id (ch_…).

Headers

Name Required Description
Idempotency-Key no Replays within 24 h return the original response.

Response 200 — Channel. Errors: RFC 9457 Problem with a stable code (error codes).

curl -X POST "https://api.outboxer.dev/v1/channels/ch_01j9zq3k8m5v2b7x4c6n1p0r9s/refresh" \
  -H "Authorization: Bearer $OUTBOXER_API_KEY" \
  -H "Idempotency-Key: $(uuidgen)"

Disconnect a channel#

POST/v1/channels/{id}/disconnect

Purges stored credentials (provider retention rules).

Auth: API key (Authorization: Bearer obx_live_…). Requires scope workspace:admin with workspace role owner / admin.

Path parameters

Name Required Description
id yes Channel id (ch_…).

Headers

Name Required Description
Idempotency-Key no Replays within 24 h return the original response.

Response 200 — Channel. Errors: RFC 9457 Problem with a stable code (error codes).

curl -X POST "https://api.outboxer.dev/v1/channels/ch_01j9zq3k8m5v2b7x4c6n1p0r9s/disconnect" \
  -H "Authorization: Bearer $OUTBOXER_API_KEY" \
  -H "Idempotency-Key: $(uuidgen)"

List channel groups#

GET/v1/workspaces/{ws}/channel-groups

Auth: API key (Authorization: Bearer obx_live_…). Requires scope channels:read with workspace role owner / admin / editor / contributor / viewer / agent.

Path parameters

Name Required Description
ws yes Workspace id (ws_…) or slug

Response 200 — List. Errors: RFC 9457 Problem with a stable code (error codes).

curl -X GET "https://api.outboxer.dev/v1/workspaces/acme/channel-groups" \
  -H "Authorization: Bearer $OUTBOXER_API_KEY"

Create a channel group#

POST/v1/workspaces/{ws}/channel-groups

Named sets of channels to target together.

Auth: API key (Authorization: Bearer obx_live_…). Requires scope workspace:admin with workspace role owner / admin.

Path parameters

Name Required Description
ws yes Workspace id (ws_…) or slug

Headers

Name Required Description
Idempotency-Key no Replays within 24 h return the original response.

Request body

Field Type Description
name string
channel_ids array

Response 201 — Object. Errors: RFC 9457 Problem with a stable code (error codes).

curl -X POST "https://api.outboxer.dev/v1/workspaces/acme/channel-groups" \
  -H "Authorization: Bearer $OUTBOXER_API_KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{
  "name": "example",
  "channel_ids": [
    "ch_01j9zq3k8m5v2b7x4c6n1p0r9s"
  ]
}'

Update a channel group#

PATCH/v1/channel-groups/{id}

Auth: API key (Authorization: Bearer obx_live_…). Requires scope workspace:admin with workspace role owner / admin.

Path parameters

Name Required Description
id yes Channel group id (chg_…).

Request body

Field Type Description
name string
channel_ids array

Response 200 — Object. Errors: RFC 9457 Problem with a stable code (error codes).

curl -X PATCH "https://api.outboxer.dev/v1/channel-groups/chg_01j9zq3k8m5v2b7x4c6n1p0r9s" \
  -H "Authorization: Bearer $OUTBOXER_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "name": "example",
  "channel_ids": [
    "ch_01j9zq3k8m5v2b7x4c6n1p0r9s"
  ]
}'

Delete a channel group#

DELETE/v1/channel-groups/{id}

Auth: API key (Authorization: Bearer obx_live_…). Requires scope workspace:admin with workspace role owner / admin.

Path parameters

Name Required Description
id yes Channel group id (chg_…).

Response 200 — Object. Errors: RFC 9457 Problem with a stable code (error codes).

curl -X DELETE "https://api.outboxer.dev/v1/channel-groups/chg_01j9zq3k8m5v2b7x4c6n1p0r9s" \
  -H "Authorization: Bearer $OUTBOXER_API_KEY"