API reference

Connectivity

Can this brand publish right now? Per-channel readiness with fixes, live checks against the provider, and one-time connect links for brand owners.

Can this brand publish right now? Per-channel readiness with fixes, live checks against the provider, and one-time connect links for brand owners.

Method Endpoint Summary
GET /v1/workspaces/{ws}/connect-links List connect links
POST /v1/workspaces/{ws}/connect-links Create a connect link
DELETE /v1/connect-links/{id} Revoke a connect link
GET /v1/connect/{token} Open a connect link
GET /v1/workspaces/{ws}/connections Brand connectivity overview
GET /v1/channels/{id}/health Channel health
POST /v1/channels/{id}/check Live connectivity check

GET/v1/workspaces/{ws}/connect-links

Auth: API key (Authorization: Bearer obx_live_…). Requires scope channels:connect with workspace role owner / admin / 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/connect-links" \
  -H "Authorization: Bearer $OUTBOXER_API_KEY"

POST/v1/workspaces/{ws}/connect-links

One-time URL (default 72 h, max 168 h) a brand owner opens to connect or reconnect (reconnect_channel_id) an account. Needs channels:connect. Agents cannot complete OAuth themselves — this is how they ask a human.

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

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
note string
expires_in_hours integer
redirect_to string

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

curl -X POST "https://api.outboxer.dev/v1/workspaces/acme/connect-links" \
  -H "Authorization: Bearer $OUTBOXER_API_KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{
  "provider": "instagram",
  "note": "For the brand manager",
  "expires_in_hours": 72
}'

DELETE/v1/connect-links/{id}

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

Path parameters

Name Required Description
id yes Connect link id (cl_…).

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

curl -X DELETE "https://api.outboxer.dev/v1/connect-links/cl_01j9zq3k8m5v2b7x4c6n1p0r9s" \
  -H "Authorization: Bearer $OUTBOXER_API_KEY"

GET/v1/connect/{token}

Public. The brand owner opens the URL from POST /connect-links in a browser; it redirects to the provider sign-in. One-time use.

Auth: none (public) — one-time URL.

Path parameters

Name Required Description
token yes One-time token from the link.

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

curl -X GET "https://api.outboxer.dev/v1/connect/obc_…"

Brand connectivity overview#

GET/v1/workspaces/{ws}/connections

Per channel: ready, problems[] and warnings[] (each {code, message, fix}), token expiry, missing scopes, last live check. Plus providers not yet connected and pending connect links. Start here to answer "can we post for this brand?".

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_disconnected no

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

curl -X GET "https://api.outboxer.dev/v1/workspaces/acme/connections?include_disconnected=…" \
  -H "Authorization: Bearer $OUTBOXER_API_KEY"

Channel health#

GET/v1/channels/{id}/health

Stored readiness for one channel (no provider call).

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 — ChannelHealth. Errors: RFC 9457 Problem with a stable code (error codes).

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

Live connectivity check#

POST/v1/channels/{id}/check

Refreshes the token if it is inside the provider's refresh window, then confirms with the provider that the credentials still reach this account. Updates status (needs_reconnect on auth failure).

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_…).

Headers

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

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

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