API reference

Every operation of the Doorman Inbox API, grouped by tag, with its parameters, schemas, errors and samples.

On this page
  1. How to read it
  2. System
  3. Account
  4. Inboxes
  5. Domains
  6. API keys
  7. Mail
  8. Passport
  9. Security
  10. Healthcare
  11. Sending
  12. Webhooks
  13. Events
  14. Stream
  15. Assistant
  16. Apps
  17. OAuth
  18. Sign in with Doorman
  19. OpenID Connect

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.

MethodPathOperationAccess
GET/healthHealth checkpublic
GET/openapi.jsonThe OpenAPI documentpublic
POST/mcpModel Context Protocol endpointkey

Account

The account, its plan and usage, and account-wide counts.

MethodPathOperationAccess
GET/v1/meWho am Iany
GET/v1/overviewOverviewaccount
GET/v1/metricsMetricsany
POST/v1/organization/adoptMove a personal account into the organizationsession
POST/v1/billing/checkoutStart a checkoutsession
POST/v1/billing/seatsChange the organization's seatssession
POST/v1/billing/portalOpen the billing portalsession
POST/v1/billing/syncRead billing againsession
GET/v1/pushRead notification settingssession
POST/v1/push/subscriptionsSwitch notifications on for a browsersession
DELETE/v1/push/subscriptions/{subscriptionId}Switch notifications off for a browsersession
GET/v1/membersList the organization's memberssession
PATCH/v1/members/{userId}Change a member's rolesession
GET/v1/invitationsList the organization's invitationssession
POST/v1/invitationsInvite someone to the organizationsession
PATCH/v1/invitations/{invitationId}Record that an invitation was sentsession
DELETE/v1/invitations/{invitationId}Take an invitation backsession

Inboxes

Addresses on the inbox domain: issue, read, rename and delete them.

MethodPathOperationAccess
GET/v1/inboxesList inboxesany
POST/v1/inboxesIssue an inboxaccount
GET/v1/inboxes/{inboxId}Read an inboxany
PATCH/v1/inboxes/{inboxId}Update an inboxaccount
DELETE/v1/inboxes/{inboxId}Delete an inboxaccount
GET/v1/inboxes/{inboxId}/rulesList inbound rulesaccount
POST/v1/inboxes/{inboxId}/rulesCreate an inbound ruleaccount
GET/v1/inboxes/{inboxId}/rules/{ruleId}Read an inbound ruleaccount
PATCH/v1/inboxes/{inboxId}/rules/{ruleId}Update an inbound ruleaccount
DELETE/v1/inboxes/{inboxId}/rules/{ruleId}Delete an inbound ruleaccount
GET/v1/inboxes/{inboxId}/rules/{ruleId}/runsList rule executionsaccount

Domains

Account-owned mail domains, DNS records, verification and setup.

MethodPathOperationAccess
GET/v1/domainsList custom domainsaccount
POST/v1/domainsAdd a custom domainaccount
GET/v1/domains/{domainId}Read a custom domainaccount
POST/v1/domains/{domainId}/verifyCheck the domain's DNSaccount
POST/v1/domains/{domainId}/connect-sessionStart automatic DNS setupsession
DELETE/v1/domains/{domainId}Remove a custom domainaccount

API keys

Credentials for agents: account-wide keys from the console, inbox-scoped keys from the API.

MethodPathOperationAccess
GET/v1/api-keysList account keyssession
POST/v1/api-keysCreate an account keysession
GET/v1/api-keys/{keyId}Read an account keysession
DELETE/v1/api-keys/{keyId}Revoke an account keysession
POST/v1/inboxes/{inboxId}/api-keysCreate an inbox keyaccount
GET/v1/inboxes/{inboxId}/api-keysList an inbox's keysaccount
GET/v1/inboxes/{inboxId}/api-keys/{keyId}Read an inbox keyaccount
DELETE/v1/inboxes/{inboxId}/api-keys/{keyId}Revoke an inbox keyaccount

Mail

Threads, messages, raw and HTML bodies, attachments and their extracted text.

MethodPathOperationAccess
GET/v1/inboxes/{inboxId}/threadsList threadsany
GET/v1/inboxes/{inboxId}/threads/by-seenList threads a person has or has not seensession
GET/v1/threads/{threadId}Read a threadany
PATCH/v1/threads/{threadId}Update a threadany
DELETE/v1/threads/{threadId}Trash a threadany
POST/v1/threads/{threadId}/restoreRestore a trashed threadsession
PUT/v1/threads/{threadId}/seenMark a thread seensession
GET/v1/threads/{threadId}/messagesRead a thread's messagesany
GET/v1/inboxes/{inboxId}/messagesList messagesany
GET/v1/messages/{messageId}Read a messageany
GET/v1/messages/{messageId}/rawDownload the original messageany
GET/v1/messages/{messageId}/htmlRead the HTML bodyany
GET/v1/attachments/{messageId}/{filename}Download an attachmentany
GET/v1/attachments/{messageId}/{filename}/textRead an attachment's textany

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.

MethodPathOperationAccess
GET/v1/passportRead passport settingsaccount
PATCH/v1/passportUpdate passport settingsaccount
GET/v1/servicesList servicesany
GET/v1/services/{serviceId}Read a serviceany
POST/v1/inboxes/{inboxId}/servicesDeclare or add a serviceany
PATCH/v1/services/{serviceId}Update a serviceany
DELETE/v1/services/{serviceId}Delete a serviceany
GET/v1/inboxes/{inboxId}/verificationsRead verification codesany
POST/v1/inboxes/{inboxId}/sign-insStart a sign-inany

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.

MethodPathOperationAccess
GET/v1/securityRead the security policyaccount
PATCH/v1/securityChange the security policyaccount
GET/v1/inboxes/{inboxId}/securityRead an inbox's security policyaccount
PATCH/v1/inboxes/{inboxId}/securityGive an inbox its own security policyaccount
DELETE/v1/inboxes/{inboxId}/securityReturn an inbox to the account's security policyaccount
GET/v1/inboxes/{inboxId}/sendersList an inbox's sendersaccount
GET/v1/sender-rulesList sender rulesaccount
POST/v1/sender-rulesTrust or block a senderaccount
DELETE/v1/sender-rules/{senderRuleId}Remove a sender ruleaccount
GET/v1/inboxes/{inboxId}/heldList held messagesany
POST/v1/messages/{messageId}/releaseRelease a held messageaccount
POST/v1/messages/{messageId}/discardDiscard a held messageaccount
POST/v1/messages/{messageId}/feedbackMark a message safe or unsafeaccount
GET/v1/security/auditRead the security audit logaccount
POST/v1/security/previewPreview what a policy does to a messageaccount
GET/v1/inboxes/{inboxId}/held-sendsList held sendsany
GET/v1/held-sends/{heldSendId}Read a held sendany
POST/v1/held-sends/{heldSendId}/approveSend a held sendaccount
POST/v1/held-sends/{heldSendId}/discardDiscard a held sendaccount

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.

MethodPathOperationAccess
GET/v1/baaRead the agreement's standingaccount
GET/v1/baa/documentRead the agreementaccount
POST/v1/baa/signSign the agreementsession
POST/v1/baa/terminateEnd the agreementsession
GET/v1/guardrailsRead the guardrailsaccount
PATCH/v1/guardrailsChange the guardrailsaccount
GET/v1/inboxes/{inboxId}/guardrailsRead an inbox's guardrailsaccount
PATCH/v1/inboxes/{inboxId}/guardrailsGive an inbox its own guardrailsaccount
DELETE/v1/inboxes/{inboxId}/guardrailsReturn an inbox to the account's guardrailsaccount
GET/v1/guardrails/rulesList custom guardrailsaccount
POST/v1/guardrails/rulesWrite a custom guardrailaccount
PATCH/v1/guardrails/rules/{guardrailId}Change a custom guardrailaccount
DELETE/v1/guardrails/rules/{guardrailId}Remove a custom guardrailaccount
POST/v1/guardrails/previewPreview what the guardrails do to a textaccount
GET/v1/messages/{messageId}/originalRead a message as it arrivedsession

Sending

New messages and replies from an inbox, with idempotent retries.

MethodPathOperationAccess
POST/v1/inboxes/{inboxId}/sendSend a message or replyany
POST/v1/inboxes/{inboxId}/draftsWrite a draft for the owner to sendkey
DELETE/v1/drafts/{heldSendId}Take a draft backkey

Webhooks

The inbox webhook, account endpoints, their signed deliveries and the delivery log.

MethodPathOperationAccess
GET/v1/inboxes/{inboxId}/webhookRead the inbox webhookaccount
PUT/v1/inboxes/{inboxId}/webhookSet the inbox webhookaccount
POST/v1/inboxes/{inboxId}/webhook/rotate-secretRotate the inbox webhook's secretaccount
DELETE/v1/inboxes/{inboxId}/webhookRemove the inbox webhookaccount
GET/v1/inboxes/{inboxId}/webhook/deliveriesList the inbox webhook's deliveriesaccount
GET/v1/webhooksList endpointsaccount
POST/v1/webhooksCreate an endpointaccount
GET/v1/webhooks/{endpointId}Read an endpointaccount
PATCH/v1/webhooks/{endpointId}Change an endpointaccount
DELETE/v1/webhooks/{endpointId}Delete an endpointaccount
POST/v1/webhooks/{endpointId}/rotate-secretRotate an endpoint's secretaccount
POST/v1/webhooks/{endpointId}/testSend a test deliveryaccount
GET/v1/webhooks/{endpointId}/deliveriesList an endpoint's deliveriesaccount
POST/v1/deliveries/{deliveryId}/retryRetry a deliveryaccount

Events

The account's event log: page back through it, or poll it forward.

MethodPathOperationAccess
GET/v1/eventsList or poll eventsany
GET/v1/events/{eventId}Read an eventany

Stream

Events pushed over a WebSocket, with replay.

MethodPathOperationAccess
GET/v1/wsOpen the event streamkey

Assistant

Ask Doorman, the console's assistant. Console sessions only.

MethodPathOperationAccess
POST/v1/assistant/chatAsk Doormansession

Apps

Developer clients, installed apps and explicit session-bound consent.

MethodPathOperationAccess
GET/v1/appsList developer appssession
POST/v1/appsRegister an appsession
GET/v1/apps/{appId}Read an appsession
PATCH/v1/apps/{appId}Update an appsession
DELETE/v1/apps/{appId}Delete an appsession
POST/v1/apps/{appId}/rotate-secretRotate a client secretsession
GET/v1/app-installsList installed appssession
DELETE/v1/app-installs/{installationId}Revoke an installationsession
GET/v1/oauth/requests/{requestId}Read a consent requestsession
POST/v1/oauth/requests/{requestId}Decide a consent requestsession

OAuth

Authorization, token exchange and discovery for scoped third-party apps.

MethodPathOperationAccess
GET/.well-known/oauth-authorization-serverDiscover authorizationpublic
GET/.well-known/oauth-protected-resourceDiscover the API resourcepublic
GET/.well-known/oauth-protected-resource/mcpDiscover the MCP resourcepublic
GET/oauth/authorizeBegin app authorizationpublic
POST/oauth/tokenExchange or refresh tokenspublic
POST/oauth/registerRegister a public client dynamicallypublic

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.

MethodPathOperationAccess
GET/v1/sign-in/clientsList relying partiessession
POST/v1/sign-in/clientsRegister a relying partysession
GET/v1/sign-in/clients/{clientId}Read a relying partysession
PATCH/v1/sign-in/clients/{clientId}Update a relying partysession
DELETE/v1/sign-in/clients/{clientId}Delete a relying partysession
POST/v1/sign-in/clients/{clientId}/rotate-secretRotate a relying party's secretsession
POST/v1/sign-in/clients/{clientId}/verifyVerify a relying party's hostsession
GET/v1/sign-in/requests/{requestId}Read a sign-in that waits for the ownersession
POST/v1/sign-in/requests/{requestId}Decide a sign-insession
POST/sign-in/links/readRead a sign-in linkpublic
POST/sign-in/links/openOpen a sign-in linkpublic
POST/sign-in/requests/resumeResume a sign-inpublic

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.

MethodPathOperationAccess
GET/.well-known/openid-configurationDiscover the providerpublic
GET/sign-in/jwks.jsonRead the signing keyspublic
GET/sign-in/authorizeBegin a sign-inpublic
POST/sign-in/tokenExchange a codepublic
GET/sign-in/userinfoRead the signed-in addresssign_in
POST/sign-in/userinfoRead the signed-in address with POSTsign_in

Up Down to move, Enter to open, Esc to close