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"

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"
}'

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"

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": {}
}'

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)"

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)"