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"const res = await fetch('https://api.outboxer.dev/v1/workspaces/acme/channels?include=stats', {
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/channels?include=stats",
headers={"Authorization": f"Bearer {os.environ['OUTBOXER_API_KEY']}"},
)
res.raise_for_status() # problem details: res.json()["code"]
data = res.json()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"
}'const res = await fetch('https://api.outboxer.dev/v1/workspaces/acme/channels/connect', {
method: 'POST',
headers: {
Authorization: `Bearer ${process.env.OUTBOXER_API_KEY}`,
'Idempotency-Key': crypto.randomUUID(),
'Content-Type': 'application/json',
},
body: JSON.stringify({
"provider": "linkedin",
"redirect_to": "https://app.example.com/channels"
}),
});
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/channels/connect",
headers={"Authorization": f"Bearer {os.environ['OUTBOXER_API_KEY']}", "Idempotency-Key": str(uuid.uuid4())},
json={
"provider": "linkedin",
"redirect_to": "https://app.example.com/channels"
},
)
res.raise_for_status() # problem details: res.json()["code"]
data = res.json()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"const res = await fetch('https://api.outboxer.dev/v1/channels/ch_01j9zq3k8m5v2b7x4c6n1p0r9s', {
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",
headers={"Authorization": f"Bearer {os.environ['OUTBOXER_API_KEY']}"},
)
res.raise_for_status() # problem details: res.json()["code"]
data = res.json()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": []
}'const res = await fetch('https://api.outboxer.dev/v1/channels/ch_01j9zq3k8m5v2b7x4c6n1p0r9s', {
method: 'PATCH',
headers: {
Authorization: `Bearer ${process.env.OUTBOXER_API_KEY}`,
'Content-Type': 'application/json',
},
body: JSON.stringify({
"settings": {},
"queue_slots": []
}),
});
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(
"PATCH",
"https://api.outboxer.dev/v1/channels/ch_01j9zq3k8m5v2b7x4c6n1p0r9s",
headers={"Authorization": f"Bearer {os.environ['OUTBOXER_API_KEY']}"},
json={
"settings": {},
"queue_slots": {}
},
)
res.raise_for_status() # problem details: res.json()["code"]
data = res.json()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"const res = await fetch('https://api.outboxer.dev/v1/channels/ch_01j9zq3k8m5v2b7x4c6n1p0r9s/capabilities', {
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/capabilities",
headers={"Authorization": f"Bearer {os.environ['OUTBOXER_API_KEY']}"},
)
res.raise_for_status() # problem details: res.json()["code"]
data = res.json()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)"const res = await fetch('https://api.outboxer.dev/v1/channels/ch_01j9zq3k8m5v2b7x4c6n1p0r9s/pause', {
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/pause",
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()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)"const res = await fetch('https://api.outboxer.dev/v1/channels/ch_01j9zq3k8m5v2b7x4c6n1p0r9s/refresh', {
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/refresh",
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()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)"const res = await fetch('https://api.outboxer.dev/v1/channels/ch_01j9zq3k8m5v2b7x4c6n1p0r9s/disconnect', {
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/disconnect",
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()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"const res = await fetch('https://api.outboxer.dev/v1/workspaces/acme/channel-groups', {
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/channel-groups",
headers={"Authorization": f"Bearer {os.environ['OUTBOXER_API_KEY']}"},
)
res.raise_for_status() # problem details: res.json()["code"]
data = res.json()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"
]
}'const res = await fetch('https://api.outboxer.dev/v1/workspaces/acme/channel-groups', {
method: 'POST',
headers: {
Authorization: `Bearer ${process.env.OUTBOXER_API_KEY}`,
'Idempotency-Key': crypto.randomUUID(),
'Content-Type': 'application/json',
},
body: JSON.stringify({
"name": "example",
"channel_ids": [
"ch_01j9zq3k8m5v2b7x4c6n1p0r9s"
]
}),
});
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/channel-groups",
headers={"Authorization": f"Bearer {os.environ['OUTBOXER_API_KEY']}", "Idempotency-Key": str(uuid.uuid4())},
json={
"name": "example",
"channel_ids": [
"ch_01j9zq3k8m5v2b7x4c6n1p0r9s"
]
},
)
res.raise_for_status() # problem details: res.json()["code"]
data = res.json()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"
]
}'const res = await fetch('https://api.outboxer.dev/v1/channel-groups/chg_01j9zq3k8m5v2b7x4c6n1p0r9s', {
method: 'PATCH',
headers: {
Authorization: `Bearer ${process.env.OUTBOXER_API_KEY}`,
'Content-Type': 'application/json',
},
body: JSON.stringify({
"name": "example",
"channel_ids": [
"ch_01j9zq3k8m5v2b7x4c6n1p0r9s"
]
}),
});
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(
"PATCH",
"https://api.outboxer.dev/v1/channel-groups/chg_01j9zq3k8m5v2b7x4c6n1p0r9s",
headers={"Authorization": f"Bearer {os.environ['OUTBOXER_API_KEY']}"},
json={
"name": "example",
"channel_ids": [
"ch_01j9zq3k8m5v2b7x4c6n1p0r9s"
]
},
)
res.raise_for_status() # problem details: res.json()["code"]
data = res.json()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"const res = await fetch('https://api.outboxer.dev/v1/channel-groups/chg_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/channel-groups/chg_01j9zq3k8m5v2b7x4c6n1p0r9s",
headers={"Authorization": f"Bearer {os.environ['OUTBOXER_API_KEY']}"},
)
res.raise_for_status() # problem details: res.json()["code"]
data = res.json()