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"const res = await fetch('https://api.outboxer.dev/v1/api-keys', {
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/api-keys",
headers={"Authorization": f"Bearer {os.environ['OUTBOXER_API_KEY']}"},
)
res.raise_for_status() # problem details: res.json()["code"]
data = res.json()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"
]
}'const res = await fetch('https://api.outboxer.dev/v1/api-keys', {
method: 'POST',
headers: {
Authorization: `Bearer ${process.env.OUTBOXER_API_KEY}`,
'Idempotency-Key': crypto.randomUUID(),
'Content-Type': 'application/json',
},
body: JSON.stringify({
"name": "example",
"scopes": [
"posts: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/api-keys",
headers={"Authorization": f"Bearer {os.environ['OUTBOXER_API_KEY']}", "Idempotency-Key": str(uuid.uuid4())},
json={
"name": "example",
"scopes": [
"posts:read"
]
},
)
res.raise_for_status() # problem details: res.json()["code"]
data = res.json()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"const res = await fetch('https://api.outboxer.dev/v1/api-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/api-keys/key_01j9zq3k8m5v2b7x4c6n1p0r9s",
headers={"Authorization": f"Bearer {os.environ['OUTBOXER_API_KEY']}"},
)
res.raise_for_status() # problem details: res.json()["code"]
data = res.json()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"const res = await fetch('https://api.outboxer.dev/v1/me/export', {
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/me/export",
headers={"Authorization": f"Bearer {os.environ['OUTBOXER_API_KEY']}"},
)
res.raise_for_status() # problem details: res.json()["code"]
data = res.json()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"const res = await fetch('https://api.outboxer.dev/v1/me', {
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/me",
headers={"Authorization": f"Bearer {os.environ['OUTBOXER_API_KEY']}"},
)
res.raise_for_status() # problem details: res.json()["code"]
data = res.json()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": {}
}'const res = await fetch('https://api.outboxer.dev/v1/me', {
method: 'PATCH',
headers: {
Authorization: `Bearer ${process.env.OUTBOXER_API_KEY}`,
'Content-Type': 'application/json',
},
body: JSON.stringify({
"name": "example",
"timezone": "example",
"locale": "example",
"avatar_url": "example",
"preferences": {}
}),
});
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/me",
headers={"Authorization": f"Bearer {os.environ['OUTBOXER_API_KEY']}"},
json={
"name": "example",
"timezone": "example",
"locale": "example",
"avatar_url": "example",
"preferences": {}
},
)
res.raise_for_status() # problem details: res.json()["code"]
data = res.json()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"const res = await fetch('https://api.outboxer.dev/v1/organization', {
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/organization",
headers={"Authorization": f"Bearer {os.environ['OUTBOXER_API_KEY']}"},
)
res.raise_for_status() # problem details: res.json()["code"]
data = res.json()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"
}'const res = await fetch('https://api.outboxer.dev/v1/organization', {
method: 'PATCH',
headers: {
Authorization: `Bearer ${process.env.OUTBOXER_API_KEY}`,
'Content-Type': 'application/json',
},
body: JSON.stringify({
"name": "example"
}),
});
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/organization",
headers={"Authorization": f"Bearer {os.environ['OUTBOXER_API_KEY']}"},
json={
"name": "example"
},
)
res.raise_for_status() # problem details: res.json()["code"]
data = res.json()