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"const res = await fetch('https://api.outboxer.dev/v1/agents', {
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/agents",
headers={"Authorization": f"Bearer {os.environ['OUTBOXER_API_KEY']}"},
)
res.raise_for_status() # problem details: res.json()["code"]
data = res.json()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"
]
}'const res = await fetch('https://api.outboxer.dev/v1/agents', {
method: 'POST',
headers: {
Authorization: `Bearer ${process.env.OUTBOXER_API_KEY}`,
'Idempotency-Key': crypto.randomUUID(),
'Content-Type': 'application/json',
},
body: JSON.stringify({
"name": "Copy agent",
"description": "Drafts weekly social copy",
"workspace_ids": [
"acme"
]
}),
});
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/agents",
headers={"Authorization": f"Bearer {os.environ['OUTBOXER_API_KEY']}", "Idempotency-Key": str(uuid.uuid4())},
json={
"name": "Copy agent",
"description": "Drafts weekly social copy",
"workspace_ids": [
"acme"
]
},
)
res.raise_for_status() # problem details: res.json()["code"]
data = res.json()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"const res = await fetch('https://api.outboxer.dev/v1/agents/agt_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/agents/agt_01j9zq3k8m5v2b7x4c6n1p0r9s",
headers={"Authorization": f"Bearer {os.environ['OUTBOXER_API_KEY']}"},
)
res.raise_for_status() # problem details: res.json()["code"]
data = res.json()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"const res = await fetch('https://api.outboxer.dev/v1/agents/agt_01j9zq3k8m5v2b7x4c6n1p0r9s/scorecard?from=2026-10-20', {
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/agents/agt_01j9zq3k8m5v2b7x4c6n1p0r9s/scorecard?from=2026-10-20",
headers={"Authorization": f"Bearer {os.environ['OUTBOXER_API_KEY']}"},
)
res.raise_for_status() # problem details: res.json()["code"]
data = res.json()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"
]
}'const res = await fetch('https://api.outboxer.dev/v1/agents/agt_01j9zq3k8m5v2b7x4c6n1p0r9s', {
method: 'PATCH',
headers: {
Authorization: `Bearer ${process.env.OUTBOXER_API_KEY}`,
'Content-Type': 'application/json',
},
body: JSON.stringify({
"name": "example",
"status": "example",
"quotas": {},
"workspace_ids": [
"acme"
]
}),
});
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/agents/agt_01j9zq3k8m5v2b7x4c6n1p0r9s",
headers={"Authorization": f"Bearer {os.environ['OUTBOXER_API_KEY']}"},
json={
"name": "example",
"status": "example",
"quotas": {},
"workspace_ids": [
"acme"
]
},
)
res.raise_for_status() # problem details: res.json()["code"]
data = res.json()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"
]
}'const res = await fetch('https://api.outboxer.dev/v1/agents/agt_01j9zq3k8m5v2b7x4c6n1p0r9s/keys', {
method: 'POST',
headers: {
Authorization: `Bearer ${process.env.OUTBOXER_API_KEY}`,
'Idempotency-Key': crypto.randomUUID(),
'Content-Type': 'application/json',
},
body: JSON.stringify({
"name": "Production",
"scopes": [
"context:read",
"posts:read",
"drafts:write",
"media:write",
"posts:submit",
"campaigns:write",
"billing:read"
]
}),
});
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/agents/agt_01j9zq3k8m5v2b7x4c6n1p0r9s/keys",
headers={"Authorization": f"Bearer {os.environ['OUTBOXER_API_KEY']}", "Idempotency-Key": str(uuid.uuid4())},
json={
"name": "Production",
"scopes": [
"context:read",
"posts:read",
"drafts:write",
"media:write",
"posts:submit",
"campaigns:write",
"billing:read"
]
},
)
res.raise_for_status() # problem details: res.json()["code"]
data = res.json()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"const res = await fetch('https://api.outboxer.dev/v1/agents/agt_01j9zq3k8m5v2b7x4c6n1p0r9s/keys/key_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/agents/agt_01j9zq3k8m5v2b7x4c6n1p0r9s/keys/key_01j9zq3k8m5v2b7x4c6n1p0r9s",
headers={"Authorization": f"Bearer {os.environ['OUTBOXER_API_KEY']}"},
)
res.raise_for_status() # problem details: res.json()["code"]
data = res.json()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)"const res = await fetch('https://api.outboxer.dev/v1/agents/agt_01j9zq3k8m5v2b7x4c6n1p0r9s/kill', {
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/agents/agt_01j9zq3k8m5v2b7x4c6n1p0r9s/kill",
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()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"const res = await fetch('https://api.outboxer.dev/v1/workspaces/acme/context', {
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/context",
headers={"Authorization": f"Bearer {os.environ['OUTBOXER_API_KEY']}"},
)
res.raise_for_status() # problem details: res.json()["code"]
data = res.json()