API reference

Identity

Who the key belongs to, the organization, profile and data export. Call GET /v1/me first — it lists every workspace the key can act in and the abilities it holds there.

Who the key belongs to, the organization, profile and data export. Call GET /v1/me first: it lists every workspace the key can act in and the abilities it holds there.

Method Endpoint Summary
GET /v1/api-keys Your API keys
POST /v1/api-keys Create a personal API key
DELETE /v1/api-keys/{id} Revoke a personal API key
GET /v1/me/export Export your data
GET /v1/me Who am I
PATCH /v1/me Update your profile
GET /v1/organization Your organization
PATCH /v1/organization Update your organization

Your API keys#

GET/v1/api-keys

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/api-keys" \
  -H "Authorization: Bearer $OUTBOXER_API_KEY"

Create a personal API key#

POST/v1/api-keys

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

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/api-keys" \
  -H "Authorization: Bearer $OUTBOXER_API_KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{
  "name": "example",
  "scopes": [
    "posts:read"
  ]
}'

Revoke a personal API key#

DELETE/v1/api-keys/{id}

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

Path parameters

Name Required Description
id yes API key id (key_…).

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

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

Export your data#

GET/v1/me/export

Everything stored about the calling user (GDPR/CCPA).

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

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

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

Who am I#

GET/v1/me

The principal (user or agent), its key, scopes and accessible workspaces with role and abilities. Call this first.

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

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

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

Update your profile#

PATCH/v1/me

Users only: name, timezone, locale, avatar_url, preferences {theme: light | dark | system, interface: simple | detailed}. Preferences merge; omitted keys keep their value. Email is the sign-in identity and cannot be changed here.

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

Request body

Field Type Description
name string
timezone string
locale string
avatar_url string
preferences object

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

curl -X PATCH "https://api.outboxer.dev/v1/me" \
  -H "Authorization: Bearer $OUTBOXER_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "name": "example",
  "timezone": "example",
  "locale": "example",
  "avatar_url": "example",
  "preferences": {}
}'

Your organization#

GET/v1/organization

Name, slug and counts of active workspaces and users.

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

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

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

Update your organization#

PATCH/v1/organization

Org owners/admins only (needs workspace:admin). Renames the organization.

Auth: API key (Authorization: Bearer obx_live_…). Organization owners and admins (people, not agents).

Request body

Field Type Description
name string

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

curl -X PATCH "https://api.outboxer.dev/v1/organization" \
  -H "Authorization: Bearer $OUTBOXER_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "name": "example"
}'