API reference
Every operation of the Doorman Inbox API, grouped by tag, with its parameters, schemas, errors and samples.
On this page
How to read it
The API answers on https://api.doorman.fyi. Authenticated /v1 routes require Authorization: Bearer <credential>: an API key, a console session or a scoped app access token. REST errors use { "error": "<code>", "message": "<sentence>" }; OAuth protocol errors use their own { "error": "<code>" } schema. See the catalogue.
Each operation below names its access level: any (any key or a session), account (an account key or a session), key (a key only), session (the console only) or public (no credential). The samples read the key from DOORMAN_API_KEY and use the example identifiers of the contract.
The OAuth note separately states whether an app token is accepted and lists every required permission. Existing API-key access levels do not grant apps those capabilities. Public protocol samples never attach the example API key.
The OpenID Connect operations are the protocol of Sign in with Doorman. They answer on the issuer, https://id.doorman.example, a host of its own, and their samples call that origin. Their access is public, or sign_in for userinfo, which is read with the access token of a code exchange. Nothing they issue is a credential for this API.
The Organizations note states what a member's console session needs when it acts in an organization: the permissions listed, or none. API keys and app tokens are never held to them. The document publishes the same list on every operation, and the vocabulary once, under x-doorman-permissions.
This reference is generated from the same contract the API serves as https://api.doorman.fyi/openapi.json, an OpenAPI 3.1 document. The schemas page lists every object the operations exchange.
System
Liveness and this document. No credential.
| Method | Path | Operation | Access |
|---|---|---|---|
GET | /health | Health check | public |
GET | /openapi.json | The OpenAPI document | public |
POST | /mcp | Model Context Protocol endpoint | key |
Account
The account, its plan and usage, and account-wide counts.
| Method | Path | Operation | Access |
|---|---|---|---|
GET | /v1/me | Who am I | any |
GET | /v1/overview | Overview | account |
GET | /v1/metrics | Metrics | any |
POST | /v1/organization/adopt | Move a personal account into the organization | session |
POST | /v1/billing/checkout | Start a checkout | session |
POST | /v1/billing/seats | Change the organization's seats | session |
POST | /v1/billing/portal | Open the billing portal | session |
POST | /v1/billing/sync | Read billing again | session |
GET | /v1/push | Read notification settings | session |
POST | /v1/push/subscriptions | Switch notifications on for a browser | session |
DELETE | /v1/push/subscriptions/{subscriptionId} | Switch notifications off for a browser | session |
GET | /v1/members | List the organization's members | session |
PATCH | /v1/members/{userId} | Change a member's role | session |
GET | /v1/invitations | List the organization's invitations | session |
POST | /v1/invitations | Invite someone to the organization | session |
PATCH | /v1/invitations/{invitationId} | Record that an invitation was sent | session |
DELETE | /v1/invitations/{invitationId} | Take an invitation back | session |
Inboxes
Addresses on the inbox domain: issue, read, rename and delete them.
| Method | Path | Operation | Access |
|---|---|---|---|
GET | /v1/inboxes | List inboxes | any |
POST | /v1/inboxes | Issue an inbox | account |
GET | /v1/inboxes/{inboxId} | Read an inbox | any |
PATCH | /v1/inboxes/{inboxId} | Update an inbox | account |
DELETE | /v1/inboxes/{inboxId} | Delete an inbox | account |
GET | /v1/inboxes/{inboxId}/rules | List inbound rules | account |
POST | /v1/inboxes/{inboxId}/rules | Create an inbound rule | account |
GET | /v1/inboxes/{inboxId}/rules/{ruleId} | Read an inbound rule | account |
PATCH | /v1/inboxes/{inboxId}/rules/{ruleId} | Update an inbound rule | account |
DELETE | /v1/inboxes/{inboxId}/rules/{ruleId} | Delete an inbound rule | account |
GET | /v1/inboxes/{inboxId}/rules/{ruleId}/runs | List rule executions | account |
Domains
Account-owned mail domains, DNS records, verification and setup.
| Method | Path | Operation | Access |
|---|---|---|---|
GET | /v1/domains | List custom domains | account |
POST | /v1/domains | Add a custom domain | account |
GET | /v1/domains/{domainId} | Read a custom domain | account |
POST | /v1/domains/{domainId}/verify | Check the domain's DNS | account |
POST | /v1/domains/{domainId}/connect-session | Start automatic DNS setup | session |
DELETE | /v1/domains/{domainId} | Remove a custom domain | account |
API keys
Credentials for agents: account-wide keys from the console, inbox-scoped keys from the API.
| Method | Path | Operation | Access |
|---|---|---|---|
GET | /v1/api-keys | List account keys | session |
POST | /v1/api-keys | Create an account key | session |
GET | /v1/api-keys/{keyId} | Read an account key | session |
DELETE | /v1/api-keys/{keyId} | Revoke an account key | session |
POST | /v1/inboxes/{inboxId}/api-keys | Create an inbox key | account |
GET | /v1/inboxes/{inboxId}/api-keys | List an inbox's keys | account |
GET | /v1/inboxes/{inboxId}/api-keys/{keyId} | Read an inbox key | account |
DELETE | /v1/inboxes/{inboxId}/api-keys/{keyId} | Revoke an inbox key | account |
Threads, messages, raw and HTML bodies, attachments and their extracted text.
| Method | Path | Operation | Access |
|---|---|---|---|
GET | /v1/inboxes/{inboxId}/threads | List threads | any |
GET | /v1/inboxes/{inboxId}/threads/by-seen | List threads a person has or has not seen | session |
GET | /v1/threads/{threadId} | Read a thread | any |
PATCH | /v1/threads/{threadId} | Update a thread | any |
DELETE | /v1/threads/{threadId} | Trash a thread | any |
POST | /v1/threads/{threadId}/restore | Restore a trashed thread | session |
PUT | /v1/threads/{threadId}/seen | Mark a thread seen | session |
GET | /v1/threads/{threadId}/messages | Read a thread's messages | any |
GET | /v1/inboxes/{inboxId}/messages | List messages | any |
GET | /v1/messages/{messageId} | Read a message | any |
GET | /v1/messages/{messageId}/raw | Download the original message | any |
GET | /v1/messages/{messageId}/html | Read the HTML body | any |
GET | /v1/attachments/{messageId}/{filename} | Download an attachment | any |
GET | /v1/attachments/{messageId}/{filename}/text | Read an attachment's text | any |
Passport
The outside services an inbox's address is signed up for, the verification codes and sign-in links they send, and how the address signs in to the ones that accept Sign in with Doorman.
| Method | Path | Operation | Access |
|---|---|---|---|
GET | /v1/passport | Read passport settings | account |
PATCH | /v1/passport | Update passport settings | account |
GET | /v1/services | List services | any |
GET | /v1/services/{serviceId} | Read a service | any |
POST | /v1/inboxes/{inboxId}/services | Declare or add a service | any |
PATCH | /v1/services/{serviceId} | Update a service | any |
DELETE | /v1/services/{serviceId} | Delete a service | any |
GET | /v1/inboxes/{inboxId}/verifications | Read verification codes | any |
POST | /v1/inboxes/{inboxId}/sign-ins | Start a sign-in | any |
Security
Risk assessment and sender trust: the policy that warns, holds and guards sending, the senders an inbox knows, held mail and the audit log.
| Method | Path | Operation | Access |
|---|---|---|---|
GET | /v1/security | Read the security policy | account |
PATCH | /v1/security | Change the security policy | account |
GET | /v1/inboxes/{inboxId}/security | Read an inbox's security policy | account |
PATCH | /v1/inboxes/{inboxId}/security | Give an inbox its own security policy | account |
DELETE | /v1/inboxes/{inboxId}/security | Return an inbox to the account's security policy | account |
GET | /v1/inboxes/{inboxId}/senders | List an inbox's senders | account |
GET | /v1/sender-rules | List sender rules | account |
POST | /v1/sender-rules | Trust or block a sender | account |
DELETE | /v1/sender-rules/{senderRuleId} | Remove a sender rule | account |
GET | /v1/inboxes/{inboxId}/held | List held messages | any |
POST | /v1/messages/{messageId}/release | Release a held message | account |
POST | /v1/messages/{messageId}/discard | Discard a held message | account |
POST | /v1/messages/{messageId}/feedback | Mark a message safe or unsafe | account |
GET | /v1/security/audit | Read the security audit log | account |
POST | /v1/security/preview | Preview what a policy does to a message | account |
GET | /v1/inboxes/{inboxId}/held-sends | List held sends | any |
GET | /v1/held-sends/{heldSendId} | Read a held send | any |
POST | /v1/held-sends/{heldSendId}/approve | Send a held send | account |
POST | /v1/held-sends/{heldSendId}/discard | Discard a held send | account |
Healthcare
The business associate agreement an eligible team signs, and the guardrails it unlocks: protected health information replaced in everything an agent or a system is given, held or refused on the way out, and custom guardrails. Every operation answers 404 until the deployment switches the capability on.
| Method | Path | Operation | Access |
|---|---|---|---|
GET | /v1/baa | Read the agreement's standing | account |
GET | /v1/baa/document | Read the agreement | account |
POST | /v1/baa/sign | Sign the agreement | session |
POST | /v1/baa/terminate | End the agreement | session |
GET | /v1/guardrails | Read the guardrails | account |
PATCH | /v1/guardrails | Change the guardrails | account |
GET | /v1/inboxes/{inboxId}/guardrails | Read an inbox's guardrails | account |
PATCH | /v1/inboxes/{inboxId}/guardrails | Give an inbox its own guardrails | account |
DELETE | /v1/inboxes/{inboxId}/guardrails | Return an inbox to the account's guardrails | account |
GET | /v1/guardrails/rules | List custom guardrails | account |
POST | /v1/guardrails/rules | Write a custom guardrail | account |
PATCH | /v1/guardrails/rules/{guardrailId} | Change a custom guardrail | account |
DELETE | /v1/guardrails/rules/{guardrailId} | Remove a custom guardrail | account |
POST | /v1/guardrails/preview | Preview what the guardrails do to a text | account |
GET | /v1/messages/{messageId}/original | Read a message as it arrived | session |
Sending
New messages and replies from an inbox, with idempotent retries.
| Method | Path | Operation | Access |
|---|---|---|---|
POST | /v1/inboxes/{inboxId}/send | Send a message or reply | any |
POST | /v1/inboxes/{inboxId}/drafts | Write a draft for the owner to send | key |
DELETE | /v1/drafts/{heldSendId} | Take a draft back | key |
Webhooks
The inbox webhook, account endpoints, their signed deliveries and the delivery log.
| Method | Path | Operation | Access |
|---|---|---|---|
GET | /v1/inboxes/{inboxId}/webhook | Read the inbox webhook | account |
PUT | /v1/inboxes/{inboxId}/webhook | Set the inbox webhook | account |
POST | /v1/inboxes/{inboxId}/webhook/rotate-secret | Rotate the inbox webhook's secret | account |
DELETE | /v1/inboxes/{inboxId}/webhook | Remove the inbox webhook | account |
GET | /v1/inboxes/{inboxId}/webhook/deliveries | List the inbox webhook's deliveries | account |
GET | /v1/webhooks | List endpoints | account |
POST | /v1/webhooks | Create an endpoint | account |
GET | /v1/webhooks/{endpointId} | Read an endpoint | account |
PATCH | /v1/webhooks/{endpointId} | Change an endpoint | account |
DELETE | /v1/webhooks/{endpointId} | Delete an endpoint | account |
POST | /v1/webhooks/{endpointId}/rotate-secret | Rotate an endpoint's secret | account |
POST | /v1/webhooks/{endpointId}/test | Send a test delivery | account |
GET | /v1/webhooks/{endpointId}/deliveries | List an endpoint's deliveries | account |
POST | /v1/deliveries/{deliveryId}/retry | Retry a delivery | account |
Events
The account's event log: page back through it, or poll it forward.
| Method | Path | Operation | Access |
|---|---|---|---|
GET | /v1/events | List or poll events | any |
GET | /v1/events/{eventId} | Read an event | any |
Stream
Events pushed over a WebSocket, with replay.
| Method | Path | Operation | Access |
|---|---|---|---|
GET | /v1/ws | Open the event stream | key |
Assistant
Ask Doorman, the console's assistant. Console sessions only.
| Method | Path | Operation | Access |
|---|---|---|---|
POST | /v1/assistant/chat | Ask Doorman | session |
Apps
Developer clients, installed apps and explicit session-bound consent.
| Method | Path | Operation | Access |
|---|---|---|---|
GET | /v1/apps | List developer apps | session |
POST | /v1/apps | Register an app | session |
GET | /v1/apps/{appId} | Read an app | session |
PATCH | /v1/apps/{appId} | Update an app | session |
DELETE | /v1/apps/{appId} | Delete an app | session |
POST | /v1/apps/{appId}/rotate-secret | Rotate a client secret | session |
GET | /v1/app-installs | List installed apps | session |
DELETE | /v1/app-installs/{installationId} | Revoke an installation | session |
GET | /v1/oauth/requests/{requestId} | Read a consent request | session |
POST | /v1/oauth/requests/{requestId} | Decide a consent request | session |
OAuth
Authorization, token exchange and discovery for scoped third-party apps.
| Method | Path | Operation | Access |
|---|---|---|---|
GET | /.well-known/oauth-authorization-server | Discover authorization | public |
GET | /.well-known/oauth-protected-resource | Discover the API resource | public |
GET | /.well-known/oauth-protected-resource/mcp | Discover the MCP resource | public |
GET | /oauth/authorize | Begin app authorization | public |
POST | /oauth/token | Exchange or refresh tokens | public |
POST | /oauth/register | Register a public client dynamically | public |
Sign in with Doorman
The relying parties a developer registers, the sign-ins that wait for the owner's decision, and what the web app does for a browser on the way. Every operation answers 404 until the deployment switches sign-in on.
| Method | Path | Operation | Access |
|---|---|---|---|
GET | /v1/sign-in/clients | List relying parties | session |
POST | /v1/sign-in/clients | Register a relying party | session |
GET | /v1/sign-in/clients/{clientId} | Read a relying party | session |
PATCH | /v1/sign-in/clients/{clientId} | Update a relying party | session |
DELETE | /v1/sign-in/clients/{clientId} | Delete a relying party | session |
POST | /v1/sign-in/clients/{clientId}/rotate-secret | Rotate a relying party's secret | session |
POST | /v1/sign-in/clients/{clientId}/verify | Verify a relying party's host | session |
GET | /v1/sign-in/requests/{requestId} | Read a sign-in that waits for the owner | session |
POST | /v1/sign-in/requests/{requestId} | Decide a sign-in | session |
POST | /sign-in/links/read | Read a sign-in link | public |
POST | /sign-in/links/open | Open a sign-in link | public |
POST | /sign-in/requests/resume | Resume a sign-in | public |
OpenID Connect
The protocol a relying party speaks to sign an agent in: discovery, keys, authorization, the code exchange and userinfo. Served on the issuer's own host, to any OpenID Connect client.
| Method | Path | Operation | Access |
|---|---|---|---|
GET | /.well-known/openid-configuration | Discover the provider | public |
GET | /sign-in/jwks.json | Read the signing keys | public |
GET | /sign-in/authorize | Begin a sign-in | public |
POST | /sign-in/token | Exchange a code | public |
GET | /sign-in/userinfo | Read the signed-in address | sign_in |
POST | /sign-in/userinfo | Read the signed-in address with POST | sign_in |

