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"

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"
}'

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"

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"

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)"

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)"

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)"

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"

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
}'