API reference
Workspaces
A workspace is one brand — its channels, design system, posts and members. Path parameters accept the ws_… id or the slug.
A workspace is one brand: its channels, design system, posts and members. Path parameters accept the ws_… id or the slug.
| Method | Endpoint | Summary |
|---|---|---|
| GET | /v1/workspaces |
List workspaces |
| POST | /v1/workspaces |
Create a workspace |
| GET | /v1/workspaces/{ws} |
Get a workspace |
| PATCH | /v1/workspaces/{ws} |
Update a workspace |
| POST | /v1/workspaces/{ws}/archive |
Archive a workspace |
| POST | /v1/workspaces/{ws}/pause |
Pause or resume all publishing (crisis switch) |
List workspaces#
GET/v1/workspaces
Workspaces this key can access, with your role in each.
Auth: API key (Authorization: Bearer obx_live_…).
Response 200 — List. Errors: RFC 9457 Problem with a stable code (error codes).
curl -X GET "https://api.outboxer.dev/v1/workspaces" \
-H "Authorization: Bearer $OUTBOXER_API_KEY"const res = await fetch('https://api.outboxer.dev/v1/workspaces', {
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",
headers={"Authorization": f"Bearer {os.environ['OUTBOXER_API_KEY']}"},
)
res.raise_for_status() # problem details: res.json()["code"]
data = res.json()Create a workspace#
POST/v1/workspaces
Org owners/admins only. Pass template_workspace_id to clone design system, posting windows and approval policy.
Auth: API key (Authorization: Bearer obx_live_…). Organization owners and admins (people, not agents).
Headers
| Name | Required | Description |
|---|---|---|
Idempotency-Key |
no | Replays within 24 h return the original response. |
Request body
| Field | Type | Description |
|---|---|---|
name |
string | |
slug |
string | |
timezone |
string | |
template_workspace_id |
string |
Response 201 — Workspace. Errors: RFC 9457 Problem with a stable code (error codes).
curl -X POST "https://api.outboxer.dev/v1/workspaces" \
-H "Authorization: Bearer $OUTBOXER_API_KEY" \
-H "Idempotency-Key: $(uuidgen)" \
-H "Content-Type: application/json" \
-d '{
"name": "example",
"slug": "example",
"timezone": "example",
"template_workspace_id": "id_01j9zq3k8m5v2b7x4c6n1p0r9s"
}'const res = await fetch('https://api.outboxer.dev/v1/workspaces', {
method: 'POST',
headers: {
Authorization: `Bearer ${process.env.OUTBOXER_API_KEY}`,
'Idempotency-Key': crypto.randomUUID(),
'Content-Type': 'application/json',
},
body: JSON.stringify({
"name": "example",
"slug": "example",
"timezone": "example",
"template_workspace_id": "id_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",
headers={"Authorization": f"Bearer {os.environ['OUTBOXER_API_KEY']}", "Idempotency-Key": str(uuid.uuid4())},
json={
"name": "example",
"slug": "example",
"timezone": "example",
"template_workspace_id": "id_01j9zq3k8m5v2b7x4c6n1p0r9s"
},
)
res.raise_for_status() # problem details: res.json()["code"]
data = res.json()Get a workspace#
GET/v1/workspaces/{ws}
Accepts a ws_ id or slug.
Auth: API key (Authorization: Bearer obx_live_…).
Path parameters
| Name | Required | Description |
|---|---|---|
ws |
yes | Workspace id (ws_…) or slug |
Response 200 — Workspace. Errors: RFC 9457 Problem with a stable code (error codes).
curl -X GET "https://api.outboxer.dev/v1/workspaces/acme" \
-H "Authorization: Bearer $OUTBOXER_API_KEY"const res = await fetch('https://api.outboxer.dev/v1/workspaces/acme', {
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",
headers={"Authorization": f"Bearer {os.environ['OUTBOXER_API_KEY']}"},
)
res.raise_for_status() # problem details: res.json()["code"]
data = res.json()Update a workspace#
PATCH/v1/workspaces/{ws}
Name, timezone, color, posting windows, policies (require_alt_text, require_ai_disclosure, sla_hours), Slack webhook.
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 |
Request body
| Field | Type | Description |
|---|---|---|
name |
string | |
timezone |
string | |
posting_windows |
array | |
settings |
object |
Response 200 — Workspace. Errors: RFC 9457 Problem with a stable code (error codes).
curl -X PATCH "https://api.outboxer.dev/v1/workspaces/acme" \
-H "Authorization: Bearer $OUTBOXER_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"name": "example",
"timezone": "example",
"posting_windows": [],
"settings": {}
}'const res = await fetch('https://api.outboxer.dev/v1/workspaces/acme', {
method: 'PATCH',
headers: {
Authorization: `Bearer ${process.env.OUTBOXER_API_KEY}`,
'Content-Type': 'application/json',
},
body: JSON.stringify({
"name": "example",
"timezone": "example",
"posting_windows": [],
"settings": {}
}),
});
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/workspaces/acme",
headers={"Authorization": f"Bearer {os.environ['OUTBOXER_API_KEY']}"},
json={
"name": "example",
"timezone": "example",
"posting_windows": {},
"settings": {}
},
)
res.raise_for_status() # problem details: res.json()["code"]
data = res.json()Archive a workspace#
POST/v1/workspaces/{ws}/archive
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. |
Response 200 — Workspace. Errors: RFC 9457 Problem with a stable code (error codes).
curl -X POST "https://api.outboxer.dev/v1/workspaces/acme/archive" \
-H "Authorization: Bearer $OUTBOXER_API_KEY" \
-H "Idempotency-Key: $(uuidgen)"const res = await fetch('https://api.outboxer.dev/v1/workspaces/acme/archive', {
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/workspaces/acme/archive",
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()Pause or resume all publishing (crisis switch)#
POST/v1/workspaces/{ws}/pause
Body {paused: bool}. Scheduled posts stay scheduled while paused.
Auth: API key (Authorization: Bearer obx_live_…). Requires scope posts:publish with workspace role owner / admin / editor / 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 |
|---|---|---|
paused |
boolean |
Response 200 — Workspace. Errors: RFC 9457 Problem with a stable code (error codes).
curl -X POST "https://api.outboxer.dev/v1/workspaces/acme/pause" \
-H "Authorization: Bearer $OUTBOXER_API_KEY" \
-H "Idempotency-Key: $(uuidgen)"const res = await fetch('https://api.outboxer.dev/v1/workspaces/acme/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/workspaces/acme/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()