API reference

Agents

The context bundle an agent reads before drafting, and agent identities with their own scoped keys.

The context bundle an agent reads before drafting, and agent identities with their own scoped keys.

Method Endpoint Summary
GET /v1/agents List agents
POST /v1/agents Create an agent
GET /v1/agents/{id} Get an agent
GET /v1/agents/{id}/scorecard Agent scorecard
PATCH /v1/agents/{id} Update an agent
POST /v1/agents/{id}/keys Issue an agent API key
DELETE /v1/agents/{id}/keys/{key} Revoke an agent key
POST /v1/agents/{id}/kill Kill switch
GET /v1/workspaces/{ws}/context Everything an agent needs in one call

List agents#

GET/v1/agents

With draft counts and acceptance rate.

Auth: API key (Authorization: Bearer obx_live_…). Requires scope posts:read with workspace role owner / admin / editor / contributor / viewer / agent.

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

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

Create an agent#

POST/v1/agents

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

Headers

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

Request body

Field Type Description
name string
workspace_ids array
quotas object

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

curl -X POST "https://api.outboxer.dev/v1/agents" \
  -H "Authorization: Bearer $OUTBOXER_API_KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{
  "name": "Copy agent",
  "description": "Drafts weekly social copy",
  "workspace_ids": [
    "acme"
  ]
}'

Get an agent#

GET/v1/agents/{id}

With keys and stats (drafts today, in review, and 30-day acceptance_rate and unedited_rate).

Auth: API key (Authorization: Bearer obx_live_…).

Path parameters

Name Required Description
id yes Agent id (agt_…).

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

curl -X GET "https://api.outboxer.dev/v1/agents/agt_01j9zq3k8m5v2b7x4c6n1p0r9s" \
  -H "Authorization: Bearer $OUTBOXER_API_KEY"

Agent scorecard#

GET/v1/agents/{id}/scorecard

How the agent's drafts fared in review between from and to (default: the last 30 days): outcomes (approved_unedited, approved_edited, changes_requested, rejected, pending, not_submitted), acceptance_rate and unedited_rate over decided drafts, median hours to approval, change-request reasons, average results of its published posts against human posts, and the same split per agent_meta.model and prompt_version. Only workspaces where you can read analytics count.

Auth: API key (Authorization: Bearer obx_live_…). Requires scope analytics:read with workspace role owner / admin / editor / contributor / viewer / agent.

Path parameters

Name Required Description
id yes Agent id (agt_…).

Query parameters

Name Required Description
from no ISO-8601 date-time (range is [from, to)).
to no ISO-8601 date-time (range is [from, to)).
workspace_id no Only this workspace (id or slug).

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

curl -X GET "https://api.outboxer.dev/v1/agents/agt_01j9zq3k8m5v2b7x4c6n1p0r9s/scorecard?from=2026-10-20" \
  -H "Authorization: Bearer $OUTBOXER_API_KEY"

Update an agent#

PATCH/v1/agents/{id}

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

Path parameters

Name Required Description
id yes Agent id (agt_…).

Request body

Field Type Description
name string
status string
quotas object
workspace_ids array

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

curl -X PATCH "https://api.outboxer.dev/v1/agents/agt_01j9zq3k8m5v2b7x4c6n1p0r9s" \
  -H "Authorization: Bearer $OUTBOXER_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "name": "example",
  "status": "example",
  "quotas": {},
  "workspace_ids": [
    "acme"
  ]
}'

Issue an agent API key#

POST/v1/agents/{id}/keys

Shown once. Default scopes: read + drafts:write + media:write + posts:submit. Restrictions: workspace_ids, channel_ids, ip_allowlist, expires_at, max_drafts_per_day.

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

Path parameters

Name Required Description
id yes Agent id (agt_…).

Headers

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

Request body

Field Type Description
name string
scopes array

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

curl -X POST "https://api.outboxer.dev/v1/agents/agt_01j9zq3k8m5v2b7x4c6n1p0r9s/keys" \
  -H "Authorization: Bearer $OUTBOXER_API_KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{
  "name": "Production",
  "scopes": [
    "context:read",
    "posts:read",
    "drafts:write",
    "media:write",
    "posts:submit",
    "campaigns:write",
    "billing:read"
  ]
}'

Revoke an agent key#

DELETE/v1/agents/{id}/keys/{key}

Auth: API key (Authorization: Bearer obx_live_…).

Path parameters

Name Required Description
id yes Agent id (agt_…).
key yes Key id.

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

curl -X DELETE "https://api.outboxer.dev/v1/agents/agt_01j9zq3k8m5v2b7x4c6n1p0r9s/keys/key_01j9zq3k8m5v2b7x4c6n1p0r9s" \
  -H "Authorization: Bearer $OUTBOXER_API_KEY"

Kill switch#

POST/v1/agents/{id}/kill

Revoke all keys and archive all open drafts of the agent.

Auth: API key (Authorization: Bearer obx_live_…).

Path parameters

Name Required Description
id yes Agent id (agt_…).

Headers

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

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

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

Everything an agent needs in one call#

GET/v1/workspaces/{ws}/context

Design system in prompt format, channels with capabilities, queue slots for 14 days, upcoming schedule, recent top-performing posts, campaigns. Read this before drafting.

Auth: API key (Authorization: Bearer obx_live_…). Requires scope context:read with workspace role owner / admin / editor / contributor / viewer / agent.

Path parameters

Name Required Description
ws yes Workspace id (ws_…) or slug

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

curl -X GET "https://api.outboxer.dev/v1/workspaces/acme/context" \
  -H "Authorization: Bearer $OUTBOXER_API_KEY"