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 |
List connect links#
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"const res = await fetch('https://api.outboxer.dev/v1/workspaces/acme/connect-links', {
method: 'GET',
headers: {
Authorization: `Bearer ${process.env.OUTBOXER_API_KEY}`,
},
});
if (!res.ok) throw new Error((await res.json()).code); // RFC 9457 problem
const data = await res.json();import os, uuid, requests
res = requests.request(
"GET",
"https://api.outboxer.dev/v1/workspaces/acme/connect-links",
headers={"Authorization": f"Bearer {os.environ['OUTBOXER_API_KEY']}"},
)
res.raise_for_status() # problem details: res.json()["code"]
data = res.json()Create a connect link#
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
}'const res = await fetch('https://api.outboxer.dev/v1/workspaces/acme/connect-links', {
method: 'POST',
headers: {
Authorization: `Bearer ${process.env.OUTBOXER_API_KEY}`,
'Idempotency-Key': crypto.randomUUID(),
'Content-Type': 'application/json',
},
body: JSON.stringify({
"provider": "instagram",
"note": "For the brand manager",
"expires_in_hours": 72
}),
});
if (!res.ok) throw new Error((await res.json()).code); // RFC 9457 problem
const data = await res.json();import os, uuid, requests
res = requests.request(
"POST",
"https://api.outboxer.dev/v1/workspaces/acme/connect-links",
headers={"Authorization": f"Bearer {os.environ['OUTBOXER_API_KEY']}", "Idempotency-Key": str(uuid.uuid4())},
json={
"provider": "instagram",
"note": "For the brand manager",
"expires_in_hours": 72
},
)
res.raise_for_status() # problem details: res.json()["code"]
data = res.json()Revoke a connect link#
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"const res = await fetch('https://api.outboxer.dev/v1/connect-links/cl_01j9zq3k8m5v2b7x4c6n1p0r9s', {
method: 'DELETE',
headers: {
Authorization: `Bearer ${process.env.OUTBOXER_API_KEY}`,
},
});
if (!res.ok) throw new Error((await res.json()).code); // RFC 9457 problem
const data = await res.json();import os, uuid, requests
res = requests.request(
"DELETE",
"https://api.outboxer.dev/v1/connect-links/cl_01j9zq3k8m5v2b7x4c6n1p0r9s",
headers={"Authorization": f"Bearer {os.environ['OUTBOXER_API_KEY']}"},
)
res.raise_for_status() # problem details: res.json()["code"]
data = res.json()Open a connect link#
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_…"const res = await fetch('https://api.outboxer.dev/v1/connect/obc_…', {
method: 'GET',
});
if (!res.ok) throw new Error((await res.json()).code); // RFC 9457 problem
const data = await res.json();import os, uuid, requests
res = requests.request(
"GET",
"https://api.outboxer.dev/v1/connect/obc_…",
)
res.raise_for_status() # problem details: res.json()["code"]
data = res.json()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"const res = await fetch('https://api.outboxer.dev/v1/workspaces/acme/connections?include_disconnected=…', {
method: 'GET',
headers: {
Authorization: `Bearer ${process.env.OUTBOXER_API_KEY}`,
},
});
if (!res.ok) throw new Error((await res.json()).code); // RFC 9457 problem
const data = await res.json();import os, uuid, requests
res = requests.request(
"GET",
"https://api.outboxer.dev/v1/workspaces/acme/connections?include_disconnected=…",
headers={"Authorization": f"Bearer {os.environ['OUTBOXER_API_KEY']}"},
)
res.raise_for_status() # problem details: res.json()["code"]
data = res.json()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"const res = await fetch('https://api.outboxer.dev/v1/channels/ch_01j9zq3k8m5v2b7x4c6n1p0r9s/health', {
method: 'GET',
headers: {
Authorization: `Bearer ${process.env.OUTBOXER_API_KEY}`,
},
});
if (!res.ok) throw new Error((await res.json()).code); // RFC 9457 problem
const data = await res.json();import os, uuid, requests
res = requests.request(
"GET",
"https://api.outboxer.dev/v1/channels/ch_01j9zq3k8m5v2b7x4c6n1p0r9s/health",
headers={"Authorization": f"Bearer {os.environ['OUTBOXER_API_KEY']}"},
)
res.raise_for_status() # problem details: res.json()["code"]
data = res.json()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)"const res = await fetch('https://api.outboxer.dev/v1/channels/ch_01j9zq3k8m5v2b7x4c6n1p0r9s/check', {
method: 'POST',
headers: {
Authorization: `Bearer ${process.env.OUTBOXER_API_KEY}`,
'Idempotency-Key': crypto.randomUUID(),
},
});
if (!res.ok) throw new Error((await res.json()).code); // RFC 9457 problem
const data = await res.json();import os, uuid, requests
res = requests.request(
"POST",
"https://api.outboxer.dev/v1/channels/ch_01j9zq3k8m5v2b7x4c6n1p0r9s/check",
headers={"Authorization": f"Bearer {os.environ['OUTBOXER_API_KEY']}", "Idempotency-Key": str(uuid.uuid4())},
)
res.raise_for_status() # problem details: res.json()["code"]
data = res.json()