API reference
MCP
MCP client connections and their organization approval.
MCP client connections and their organization approval.
| Method | Endpoint | Summary |
|---|---|---|
| GET | /v1/mcp/connections |
List MCP connections |
| POST | /v1/mcp/connections |
Request an MCP connection |
| GET | /v1/mcp/connections/{id} |
Get an MCP connection |
| DELETE | /v1/mcp/connections/{id} |
Withdraw an MCP connection request |
| POST | /v1/mcp/connections/{id}/approve |
Approve an MCP connection |
| POST | /v1/mcp/connections/{id}/reject |
Reject an MCP connection |
| POST | /v1/mcp/connections/{id}/revoke |
Revoke an approved MCP connection |
| GET | /v1/mcp/settings |
MCP settings |
| PATCH | /v1/mcp/settings |
Change MCP settings |
List MCP connections#
GET/v1/mcp/connections
Organization owners/admins see every connection (pending first) and can_approve: true; others see their own requests. Also returns require_approval and the pending count. ?status=pending,approved,rejected,revoked.
Auth: API key (Authorization: Bearer obx_live_…). Any API key: organization owners/admins see every connection, others only their own.
Query parameters
| Name | Required | Description |
|---|---|---|
status |
no |
Response 200 — List. Errors: RFC 9457 Problem with a stable code (error codes).
curl -X GET "https://api.outboxer.dev/v1/mcp/connections?status=pending" \
-H "Authorization: Bearer $OUTBOXER_API_KEY"const res = await fetch('https://api.outboxer.dev/v1/mcp/connections?status=pending', {
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/mcp/connections?status=pending",
headers={"Authorization": f"Bearer {os.environ['OUTBOXER_API_KEY']}"},
)
res.raise_for_status() # problem details: res.json()["code"]
data = res.json()Request an MCP connection#
POST/v1/mcp/connections
MCP clients (Claude Desktop, Claude Code, …) need the organization's approval. {name, client?} creates a new key for you — or with agent_id, for an agent whose workspaces you administer — returned once together with setup snippets; it stays unusable until an organization owner or admin approves (owners/admins are approved immediately). {api_key_id} asks approval for an existing key instead. Through the MCP server, an unapproved key gets 403 mcp_approval_pending (first use files the request automatically).
Auth: API key (Authorization: Bearer obx_live_…). Any person in the organization (not agents). With agent_id: workspace owner/admin of every workspace the agent belongs to. Organization owners/admins are approved immediately; everyone else waits for approval.
Headers
| Name | Required | Description |
|---|---|---|
Idempotency-Key |
no | Replays within 24 h return the original response. |
Request body
| Field | Type | Description |
|---|---|---|
name |
string | |
client |
string | |
agent_id |
string | |
api_key_id |
string | |
scopes |
array | |
workspace_ids |
array | |
mode |
string |
Response 201 — Object. Errors: RFC 9457 Problem with a stable code (error codes).
curl -X POST "https://api.outboxer.dev/v1/mcp/connections" \
-H "Authorization: Bearer $OUTBOXER_API_KEY" \
-H "Idempotency-Key: $(uuidgen)" \
-H "Content-Type: application/json" \
-d '{
"name": "My laptop",
"client": "claude_desktop"
}'const res = await fetch('https://api.outboxer.dev/v1/mcp/connections', {
method: 'POST',
headers: {
Authorization: `Bearer ${process.env.OUTBOXER_API_KEY}`,
'Idempotency-Key': crypto.randomUUID(),
'Content-Type': 'application/json',
},
body: JSON.stringify({
"name": "My laptop",
"client": "claude_desktop"
}),
});
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/mcp/connections",
headers={"Authorization": f"Bearer {os.environ['OUTBOXER_API_KEY']}", "Idempotency-Key": str(uuid.uuid4())},
json={
"name": "My laptop",
"client": "claude_desktop"
},
)
res.raise_for_status() # problem details: res.json()["code"]
data = res.json()Get an MCP connection#
GET/v1/mcp/connections/{id}
Auth: API key (Authorization: Bearer obx_live_…). The connection's requester or owner, or an organization owner/admin.
Path parameters
| Name | Required | Description |
|---|---|---|
id |
yes | MCP connection id (mcp_…). |
Response 200 — Object. Errors: RFC 9457 Problem with a stable code (error codes).
curl -X GET "https://api.outboxer.dev/v1/mcp/connections/mcp_01j9zq3k8m5v2b7x4c6n1p0r9s" \
-H "Authorization: Bearer $OUTBOXER_API_KEY"const res = await fetch('https://api.outboxer.dev/v1/mcp/connections/mcp_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/mcp/connections/mcp_01j9zq3k8m5v2b7x4c6n1p0r9s",
headers={"Authorization": f"Bearer {os.environ['OUTBOXER_API_KEY']}"},
)
res.raise_for_status() # problem details: res.json()["code"]
data = res.json()Withdraw an MCP connection request#
DELETE/v1/mcp/connections/{id}
The requester withdraws a pending or rejected request (admins any); a key created for it is revoked.
Auth: API key (Authorization: Bearer obx_live_…). The requester (pending or rejected requests), or an organization owner/admin.
Path parameters
| Name | Required | Description |
|---|---|---|
id |
yes | MCP connection id (mcp_…). |
Response 200 — Object. Errors: RFC 9457 Problem with a stable code (error codes).
curl -X DELETE "https://api.outboxer.dev/v1/mcp/connections/mcp_01j9zq3k8m5v2b7x4c6n1p0r9s" \
-H "Authorization: Bearer $OUTBOXER_API_KEY"const res = await fetch('https://api.outboxer.dev/v1/mcp/connections/mcp_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/mcp/connections/mcp_01j9zq3k8m5v2b7x4c6n1p0r9s",
headers={"Authorization": f"Bearer {os.environ['OUTBOXER_API_KEY']}"},
)
res.raise_for_status() # problem details: res.json()["code"]
data = res.json()Approve an MCP connection#
POST/v1/mcp/connections/{id}/approve
Organization owners/admins. Activates a key created for the connection. Body {note?}.
Auth: API key (Authorization: Bearer obx_live_…). Organization owners and admins (people, not agents).
Path parameters
| Name | Required | Description |
|---|---|---|
id |
yes | MCP connection id (mcp_…). |
Headers
| Name | Required | Description |
|---|---|---|
Idempotency-Key |
no | Replays within 24 h return the original response. |
Request body
| Field | Type | Description |
|---|---|---|
note |
string |
Response 200 — Object. Errors: RFC 9457 Problem with a stable code (error codes).
curl -X POST "https://api.outboxer.dev/v1/mcp/connections/mcp_01j9zq3k8m5v2b7x4c6n1p0r9s/approve" \
-H "Authorization: Bearer $OUTBOXER_API_KEY" \
-H "Idempotency-Key: $(uuidgen)"const res = await fetch('https://api.outboxer.dev/v1/mcp/connections/mcp_01j9zq3k8m5v2b7x4c6n1p0r9s/approve', {
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/mcp/connections/mcp_01j9zq3k8m5v2b7x4c6n1p0r9s/approve",
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()Reject an MCP connection#
POST/v1/mcp/connections/{id}/reject
Organization owners/admins. Body {note?} is shown to the requester.
Auth: API key (Authorization: Bearer obx_live_…). Organization owners and admins (people, not agents).
Path parameters
| Name | Required | Description |
|---|---|---|
id |
yes | MCP connection id (mcp_…). |
Headers
| Name | Required | Description |
|---|---|---|
Idempotency-Key |
no | Replays within 24 h return the original response. |
Request body
| Field | Type | Description |
|---|---|---|
note |
string |
Response 200 — Object. Errors: RFC 9457 Problem with a stable code (error codes).
curl -X POST "https://api.outboxer.dev/v1/mcp/connections/mcp_01j9zq3k8m5v2b7x4c6n1p0r9s/reject" \
-H "Authorization: Bearer $OUTBOXER_API_KEY" \
-H "Idempotency-Key: $(uuidgen)"const res = await fetch('https://api.outboxer.dev/v1/mcp/connections/mcp_01j9zq3k8m5v2b7x4c6n1p0r9s/reject', {
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/mcp/connections/mcp_01j9zq3k8m5v2b7x4c6n1p0r9s/reject",
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()Revoke an approved MCP connection#
POST/v1/mcp/connections/{id}/revoke
Organization owners/admins. MCP calls with that key stop working; a key created for the connection is revoked.
Auth: API key (Authorization: Bearer obx_live_…). Organization owners and admins (people, not agents).
Path parameters
| Name | Required | Description |
|---|---|---|
id |
yes | MCP connection id (mcp_…). |
Headers
| Name | Required | Description |
|---|---|---|
Idempotency-Key |
no | Replays within 24 h return the original response. |
Request body
| Field | Type | Description |
|---|---|---|
note |
string |
Response 200 — Object. Errors: RFC 9457 Problem with a stable code (error codes).
curl -X POST "https://api.outboxer.dev/v1/mcp/connections/mcp_01j9zq3k8m5v2b7x4c6n1p0r9s/revoke" \
-H "Authorization: Bearer $OUTBOXER_API_KEY" \
-H "Idempotency-Key: $(uuidgen)"const res = await fetch('https://api.outboxer.dev/v1/mcp/connections/mcp_01j9zq3k8m5v2b7x4c6n1p0r9s/revoke', {
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/mcp/connections/mcp_01j9zq3k8m5v2b7x4c6n1p0r9s/revoke",
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()MCP settings#
GET/v1/mcp/settings
require_approval for the organization and the MCP server URL.
Auth: API key (Authorization: Bearer obx_live_…). Any API key; changing it needs an organization owner/admin.
Response 200 — Object. Errors: RFC 9457 Problem with a stable code (error codes).
curl -X GET "https://api.outboxer.dev/v1/mcp/settings" \
-H "Authorization: Bearer $OUTBOXER_API_KEY"const res = await fetch('https://api.outboxer.dev/v1/mcp/settings', {
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/mcp/settings",
headers={"Authorization": f"Bearer {os.environ['OUTBOXER_API_KEY']}"},
)
res.raise_for_status() # problem details: res.json()["code"]
data = res.json()Change MCP settings#
PATCH/v1/mcp/settings
Organization owners/admins. {require_approval: bool}; turning it off approves pending connections on their next use.
Auth: API key (Authorization: Bearer obx_live_…). Organization owners and admins (people, not agents).
Request body
| Field | Type | Description |
|---|---|---|
require_approval |
boolean |
Response 200 — Object. Errors: RFC 9457 Problem with a stable code (error codes).
curl -X PATCH "https://api.outboxer.dev/v1/mcp/settings" \
-H "Authorization: Bearer $OUTBOXER_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"require_approval": true
}'const res = await fetch('https://api.outboxer.dev/v1/mcp/settings', {
method: 'PATCH',
headers: {
Authorization: `Bearer ${process.env.OUTBOXER_API_KEY}`,
'Content-Type': 'application/json',
},
body: JSON.stringify({
"require_approval": true
}),
});
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/mcp/settings",
headers={"Authorization": f"Bearer {os.environ['OUTBOXER_API_KEY']}"},
json={
"require_approval": True
},
)
res.raise_for_status() # problem details: res.json()["code"]
data = res.json()