Schemas
Every object the operations of the reference send or receive, with its fields, types and an example.
About these schemas
The names below are the components.schemas of the OpenAPI document. A field marked optional may be absent; a type ending in | null may be null. Identifiers are a prefix, an underscore and 26 lowercase characters, and timestamps are ISO 8601 instants in UTC with milliseconds.
- Error
- Metadata
- ThreadLabel
- ThreadLabels
- CreateApp
- UpdateApp
- App
- CreatedApp
- AppList
- AppSecret
- AppInstall
- AppInstallList
- OAuthConsent
- DecideOAuth
- OAuthDecision
- OAuthTokenRequest
- OAuthTokens
- OAuthError
- RegisterOAuthClient
- RegisteredOAuthClient
- OAuthServerMetadata
- OAuthResourceMetadata
- Inbox
- InboxListItem
- InboxPage
- CreateInbox
- UpdateInbox
- Redaction
- BaaAgreement
- Baa
- BaaDocument
- SignBaa
- TerminateBaa
- GuardrailPolicy
- UpdateGuardrailPolicy
- GuardrailSettings
- CreateGuardrailRule
- UpdateGuardrailRule
- GuardrailRule
- GuardrailRuleList
- GuardrailPreviewRequest
- GuardrailPreview
- RiskAssessment
- AttachmentScan
- Attachment
- AttachmentText
- NamedAddress
- AuthenticationResults
- MessageService
- Message
- SentMessage
- MessageList
- Thread
- ThreadPage
- ThreadMessages
- UpdateThread
- SetThreadSeen
- SendAttachment
- SendMessage
- SendMessageForm
- ServicePlan
- ServicePlanInput
- ServiceActorRef
- ServiceAttention
- SignInClientSummary
- ServiceSignIn
- Service
- ServicePage
- ServiceEvidence
- ServiceDetail
- CreateService
- UpdateService
- PassportSettings
- UpdatePassportSettings
- VerificationLink
- Verification
- VerificationList
- StartSignIn
- SignInStart
- SignInApproval
- DecideSignIn
- SignInDecision
- SignInLinkRequest
- SignInLinkPreview
- SignInLinkOpened
- ResumeSignIn
- SignInResumed
- CreateSignInClient
- UpdateSignInClient
- SignInClient
- CreatedSignInClient
- SignInClientList
- SignInClientSecret
- SignInTokenRequest
- SignInTokens
- SignInUserInfo
- SignInDiscovery
- SignInJwk
- SignInJwks
- SignInProtocolError
- ApiKey
- ApiKeyListItem
- ApiKeyList
- CreatedApiKey
- CreateApiKey
- Health
- Account
- Organization
- AdoptAccount
- PlanSummary
- Usage
- Subscription
- Seats
- BillingSummary
- SetSeats
- BillingRedirect
- BillingSynced
- Me
- Overview
- MetricsCounters
- MetricsBucket
- Metrics
- DomainRecord
- Domain
- DomainList
- CreateDomain
- DomainConnectSession
- PushSubscription
- PushSettings
- CreatePushSubscription
- SecurityPolicy
- UpdateSecurityPolicy
- SecuritySettings
- Sender
- SenderPage
- CreateSenderRule
- SenderRule
- SenderRulePage
- HeldMessage
- HeldMessagePage
- RiskFeedback
- SecurityAuditEntry
- SecurityAuditPage
- SecurityPreviewRequest
- SecurityPreview
- HeldSend
- HeldSendPage
- SendOutcome
- Member
- MemberList
- UpdateMember
- Invitation
- InvitationList
- CreateInvitation
- UpdateInvitation
- RuleWhen
- RuleAction
- CreateRule
- UpdateRule
- Rule
- RuleList
- RuleRun
- RuleRunPage
- AssistantMessage
- AssistantStage
- AssistantStageCue
- AssistantChatRequest
- AssistantProposal
- AssistantEvent
- InboxWebhook
- InboxWebhookSecret
- SetInboxWebhook
- LastDelivery
- Endpoint
- EndpointList
- CreatedEndpoint
- EndpointSecret
- EndpointTestResult
- CreateEndpoint
- UpdateEndpoint
- Delivery
- DeliveryPage
- MessageReceivedEvent
- CreatedInbox
- MessageSentEvent
- ThreadUpdatedEvent
- InboxCreatedEvent
- InboxDeletedEvent
- DeliveryFailedEvent
- MessageHeldEvent
- SendHeldEvent
- SendDiscardedEvent
- SignInRequestedEvent
- SignInCompletedEvent
- WebhookEvent
- EventSummary
- Event
- EventPage
- EventPoll
- EventList
- EventDetail
- StreamSubscribe
- StreamUnsubscribe
- StreamPing
- StreamClientFrame
- StreamSubscribed
- StreamUnsubscribed
- StreamPong
- StreamError
- StreamEvent
- StreamServerFrame
Error
Every error answer: a stable code and a sentence, plus details some codes add.
Fields: Error
error"unauthorized" | "session_invalid" | "session_expired" | "session_claims_missing" | "plan_limit_reached" | "seat_required" | "payment_failed" | "forbidden" | "permission_denied" | "member_deactivated" | "organization_required" | "owner_required" | "insufficient_scope" | "session_required" | "account_suspended" | "account_deleted" | "inbox_suspended" | "recipient_not_permitted" | "risk_blocked" | "baa_required" | "guardrail_blocked" | "not_found" | "thread_not_found" | "validation_error" | "invalid_json" | "invalid_form" | "recipient_suppressed" | "send_rejected" | "webhook_rejected" | "method_not_allowed" | "already_exists" | "limit_reached" | "no_webhook" | "delivery_pending" | "idempotency_in_progress" | "not_suspended" | "already_subscribed" | "no_subscription" | "seat_change_pending" | "seats_in_use" | "account_mismatch" | "last_owner" | "already_member" | "already_invited" | "organization_not_empty" | "message_too_large" | "idempotency_key_reused" | "upgrade_required" | "rate_limit_exceeded" | "provider_rate_limited" | "internal_error" | "send_failed" | "sending_paused" | "sending_unavailable" | "scan_unavailable" | "assistant_unavailable" | "custom_domains_unavailable" | "connect_unavailable" | "push_unavailable" | "domain_not_verified" | "host_proof_failed" | "provider_unavailable" | "queue_unavailable"requiredA stable code; see the error catalogue.
messagestringrequiredOne sentence for a person or a log.
permission"mail:read" | "mail:write" | "mail:send" | "inboxes:manage" | "security:manage" | "keys:manage" | "webhooks:manage" | "domains:manage" | "apps:manage" | "agents:connect" | "members:manage" | "billing:manage" | "account:manage" | "compliance:manage" | "phi:read"optionalpermission_denied: the permission the member's role in the organization lacks.scope"inboxes" | "account" | "inbox" | "domains"optionalThe inbox, account, or domain allowance or rate limit that applied.
planstringoptionalplan_limit_reached: the account's plan.limitinteger | nulloptionalplan_limit_reachedandrate_limit_exceeded: the limit that applied.usedintegeroptionalplan_limit_reached: how much of the allowance is used.seat_requiredandseats_in_use: the seats held by members and open invitations.seatsinteger | nulloptionalseat_required: the seats the organization's subscription pays for; null when it has no Teams subscription.seatPriceUsdnumberoptionalseat_required: what one seat costs a month.resetsAtstring (date-time)optionalplan_limit_reached(sends) andrate_limit_exceeded: when the count starts again.providerCodestringoptionalsend_rejectedandsend_failed: the sending provider's own code.guard"reply" | "recipient" | "content" | "guardrail"optionalrisk_blocked: which guard refused:replyorrecipientfrom the security policy,contentwhen an attachment did not pass the check of its bytes, orguardrailwhen a healthcare guardrail found what may not be sent.reasonsstring[]optionalrisk_blockedwith thecontentguard: the reason codes fromRISK_REASONSfor what was found.entities("ssn" | "medical_record_number" | "insurance_id" | "date_of_birth" | "phone" | "email" | "street_address" | "payment_card" | "bank_account" | "ip_address" | "national_id" | "drivers_license" | "passport" | "patient_name" | "custom")[]optionalguardrail_blocked, andrisk_blockedwith theguardrailguard: the kinds of protected information that were found. Never the text.baa"plan_required" | "not_signed" | "reacceptance_required"optionalbaa_required: what is missing before guardrails can be changed.field"mailboxName" | "externalId"optionalalready_existson an inbox: which of the request's values is already in use.
{
"error": "not_found",
"message": "Inbox not found."
}Metadata
Extension state: at most 20 keys and 2048 bytes of UTF-8 JSON. Keys are 1 to 64 ASCII letters, digits, underscores, dots, colons or hyphens, starting with a letter or digit. Values are strings, finite numbers, booleans or null. Replaced as a whole; {} clears it. Do not store secrets.
Fields: Metadata
No fields.
{
"customer": "customer-8841",
"reviewed": false
}ThreadLabel
A case-sensitive label: 1 to 64 ASCII letters, digits, underscores, dots, colons or hyphens, starting with a letter or digit.
Fields: ThreadLabel
No fields.
"needs-review"ThreadLabels
At most 20 unique labels. Replaced as a whole; [] clears the labels.
Fields: ThreadLabels
No fields.
[
"needs-review"
]CreateApp
Register a client. Confidential clients receive a one-time secret; every client uses S256 PKCE.
Fields: CreateApp
namestringrequiredredirectUrisstring[]requiredscopes("account:read" | "inboxes:read" | "inboxes:write" | "mail:read" | "mail:write" | "mail:send" | "mail:draft" | "events:read" | "webhooks:manage" | "rules:manage")[]requiredtokenEndpointAuthMethod"none" | "client_secret_post"optional
{
"name": "Mail triage",
"redirectUris": [
"https://agent.example.com/callback"
],
"scopes": [
"mail:read"
]
}UpdateApp
Replace supplied fields. Every edit invalidates pending consent and existing installations.
Fields: UpdateApp
namestringoptionalredirectUrisstring[]optionalscopes("account:read" | "inboxes:read" | "inboxes:write" | "mail:read" | "mail:write" | "mail:send" | "mail:draft" | "events:read" | "webhooks:manage" | "rules:manage")[]optional
{
"name": "Mail review"
}App
A registered client without its secret. A display name is not evidence of a verified developer.
Fields: App
idstringrequiredAn OAuth client identifier. Example:
app_01jc5f1a2b3c4d5e6f7g8h9j0knamestringrequiredredirectUrisstring[]requiredscopes("account:read" | "inboxes:read" | "inboxes:write" | "mail:read" | "mail:write" | "mail:send" | "mail:draft" | "events:read" | "webhooks:manage" | "rules:manage")[]requiredtokenEndpointAuthMethod"none" | "client_secret_post"requiredstatus"active" | "deleted"requiredcreatedAtstring (date-time)requiredExample:
2026-11-05T10:05:00.000ZupdatedAtstring (date-time)requiredExample:
2026-11-05T10:05:00.000Z
{
"id": "app_01jc5f1a2b3c4d5e6f7g8h9j0k",
"name": "Mail triage",
"redirectUris": [
"https://agent.example.com/callback"
],
"scopes": [
"mail:read"
],
"tokenEndpointAuthMethod": "none",
"status": "active",
"createdAt": "2026-11-05T10:05:00.000Z",
"updatedAt": "2026-11-05T10:05:00.000Z"
}CreatedApp
The client and, for confidential clients only, its secret shown once.
Fields: CreatedApp
idstringrequiredAn OAuth client identifier. Example:
app_01jc5f1a2b3c4d5e6f7g8h9j0knamestringrequiredredirectUrisstring[]requiredscopes("account:read" | "inboxes:read" | "inboxes:write" | "mail:read" | "mail:write" | "mail:send" | "mail:draft" | "events:read" | "webhooks:manage" | "rules:manage")[]requiredtokenEndpointAuthMethod"none" | "client_secret_post"requiredstatus"active" | "deleted"requiredcreatedAtstring (date-time)requiredExample:
2026-11-05T10:05:00.000ZupdatedAtstring (date-time)requiredExample:
2026-11-05T10:05:00.000ZclientSecretstring | nullrequired
AppList
The developer's registered apps.
Fields: AppList
dataApp[]required
AppSecret
A new client secret, shown once. Existing installations are revoked.
Fields: AppSecret
idstringrequiredAn OAuth client identifier. Example:
app_01jc5f1a2b3c4d5e6f7g8h9j0kclientSecretstringrequired
AppInstall
An account's explicit grant to a client. Revocation stops future API and background access.
Fields: AppInstall
idstringrequiredAn app installation identifier. Example:
ins_01jc5f1a2b3c4d5e6f7g8h9j0kappIdstringrequiredAn OAuth client identifier. Example:
app_01jc5f1a2b3c4d5e6f7g8h9j0knamestringrequireddynamicbooleanrequiredThe client registered itself. Nothing about it was checked, its name included.
metadataUrlstring | nullrequiredThe identity document the client published, when it named itself by one. The host that serves the document was checked; the name is what that host says about itself. Null for a client registered in the console or by itself.
scopes("account:read" | "inboxes:read" | "inboxes:write" | "mail:read" | "mail:write" | "mail:send" | "mail:draft" | "events:read" | "webhooks:manage" | "rules:manage")[]requiredstatus"active" | "revoked"requiredcreatedAtstring (date-time)requiredExample:
2026-11-05T10:05:00.000ZlastUsedAtstring (date-time) | nullrequiredWhen the client last used this grant, to the minute. Null until it does.
expiresAtstring (date-time) | nullrequiredWhen the grant's connections end unless the client stays in use. Null when no connection is alive: the client never finished connecting, was revoked, or went unused past the limit.
revokedAtstring (date-time) | nullrequired
{
"id": "ins_01jc5f1a2b3c4d5e6f7g8h9j0k",
"appId": "app_01jc5f1a2b3c4d5e6f7g8h9j0k",
"name": "Mail triage",
"dynamic": false,
"metadataUrl": null,
"scopes": [
"mail:read"
],
"status": "active",
"createdAt": "2026-11-05T10:05:00.000Z",
"lastUsedAt": "2026-11-05T10:05:00.000Z",
"expiresAt": "2026-12-05T10:05:00.000Z",
"revokedAt": null
}AppInstallList
The account's active and revoked installations.
Fields: AppInstallList
dataAppInstall[]required
OAuthConsent
A one-time request bound to the current console session. Approval is never automatic.
Fields: OAuthConsent
requestIdstringrequiredclientobjectrequiredidstringrequiredAn OAuth client identifier. Example:
app_01jc5f1a2b3c4d5e6f7g8h9j0knamestringrequireddynamicbooleanrequiredThe client registered itself. Nothing about it was checked, its name included.
metadataUrlstring | nullrequiredThe identity document the client published, when it named itself by one. The host that serves the document was checked; the name is what that host says about itself. Null for a client registered in the console or by itself.
redirectUristringrequiredresourcestringrequiredscopes("account:read" | "inboxes:read" | "inboxes:write" | "mail:read" | "mail:write" | "mail:send" | "mail:draft" | "events:read" | "webhooks:manage" | "rules:manage")[]requiredexpiresAtstring (date-time)requiredExample:
2026-11-05T10:05:00.000Zcsrfstringrequired
DecideOAuth
An explicit decision for this session-bound request.
Fields: DecideOAuth
decision"approve" | "deny"requiredcsrfstringrequired
OAuthDecision
The validated redirect carrying state, issuer and a code or access_denied.
Fields: OAuthDecision
redirectUrlstringrequired
OAuthTokenRequest
A form-encoded code exchange or refresh. Resource and client are bound to the original grant. Other fields are ignored.
Fields: OAuthTokenRequest
grant_type"authorization_code" | "refresh_token"requiredclient_idstring | stringrequiredA client id this API issued, or the URL of the client's Client ID Metadata Document. Example:
app_01jc5f1a2b3c4d5e6f7g8h9j0kclient_secretstringoptionalresourcestringrequiredcodestringoptionalredirect_uristringoptionalcode_verifierstringoptionalrefresh_tokenstringoptionalscopestringoptional
{
"grant_type": "authorization_code",
"client_id": "app_01jc5f1a2b3c4d5e6f7g8h9j0k",
"resource": "https://api.doorman.example",
"code": "replace-with-the-validated-callback-code",
"redirect_uri": "https://agent.example.com/callback",
"code_verifier": "replace-with-the-verifier-saved-before-the-redirect"
}OAuthTokens
Short-lived bearer access and a rotating refresh token. Store them as secrets.
Fields: OAuthTokens
access_tokenstringrequiredtoken_type"Bearer"requiredexpires_inintegerrequiredrefresh_tokenstringrequiredscopestringrequired
OAuthError
An OAuth protocol error, distinct from the Inbox API error envelope.
Fields: OAuthError
error"invalid_request" | "invalid_client" | "invalid_grant" | "invalid_scope" | "unsupported_grant_type" | "temporarily_unavailable" | "invalid_redirect_uri" | "invalid_client_metadata"requirederror_descriptionstringoptional
RegisterOAuthClient
Dynamic registration of a public client, not a verified developer identity. Other client metadata is ignored and redirects the API cannot use are dropped. The answer states what was registered: always a public client with both grants.
Fields: RegisterOAuthClient
client_namestringoptionalredirect_urisstring[]requiredtoken_endpoint_auth_methodstringoptionalgrant_typesstring[]optionalresponse_typesstring[]optionalscopestringoptional
{
"client_name": "Mail triage",
"redirect_uris": [
"https://agent.example.com/callback"
],
"scope": "mail:read"
}RegisteredOAuthClient
A bounded public client registration. No client secret or registration management token is issued.
Fields: RegisteredOAuthClient
client_idstringrequiredAn OAuth client identifier. Example:
app_01jc5f1a2b3c4d5e6f7g8h9j0kclient_namestringrequiredredirect_urisstring[]requiredtoken_endpoint_auth_method"none"requiredgrant_types("authorization_code" | "refresh_token")[]requiredresponse_types"code"[]requiredscopestringrequiredclient_id_issued_atintegerrequiredclient_id_expires_atintegerrequired
OAuthServerMetadata
OAuth authorization-server discovery.
Fields: OAuthServerMetadata
issuerstringrequiredauthorization_endpointstringrequiredtoken_endpointstringrequiredregistration_endpointstringrequiredresponse_types_supported"code"[]requiredgrant_types_supported("authorization_code" | "refresh_token")[]requiredcode_challenge_methods_supported"S256"[]requiredtoken_endpoint_auth_methods_supported("none" | "client_secret_post")[]requiredscopes_supported("account:read" | "inboxes:read" | "inboxes:write" | "mail:read" | "mail:write" | "mail:send" | "mail:draft" | "events:read" | "webhooks:manage" | "rules:manage" | "keys:manage" | "offline_access")[]requiredauthorization_response_iss_parameter_supportedtruerequiredclient_id_metadata_document_supportedtruerequired
OAuthResourceMetadata
Protected-resource discovery for the Inbox API or its MCP endpoint.
Fields: OAuthResourceMetadata
resourcestringrequiredauthorization_serversstring[]requiredscopes_supported("account:read" | "inboxes:read" | "inboxes:write" | "mail:read" | "mail:write" | "mail:send" | "mail:draft" | "events:read" | "webhooks:manage" | "rules:manage")[]requiredbearer_methods_supported"header"[]required
Inbox
An address on the inbox domain that receives mail as soon as it exists.
Fields: Inbox
idstringrequiredAn inbox identifier. Example:
inb_01jc4q7w9k2m5n8p3r6t1v4x7zaddressstringrequiredThe full address: the mailbox name at the inbox domain. Example:
concierge@doorman.examplemailboxNamestringrequiredThe part before the @. Example:
conciergedomainstringrequiredThe inbox domain of this deployment. Example:
doorman.exampledomainIdstring | nulloptionalThe custom domain identifier; null on the shared domain. Older deployments omit it.
displayNamestring | nullrequiredThe sender name on outbound mail; null when none is set.
signaturestring | nulloptionalPlain text appended to every message the inbox sends, under a
--line; null when none is set. Older deployments omit it. Example:Acme concierge acme.examplesignatureHtmlstring | nulloptionalThe signature as markup, appended to the HTML part of every message the inbox sends, as it was stored: scripts, style sheets, forms, event handlers and images that are not https are removed when it is set. Null when the signature is plain text only. Older deployments omit it. Example:
<table cellpadding="0" cellspacing="0"><tr><td style="font-family:Arial,sans-serif;font-size:14px"><b>Acme concierge</b><br><a href="https://acme.example">acme.example</a></td></tr></table>externalIdstring | nullrequiredYour own identifier for the inbox; null when none was given. Example:
customer-8841metadataMetadataoptionalwebhookUrlstring | nullrequiredThe inbox webhook's URL, or null when the inbox has none.
status"active" | "suspended" | "deleted"requiredOnly active inboxes receive and send; a deleted inbox is never returned.
createdAtstring (date-time)requiredExample:
2026-11-05T10:05:00.000ZupdatedAtstring (date-time)requiredExample:
2026-11-05T10:05:00.000Z
{
"id": "inb_01jc4q7w9k2m5n8p3r6t1v4x7z",
"address": "concierge@doorman.example",
"mailboxName": "concierge",
"domain": "doorman.example",
"displayName": "Acme concierge",
"externalId": "customer-8841",
"metadata": {},
"webhookUrl": null,
"status": "active",
"createdAt": "2026-11-05T10:05:00.000Z",
"updatedAt": "2026-11-05T10:05:00.000Z"
}InboxListItem
An inbox as a list shows it, with what the console displays next to it.
Fields: InboxListItem
idstringrequiredAn inbox identifier. Example:
inb_01jc4q7w9k2m5n8p3r6t1v4x7zaddressstringrequiredThe full address: the mailbox name at the inbox domain. Example:
concierge@doorman.examplemailboxNamestringrequiredThe part before the @. Example:
conciergedomainstringrequiredThe inbox domain of this deployment. Example:
doorman.exampledomainIdstring | nulloptionalThe custom domain identifier; null on the shared domain. Older deployments omit it.
displayNamestring | nullrequiredThe sender name on outbound mail; null when none is set.
signaturestring | nulloptionalPlain text appended to every message the inbox sends, under a
--line; null when none is set. Older deployments omit it. Example:Acme concierge acme.examplesignatureHtmlstring | nulloptionalThe signature as markup, appended to the HTML part of every message the inbox sends, as it was stored: scripts, style sheets, forms, event handlers and images that are not https are removed when it is set. Null when the signature is plain text only. Older deployments omit it. Example:
<table cellpadding="0" cellspacing="0"><tr><td style="font-family:Arial,sans-serif;font-size:14px"><b>Acme concierge</b><br><a href="https://acme.example">acme.example</a></td></tr></table>externalIdstring | nullrequiredYour own identifier for the inbox; null when none was given. Example:
customer-8841metadataMetadataoptionalwebhookUrlstring | nullrequiredThe inbox webhook's URL, or null when the inbox has none.
status"active" | "suspended" | "deleted"requiredOnly active inboxes receive and send; a deleted inbox is never returned.
createdAtstring (date-time)requiredExample:
2026-11-05T10:05:00.000ZupdatedAtstring (date-time)requiredExample:
2026-11-05T10:05:00.000ZunreadThreadsintegerrequiredUnread, untrashed threads.
unseenThreadsintegeroptionalUntrashed threads no person has looked at in the console since mail last arrived in them. Older deployments omit it.
lastMessageAtstring (date-time) | nullrequiredThe latest thread activity, or null when the inbox has no mail.
{
"id": "inb_01jc4q7w9k2m5n8p3r6t1v4x7z",
"address": "concierge@doorman.example",
"mailboxName": "concierge",
"domain": "doorman.example",
"displayName": "Acme concierge",
"externalId": "customer-8841",
"webhookUrl": null,
"status": "active",
"createdAt": "2026-11-05T10:05:00.000Z",
"updatedAt": "2026-11-05T10:05:00.000Z",
"metadata": {},
"unreadThreads": 3,
"lastMessageAt": "2026-11-05T10:05:00.000Z"
}InboxPage
A page of the account's inboxes, oldest first.
Fields: InboxPage
dataInboxListItem[]requiredlimitintegerrequiredThe page size that was applied.
offsetintegerrequiredThe offset that was applied.
totalintegerrequiredHow many inboxes match, across every page.
CreateInbox
A new inbox. Every field is optional: an empty body issues a random address. webhookUrl and key make the inbox ready to use in one call; their secrets come back once, in the answer.
Fields: CreateInbox
mailboxNamestringoptional3 to 30 lowercase letters, digits, dots or hyphens: the part before the @. Reserved names are refused with 400 validation_error: mail infrastructure (abuse, admin, administrator, api, bounce, bounces, ...), the company's role accounts (support, billing, sales, legal, security, ...), names holding such a role as a dot- or hyphen-separated label (acme-support) however the role is written (support1, supp0rt, no-reply, supportteam), and the doorman and theovex brand with its lookalikes. The full lists are under x-doorman-limits.inboxes. Example:
conciergedisplayNamestringoptionalThe sender name on outbound mail, at most 100 characters, with at least one letter or digit and no @, <, >, URL, control or invisible characters, no Latin mixed with Cyrillic or Greek, never the doorman or theovex brand, and never a bare role such as Support or Billing team: it says who, not only what. Example:
Acme conciergeexternalIdstringoptionalYour own identifier for the inbox (a user, a job, a tenant), at most 200 characters and unique among the account's active inboxes. Look an inbox up with
GET /v1/inboxes?externalId=. Example:customer-8841metadataMetadataoptionaldomainIdstringoptionalOne of this account's verified custom domains. Omit for the shared domain. Example:
dom_01jc5f1a2b3c4d5e6f7g8h9j0kwebhookUrlstringoptionalSet the inbox webhook at once: an https URL without credentials. The signing secret is in the answer's
webhook. Example:https://agent.example.com/hooks/doormankeyobjectoptionalMint an inbox-scoped key at once. Its token is in the answer's
key.namestringoptionalA label for the key, at most 100 characters. Example:
Acme concierge
{
"mailboxName": "concierge",
"displayName": "Acme concierge"
}UpdateInbox
Changes to an inbox; fields left out stay as they are. The address never changes.
Fields: UpdateInbox
displayNamestring | nulloptionalThe new sender name; null or empty clears it.
signaturestring | nulloptionalThe new signature: plain text of at most 1000 characters, line breaks kept. It is appended to every message the inbox sends from then on, a rule's forward excepted. On the shared domain a signature may not present the sender as the company (the doorman or theovex brand beside a word such as team, support or security): that answers 400 validation_error, for this field and for
signatureHtml. Null or empty clears it.signatureHtmlstring | nulloptionalThe signature as markup, at most 10000 characters: tables, inline styles, links and https images, as a signature builder exports it. It is cleaned before it is stored (scripts, style sheets, forms, frames, event handlers, and images that are not https are removed), and the answer carries what was kept. From then on every message the inbox sends carries it in its HTML part, and a message sent as text alone gains an HTML part for it;
signaturestays the text part's. When it is set on an inbox that has nosignature, and none is given with it, the text is read from the markup. Null or empty clears it.externalIdstring | nulloptionalYour new identifier for the inbox; null clears it.
metadataMetadataoptional
{
"displayName": "Acme concierge"
}Redaction
What the account's healthcare guardrails found in a message (ADR-027): the kinds of protected health information and personal data, and how many of each. Never the text itself. Detection is deterministic and is no guarantee that nothing else is there.
Fields: Redaction
appliedbooleanrequiredTrue when the findings are replaced in this answer with placeholders such as
[REDACTED:SSN], as they are for every key, app, webhook and stream. False when the caller is a signed-in person who may read the original.entitiesobject[]requiredThe kinds found, in the catalogue's order; empty when nothing was.
type"ssn" | "medical_record_number" | "insurance_id" | "date_of_birth" | "phone" | "email" | "street_address" | "payment_card" | "bank_account" | "ip_address" | "national_id" | "drivers_license" | "passport" | "patient_name" | "custom"requiredA built-in kind, or
customfor what a custom guardrail matched.countintegerrequired
{
"applied": true,
"entities": [
{
"type": "ssn",
"count": 1
},
{
"type": "date_of_birth",
"count": 1
}
]
}BaaAgreement
The record of a signed business associate agreement: which text, who signed for whom, and when. Records are kept after an agreement ends.
Fields: BaaAgreement
idstringrequiredThe identifier of a signed business associate agreement. Example:
baa_01jc5f1a2b3c4d5e6f7g8h9j0kversionstringrequiredThe version of the text that was signed. Example:
2026-11-draftdocumentSha256stringrequiredThe SHA-256 of the exact text the signer was shown, in hexadecimal.
signerobjectrequireduserIdstringrequiredThe identity provider's user id of the person who signed.
namestringrequiredtitlestringrequiredentitystringrequiredThe legal entity the person signed for.
signedAtstring (date-time)requiredExample:
2026-11-05T10:05:00.000ZterminatedAtstring (date-time) | nullrequiredWhen a person ended the agreement; null while it stands.
{
"id": "baa_01jc5f1a2b3c4d5e6f7g8h9j0k",
"version": "2026-11-draft",
"documentSha256": "9f86d081884c7d659a2feaa0c55ad015a3bf4f1b2b0b822cd15d6c15b0f00a08",
"signer": {
"userId": "user_2abc",
"name": "Dana Ortiz",
"title": "Privacy Officer",
"entity": "Acme Health, Inc."
},
"signedAt": "2026-11-05T10:05:00.000Z",
"terminatedAt": null
}Baa
Where the account stands with the business associate agreement, and whether it may sign.
Fields: Baa
status"not_signed" | "active" | "reacceptance_required" | "terminated"requirednot_signed: nobody signed.active: the current text is signed.reacceptance_required: an earlier text is signed and the current one is not; guardrails keep applying.terminated: a person ended it, and guardrails no longer apply.eligiblebooleanrequiredWhether the account may sign and change guardrails now: an organization whose Teams subscription pays for it, or an account on the enterprise plan.
requirement"plan_required" | "not_signed" | "reacceptance_required" | nullrequiredWhat stands between the account and changing guardrails; null when nothing does.
inForcebooleanrequiredWhether guardrails apply to the account's mail now. They go on applying when the plan lapses, and stop only when a person ends the agreement.
versionstringrequiredThe version of the current text.
documentSha256stringrequiredThe SHA-256 of the current text.
agreementBaaAgreement | nullrequiredThe most recent record; null when nobody ever signed.
{
"status": "not_signed",
"eligible": true,
"requirement": "not_signed",
"inForce": false,
"version": "2026-11-draft",
"documentSha256": "9f86d081884c7d659a2feaa0c55ad015a3bf4f1b2b0b822cd15d6c15b0f00a08",
"agreement": null
}BaaDocument
The current text of the business associate agreement, exactly as a signer is shown it.
Fields: BaaDocument
versionstringrequiredsha256stringrequiredThe SHA-256 of
textas UTF-8. Signing names it, so what is signed is what was read.titlestringrequiredtextstringrequiredThe agreement, as plain text.
placeholderbooleanrequiredTrue while the text is a draft that counsel has not approved. A deployment that serves a placeholder is not offering a binding agreement.
SignBaa
A signature on the current text. version and documentSha256 name what was read; signature is the signer's name typed again.
Fields: SignBaa
versionstringrequireddocumentSha256stringrequirednamestringrequiredThe signer's full name.
titlestringrequiredThe signer's title at the entity.
entitystringrequiredThe legal entity the signer signs for and has authority to bind.
signaturestringrequiredThe signer's name, typed as their signature. It must equal
name.accepttruerequiredThe signer's statement that they read the text and may bind the entity.
{
"version": "2026-11-draft",
"documentSha256": "9f86d081884c7d659a2feaa0c55ad015a3bf4f1b2b0b822cd15d6c15b0f00a08",
"name": "Dana Ortiz",
"title": "Privacy Officer",
"entity": "Acme Health, Inc.",
"signature": "Dana Ortiz",
"accept": true
}TerminateBaa
Ends the agreement. From then on guardrails no longer apply and agents read mail as it arrived.
Fields: TerminateBaa
confirm"terminate"requiredThe word
terminate, so that nothing ends an agreement by accident.
{
"confirm": "terminate"
}GuardrailPolicy
The built-in healthcare guardrails: whether they apply, which kinds they look for, and what they do in each direction.
Fields: GuardrailPolicy
enabledbooleanrequiredWhether the guardrails apply at all. Off: nothing is detected, redacted, held or refused.
inbound"off" | "redact" | "hold"requiredWhat the built-in detectors do to mail that arrives.
redact: each finding is replaced in everything a key, an app, a webhook, the stream or a model is given, and the original, its HTML and affected attachments are refused to them.hold: the message waits for the owner as held mail does.off: nothing.outbound"off" | "hold" | "block"requiredWhat the built-in detectors do to a send by a key or an app.
block: refused with 403risk_blockedand the guardguardrail.hold: it waits for the owner as a held send.off: nothing. A person sending from the console is never refused.entitiesobject of booleanrequiredWhich kinds the detectors look for. Every kind is listed.
{
"enabled": true,
"inbound": "redact",
"outbound": "hold",
"entities": {
"ssn": true,
"medical_record_number": true,
"insurance_id": true,
"date_of_birth": true,
"phone": true,
"email": true,
"street_address": true,
"payment_card": true,
"bank_account": true,
"ip_address": true,
"national_id": true,
"drivers_license": true,
"passport": true,
"patient_name": true
}
}UpdateGuardrailPolicy
Changes to the guardrails. Fields left out stay as they are; entities changes the kinds it names and leaves the others. A change that takes protection away needs a console session unless the account allows its account keys to.
Fields: UpdateGuardrailPolicy
enabledbooleanoptionalWhether the guardrails apply at all. Off: nothing is detected, redacted, held or refused.
inbound"off" | "redact" | "hold"optionalWhat the built-in detectors do to mail that arrives.
redact: each finding is replaced in everything a key, an app, a webhook, the stream or a model is given, and the original, its HTML and affected attachments are refused to them.hold: the message waits for the owner as held mail does.off: nothing.outbound"off" | "hold" | "block"optionalWhat the built-in detectors do to a send by a key or an app.
block: refused with 403risk_blockedand the guardguardrail.hold: it waits for the owner as a held send.off: nothing. A person sending from the console is never refused.entitiesobject of booleanoptionalThe kinds to switch on or off.
{
"outbound": "block"
}GuardrailSettings
The guardrails as they apply to the account or to one inbox, and whether they are in force.
Fields: GuardrailSettings
scope"account" | "inbox"requiredinboxIdstring | nullrequiredThe inbox the settings are for; null for the account's.
inheritedbooleanrequiredInbox scope: true while the inbox has no guardrails of its own and follows the account's. Always false for the account.
policyGuardrailPolicyrequiredinForcebooleanrequiredWhether these guardrails apply to mail now: the account has an agreement that stands, and
policy.enabledis true.baa"not_signed" | "active" | "reacceptance_required" | "terminated"requiredupdatedAtstring (date-time) | nullrequiredWhen the guardrails were last changed; null while they are the defaults.
CreateGuardrailRule
A custom guardrail: a term or a pattern of your own, with what a match does in each direction, for the whole account or one inbox.
Fields: CreateGuardrailRule
namestringrequiredA label, at most 80 characters. It appears in the console and the audit log, so it should not itself be sensitive. Example:
Study participant idskind"term" | "pattern"requiredterm: a word or phrase, matched whole and without regard to case.pattern: a mask, where#is a digit,@a letter,*either, any other character itself, and{n}or{n,m}a count, as inMRN-#{6,10}. A pattern is not a regular expression.valuestringrequiredThe term or the pattern. Example:
PT-#{6}inbound"off" | "redact" | "hold"optionalWhat a match does to mail that arrives. Defaults to
redact.outbound"off" | "hold" | "block"optionalWhat a match does to a send by a key or an app. Defaults to
off.enabledbooleanoptionalWhether the guardrail applies. Defaults to true.
inboxIdstringoptionalApply to this inbox only. Omit for every inbox of the account. Example:
inb_01jc4q7w9k2m5n8p3r6t1v4x7z
{
"name": "Study participant ids",
"kind": "pattern",
"value": "PT-#{6}",
"inbound": "redact",
"outbound": "block"
}UpdateGuardrailRule
Changes to a custom guardrail. What it matches cannot be changed: remove it and write another. Switching it off or lowering an action takes protection away and needs a console session unless the account allows its account keys to.
Fields: UpdateGuardrailRule
namestringoptionalA label, at most 80 characters. It appears in the console and the audit log, so it should not itself be sensitive. Example:
Study participant idsinbound"off" | "redact" | "hold"optionalWhat a match does to mail that arrives. Defaults to
redact.outbound"off" | "hold" | "block"optionalWhat a match does to a send by a key or an app. Defaults to
off.enabledbooleanoptionalWhether the guardrail applies. Defaults to true.
{
"outbound": "hold"
}GuardrailRule
A custom guardrail: what it matches, what a match does, and where it applies.
Fields: GuardrailRule
idstringrequiredA custom guardrail's identifier. Example:
grd_01jc5f1a2b3c4d5e6f7g8h9j0knamestringrequiredkind"term" | "pattern"requiredvaluestring | nullrequiredThe term or the pattern, for a caller that may change guardrails: a signed-in person who holds
compliance:manage, or an account key where the account lets its keys manage security. Null for every other caller: what a guardrail matches is what it keeps from agents, so a key an agent holds is not told it.inbound"off" | "redact" | "hold"requiredoutbound"off" | "hold" | "block"requiredenabledbooleanrequiredinboxIdstring | nullrequiredThe inbox the guardrail applies to; null for the whole account.
createdAtstring (date-time)requiredExample:
2026-11-05T10:05:00.000ZupdatedAtstring (date-time)requiredExample:
2026-11-05T10:05:00.000Z
{
"id": "grd_01jc5f1a2b3c4d5e6f7g8h9j0k",
"name": "Study participant ids",
"kind": "pattern",
"value": "PT-#{6}",
"inbound": "redact",
"outbound": "block",
"enabled": true,
"inboxId": null,
"createdAt": "2026-11-05T10:05:00.000Z",
"updatedAt": "2026-11-05T10:05:00.000Z"
}GuardrailRuleList
The account's custom guardrails, oldest first.
Fields: GuardrailRuleList
dataGuardrailRule[]required
GuardrailPreviewRequest
Text to run the guardrails over. Nothing is stored or sent. Give policy or rule to try a change before making it.
Fields: GuardrailPreviewRequest
textstringrequiredsubjectstringoptionaldirection"inbound" | "outbound"optionalWhether the text is mail that arrives or a send by an agent. Defaults to
inbound.inboxIdstringoptionalEvaluate as this inbox: its guardrails and its custom guardrails. Defaults to the account's. Example:
inb_01jc4q7w9k2m5n8p3r6t1v4x7zpolicyUpdateGuardrailPolicyoptionalA draft, applied over the guardrails in force.
ruleobjectoptionalA custom guardrail to try beside the ones that exist.
kind"term" | "pattern"requiredterm: a word or phrase, matched whole and without regard to case.pattern: a mask, where#is a digit,@a letter,*either, any other character itself, and{n}or{n,m}a count, as inMRN-#{6,10}. A pattern is not a regular expression.valuestringrequiredThe term or the pattern. Example:
PT-#{6}inbound"off" | "redact" | "hold"optionalWhat a match does to mail that arrives. Defaults to
redact.outbound"off" | "hold" | "block"optionalWhat a match does to a send by a key or an app. Defaults to
off.
{
"text": "Patient: Sam Rivera, DOB 04/12/1984, SSN 536-22-8726."
}GuardrailPreview
What the guardrails do with the text: what an agent would be given, what was found, and what would happen to the message. The preview applies the guardrails as if an agreement were in force, whatever the account's standing.
Fields: GuardrailPreview
textstringrequiredThe text with every finding replaced.
subjectstring | nullrequiredThe subject with every finding replaced; null when none was given.
redactionRedactionrequiredaction"none" | "redact" | "hold" | "block"requiredThe strictest thing a match asks for in this direction:
nonewhen nothing matched or everything that matched is off.
{
"text": "Patient: [REDACTED:PATIENT_NAME], DOB [REDACTED:DATE_OF_BIRTH], SSN [REDACTED:SSN].",
"subject": null,
"redaction": {
"applied": true,
"entities": [
{
"type": "ssn",
"count": 1
},
{
"type": "date_of_birth",
"count": 1
},
{
"type": "patient_name",
"count": 1
}
]
},
"action": "redact"
}RiskAssessment
What Doorman concluded about an inbound message before any agent saw it (ADR-018). It is Doorman's own judgment, never text from the message: an agent can rely on it where it cannot rely on the mail.
Fields: RiskAssessment
scoreintegerrequired0 is no sign of danger, 100 is as certain as it gets.
level"low" | "medium" | "high" | "critical"requiredThe score as a level: low from 0, medium from 30, high from 60, critical from 85. The floors are the same for every account.
labels("prompt_injection" | "phishing" | "scam" | "impersonation" | "spam" | "malware")[]requiredWhat kind of danger was found; empty when none was.
reasonsstring[]requiredStable reason codes, strongest first. The catalogue, with a sentence for each, is
RISK_REASONSin the contract package andx-doorman-risk-reasonsin the OpenAPI document. New codes are additive. Example:["hidden_text","instruction_override"]senderobjectrequiredstanding"trusted" | "known" | "new" | "blocked"requiredHow well the inbox knew the sender when the message arrived:
trustedorblockedby the owner's rule,knownwhen earned,newotherwise.authenticatedbooleanrequiredWhether the message passed DMARC for the domain in its From address. Standing only counts for a message that did.
action"delivered" | "warned" | "held" | "released"requiredWhat was done with the message:
delivered;warned(delivered with this record as a warning, never answered automatically);held(kept from agents until the owner releases or discards it);released(held, then released by the owner).analysis"full" | "signals"requiredfullwhen a model read the content as well;signalswhen only the deterministic signals ran.review"safe" | "unsafe" | nullrequiredWhat the owner said about the message afterwards, or null. A message marked
safeno longer blocks replies.
{
"score": 6,
"level": "low",
"labels": [],
"reasons": [],
"sender": {
"standing": "known",
"authenticated": true
},
"action": "delivered",
"analysis": "full",
"review": null
}AttachmentScan
What Doorman read from an attachment's bytes, whatever the file is called (ADR-021). It is a check of structure, not a guarantee: a file marked clean showed nothing known to be dangerous.
Fields: AttachmentScan
status"clean" | "suspicious" | "malicious" | "unscanned"requiredclean: nothing was found.suspicious: the file carries something that can act, such as macros or script.malicious: it is a program dressed as another kind of file, or an archive built to exhaust whoever unpacks it; keys and app tokens cannot download it.unscanned: it is locked or damaged and could not be read.sha256stringrequiredThe SHA-256 of the bytes, in hexadecimal.
detectedTypestring | nullrequiredThe kind of file the bytes are, for example
pdf,ziporexecutable; null when they match no known format. Example:pdffindingsstring[]requiredReason codes from
RISK_REASONSfor what was found; empty for a clean file. Example:["macro_document"]
{
"status": "clean",
"sha256": "9f86d081884c7d659a2feaa0c55ad015a3bf4f1b2b0b822cd15d6c15b0f00a08",
"detectedType": "pdf",
"findings": []
}Attachment
A file that arrived with a message, stored durably and read into text when possible.
Fields: Attachment
filenamestringrequiredUnique within the message; the download route uses it. Example:
invoice.pdfcontentTypestringrequiredExample:
application/pdfsizeBytesintegerrequiredExample:
45000urlstringrequiredWhere to download the bytes, with the same credential as the API. Example:
https://api.doorman.example/v1/attachments/msg_01jc5a6g7h8j9k0m1n2p3q4r5s/invoice.pdfparsedTextstringoptionalThe extracted text, present when extraction produced any.
extractionMethod"text" | "csv" | "pdf" | "ocr" | "office" | "unsupported" | "skipped" | "skipped_too_large" | "unavailable" | "timeout" | "pdf_error" | "ocr_error" | "office_error" | "html_error"requiredHow the text was obtained (text, csv, pdf, ocr, office), or why it was not.
scanAttachmentScanoptionalThe check of the file's bytes. Absent for mail stored before the check existed and where the deployment does not assess mail. The text of a
maliciousfile is never included.
{
"filename": "invoice.pdf",
"contentType": "application/pdf",
"sizeBytes": 45000,
"url": "https://api.doorman.example/v1/attachments/msg_01jc5a6g7h8j9k0m1n2p3q4r5s/invoice.pdf",
"parsedText": "Invoice 2847. Line 3: Setup fee, billed twice. Total 1,480.",
"extractionMethod": "pdf"
}AttachmentText
The extracted text of an attachment and how it was obtained.
Fields: AttachmentText
filenamestringrequiredcontentTypestringrequiredextractionMethod"text" | "csv" | "pdf" | "ocr" | "office" | "unsupported" | "skipped" | "skipped_too_large" | "unavailable" | "timeout" | "pdf_error" | "ocr_error" | "office_error" | "html_error"requiredtextstring | nullrequiredThe text, or null when nothing was extracted;
extractionMethodsays why.
{
"filename": "invoice.pdf",
"contentType": "application/pdf",
"extractionMethod": "pdf",
"text": "Invoice 2847. Total 1,480."
}NamedAddress
An address with the display name its header carried.
Fields: NamedAddress
addressstringrequiredExample:
sam@example.comnamestring | nullrequiredExample:
Sam Rivera
{
"address": "sam@example.com",
"name": "Sam Rivera"
}AuthenticationResults
The first Authentication-Results header, read only when the mail platform wrote it.
Fields: AuthenticationResults
spfstring | nullrequireddkimstring | nullrequireddmarcstring | nullrequired
{
"spf": "pass",
"dkim": "pass",
"dmarc": "pass"
}MessageService
The outside service a message came from: set when its sender was authenticated (DMARC passed) and the message concerns an account there, or comes from a service the inbox already has.
Fields: MessageService
idstring | nullrequiredThe service in the inbox's passport; null when none was recorded, because the inbox holds as many as it may.
domainstringrequiredThe sender's registrable domain, which identifies the service. Example:
example.netsignal"verification" | "welcome" | "receipt" | "password_reset" | "security" | "trial" | "cancellation" | "other"requiredWhat the message says about the account: a verification code or link, a welcome, a receipt, a password reset, a security notice, a trial, a cancellation, or other mail.
{
"id": "svc_01jc5g2b3c4d5e6f7g8h9j0k1m",
"domain": "example.net",
"signal": "verification"
}Message
One message, inbound or outbound, with its text, headers, classification and attachments.
Fields: Message
idstringrequiredA message identifier. Example:
msg_01jc5a6g7h8j9k0m1n2p3q4r5sinboxIdstringrequiredAn inbox identifier. Example:
inb_01jc4q7w9k2m5n8p3r6t1v4x7zthreadIdstringrequiredA thread identifier. Example:
thr_01jc5a1b2c3d4e5f6g7h8j9k0mdirection"inbound" | "outbound"requiredrfcMessageIdstring | nullrequiredThe Message-ID header of inbound mail; null for mail this API sent. Example:
<a1b2c3@example.com>inReplyTostring | nullrequiredThe In-Reply-To header, when the message is a reply.
referencesstring[]requiredThe References chain, oldest first.
fromNamedAddressrequiredtoNamedAddress[]requiredccNamedAddress[]requiredbccNamedAddress[]requiredOnly outbound mail carries blind copies.
replyTostring | nullrequiredThe Reply-To address, when one was given.
deliveryRole"to" | "cc" | "bcc" | nullrequiredHow the inbox received the message: as a to, cc or bcc recipient. Null for outbound mail.
subjectstringrequiredExample:
Invoice 2847textstring | nullrequiredThe plain-text body, or text derived from the HTML when there was none.
hasHtmlbooleanrequiredWhether an HTML body is stored; read it at /v1/messages/{messageId}/html.
rawUrlstring | nullrequiredWhere to download the original message/rfc822; null for outbound mail.
sizeBytesintegerrequiredcategory"personal" | "automated" | "marketing" | "bounce" | "spam" | "malicious"requiredWhat kind of mail this is; ordinary outbound mail is personal and rule-generated mail is automated.
autoReplyablebooleanrequiredFalse for anything an agent should not answer on its own.
verdict"clean" | "unverified" | "suspicious" | nullrequiredFrom the authentication results; null for outbound mail.
spamScorenumber | nullrequiredHow likely the message is junk, from 0 to 1, when it was assessed; null otherwise.
authenticationAuthenticationResults | nullrequiredserviceMessageService | nulloptionalThe outside service the message came from, for the inbox's passport; null for any other mail and for outbound mail. Older deployments omit it.
riskRiskAssessment | nulloptionalDoorman's assessment of an inbound message (ADR-019). Null for outbound mail and for mail that was not assessed. Older deployments omit it.
redactionRedactionoptionalWhat the account's healthcare guardrails found in the message (ADR-027), and whether
subject,textand the attachments'parsedTextcarry placeholders in place of it. Absent where no guardrail applies.occurredAtstring (date-time)requiredWhen the message arrived or was sent. Example:
2026-11-05T10:05:00.000ZattachmentsAttachment[]required
{
"id": "msg_01jc5a6g7h8j9k0m1n2p3q4r5s",
"inboxId": "inb_01jc4q7w9k2m5n8p3r6t1v4x7z",
"threadId": "thr_01jc5a1b2c3d4e5f6g7h8j9k0m",
"direction": "inbound",
"rfcMessageId": "<a1b2c3@example.com>",
"inReplyTo": null,
"references": [],
"from": {
"address": "sam@example.com",
"name": "Sam Rivera"
},
"to": [
{
"address": "concierge@doorman.example",
"name": null
}
],
"cc": [],
"bcc": [],
"replyTo": null,
"deliveryRole": "to",
"subject": "Invoice 2847",
"text": "Hi, invoice 2847 is attached.",
"hasHtml": true,
"rawUrl": "https://api.doorman.example/v1/messages/msg_01jc5a6g7h8j9k0m1n2p3q4r5s/raw",
"sizeBytes": 48120,
"category": "personal",
"autoReplyable": true,
"verdict": "clean",
"spamScore": 0.02,
"authentication": {
"spf": "pass",
"dkim": "pass",
"dmarc": "pass"
},
"risk": {
"score": 6,
"level": "low",
"labels": [],
"reasons": [],
"sender": {
"standing": "known",
"authenticated": true
},
"action": "delivered",
"analysis": "full",
"review": null
},
"occurredAt": "2026-11-05T10:05:00.000Z",
"attachments": [
{
"filename": "invoice.pdf",
"contentType": "application/pdf",
"sizeBytes": 45000,
"url": "https://api.doorman.example/v1/attachments/msg_01jc5a6g7h8j9k0m1n2p3q4r5s/invoice.pdf",
"parsedText": "Invoice 2847. Line 3: Setup fee, billed twice. Total 1,480.",
"extractionMethod": "pdf"
}
]
}SentMessage
The stored outbound message, with the identifier the sending provider assigned.
Fields: SentMessage
idstringrequiredA message identifier. Example:
msg_01jc5a6g7h8j9k0m1n2p3q4r5sinboxIdstringrequiredAn inbox identifier. Example:
inb_01jc4q7w9k2m5n8p3r6t1v4x7zthreadIdstringrequiredA thread identifier. Example:
thr_01jc5a1b2c3d4e5f6g7h8j9k0mdirection"inbound" | "outbound"requiredrfcMessageIdstring | nullrequiredThe Message-ID header of inbound mail; null for mail this API sent. Example:
<a1b2c3@example.com>inReplyTostring | nullrequiredThe In-Reply-To header, when the message is a reply.
referencesstring[]requiredThe References chain, oldest first.
fromNamedAddressrequiredtoNamedAddress[]requiredccNamedAddress[]requiredbccNamedAddress[]requiredOnly outbound mail carries blind copies.
replyTostring | nullrequiredThe Reply-To address, when one was given.
deliveryRole"to" | "cc" | "bcc" | nullrequiredHow the inbox received the message: as a to, cc or bcc recipient. Null for outbound mail.
subjectstringrequiredExample:
Invoice 2847textstring | nullrequiredThe plain-text body, or text derived from the HTML when there was none.
hasHtmlbooleanrequiredWhether an HTML body is stored; read it at /v1/messages/{messageId}/html.
rawUrlstring | nullrequiredWhere to download the original message/rfc822; null for outbound mail.
sizeBytesintegerrequiredcategory"personal" | "automated" | "marketing" | "bounce" | "spam" | "malicious"requiredWhat kind of mail this is; ordinary outbound mail is personal and rule-generated mail is automated.
autoReplyablebooleanrequiredFalse for anything an agent should not answer on its own.
verdict"clean" | "unverified" | "suspicious" | nullrequiredFrom the authentication results; null for outbound mail.
spamScorenumber | nullrequiredHow likely the message is junk, from 0 to 1, when it was assessed; null otherwise.
authenticationAuthenticationResults | nullrequiredserviceMessageService | nulloptionalThe outside service the message came from, for the inbox's passport; null for any other mail and for outbound mail. Older deployments omit it.
riskRiskAssessment | nulloptionalDoorman's assessment of an inbound message (ADR-019). Null for outbound mail and for mail that was not assessed. Older deployments omit it.
redactionRedactionoptionalWhat the account's healthcare guardrails found in the message (ADR-027), and whether
subject,textand the attachments'parsedTextcarry placeholders in place of it. Absent where no guardrail applies.occurredAtstring (date-time)requiredWhen the message arrived or was sent. Example:
2026-11-05T10:05:00.000ZattachmentsAttachment[]requiredproviderMessageIdstring | nullrequiredThe provider's message identifier, used to thread replies to this message. Example:
<b2c3d4@doorman.example>
{
"id": "msg_01jc5b7h8j9k0m1n2p3q4r5s6t",
"inboxId": "inb_01jc4q7w9k2m5n8p3r6t1v4x7z",
"threadId": "thr_01jc5a1b2c3d4e5f6g7h8j9k0m",
"direction": "outbound",
"rfcMessageId": null,
"inReplyTo": "<a1b2c3@example.com>",
"references": [
"<a1b2c3@example.com>"
],
"from": {
"address": "concierge@doorman.example",
"name": "Acme concierge"
},
"to": [
{
"address": "sam@example.com",
"name": null
}
],
"cc": [],
"bcc": [],
"replyTo": null,
"deliveryRole": null,
"subject": "Re: Invoice 2847",
"text": "Thanks, confirming for Thursday.",
"hasHtml": false,
"rawUrl": null,
"sizeBytes": 31,
"category": "personal",
"autoReplyable": false,
"verdict": null,
"spamScore": null,
"authentication": null,
"occurredAt": "2026-11-05T10:05:00.000Z",
"attachments": [],
"providerMessageId": "<b2c3d4@doorman.example>"
}MessageList
A page of an inbox's messages, newest first.
Fields: MessageList
dataMessage[]requiredlimitintegerrequiredThe page size that was applied.
offsetintegerrequiredThe offset that was applied.
Thread
A conversation: the messages that reply to each other, or share a subject and a participant.
Fields: Thread
idstringrequiredA thread identifier. Example:
thr_01jc5a1b2c3d4e5f6g7h8j9k0minboxIdstringrequiredAn inbox identifier. Example:
inb_01jc4q7w9k2m5n8p3r6t1v4x7zsubjectstringrequiredThe subject of the first message. Example:
Invoice 2847participantsstring[]requiredEvery address seen in the thread other than the inbox's own, sorted. Example:
["sam@example.com"]messageCountintegerrequiredisReadbooleanrequiredFalse until the thread is marked read or a reply is sent.
isSeenbooleanoptionalWhether a person has looked at the thread in the console since mail last arrived in it. It is the console's own mark and says nothing about
isRead, which is what an agent polls: a person looking at a thread does not mark it read. Older deployments omit it.metadataMetadataoptionallabelsThreadLabelsoptionalriskLevel"low" | "medium" | "high" | "critical" | nulloptionalThe highest risk level among the thread's inbound messages that the owner has not marked safe; null when none was assessed. Older deployments omit it.
firstMessageAtstring (date-time)requiredExample:
2026-11-05T10:05:00.000ZlastMessageAtstring (date-time)requiredExample:
2026-11-05T10:05:00.000ZlastMessageIdstring | nullrequiredcreatedAtstring (date-time)requiredExample:
2026-11-05T10:05:00.000Z
{
"id": "thr_01jc5a1b2c3d4e5f6g7h8j9k0m",
"inboxId": "inb_01jc4q7w9k2m5n8p3r6t1v4x7z",
"subject": "Invoice 2847",
"participants": [
"sam@example.com"
],
"messageCount": 1,
"isRead": false,
"metadata": {},
"labels": [],
"riskLevel": "low",
"firstMessageAt": "2026-11-05T10:05:00.000Z",
"lastMessageAt": "2026-11-05T10:05:00.000Z",
"lastMessageId": "msg_01jc5a6g7h8j9k0m1n2p3q4r5s",
"createdAt": "2026-11-05T10:05:00.000Z"
}ThreadPage
A page of an inbox's threads, newest activity first. Trashed threads are left out.
Fields: ThreadPage
dataThread[]requiredlimitintegerrequiredThe page size that was applied.
offsetintegerrequiredThe offset that was applied.
totalintegerrequiredHow many threads match, across every page.
ThreadMessages
UpdateThread
Changes to the thread's read state, metadata or labels. Omitted fields stay as they are; metadata and labels replace the entire value.
Fields: UpdateThread
isReadbooleanoptionalmetadataMetadataoptionallabelsThreadLabelsoptional
{
"isRead": true
}SetThreadSeen
Whether a person has looked at the thread: true once they opened it, false to show it as new again.
Fields: SetThreadSeen
seenbooleanrequired
{
"seen": true
}SendAttachment
A file to attach, base64-encoded.
Fields: SendAttachment
filenamestringrequiredcontentTypestringrequiredExample:
application/pdfcontentstring (base64)requiredBase64. The 25 MiB message limit is enforced after decoding.
disposition"attachment" | "inline"optionalInline attachments are referenced from the HTML body by
contentId.contentIdstringoptionalThe Content-ID an inline image is referenced by, as
cid:<contentId>.
{
"filename": "report.pdf",
"contentType": "application/pdf",
"content": "JVBERi0xLjQK..."
}SendMessage
A message to send from an inbox: a new one with to and subject, or a reply with threadId.
Fields: SendMessage
tostring | string[]optionalRecipients. Optional on a reply, where it defaults to the last inbound message's Reply-To or sender.
ccstring | string[]optionalbccstring | string[]optionalreplyTostringoptionalThe address replies should go to instead of the inbox.
subjectstringoptionalRequired on a new message. A reply defaults to
Re: <thread subject>.textstringoptionalThe plain-text body.
htmlstringoptionalThe HTML body. Text is derived from it when
textis absent.bodystringoptionalA convenience: treated as HTML when it looks like HTML, as text otherwise. Ignored when
textorhtmlis given.threadIdstringoptionalA thread id (thr_...). Makes the message a reply in this thread: threading headers, the default subject and recipient, and the quoted previous message come from it. An unknown, foreign or trashed thread answers 404
thread_not_found. Example:thr_01jc5a1b2c3d4e5f6g7h8j9k0mincludeQuotebooleanoptionalOn a reply, quote the previous message under the text. Defaults to true.
attachmentsSendAttachment[]optional
{
"to": "sam@example.com",
"subject": "Thursday",
"text": "Thursday works."
}SendMessageForm
The same send as multipart/form-data: the text fields by name, repeated attachments file fields, includeQuote as text (false, 0 or no turn the quote off).
Fields: SendMessageForm
tostringoptionalccstringoptionalbccstringoptionalreplyTostringoptionalsubjectstringoptionaltextstringoptionalhtmlstringoptionalbodystringoptionalthreadIdstringoptionalincludeQuotestringoptionalattachmentsbinary[]optional
ServicePlan
What the service costs, as it was recorded. Every field may be null.
Fields: ServicePlan
namestring | nullrequiredThe plan's name. Example:
Teamamountnumber | nullrequiredThe price in the currency's main unit: 12.5 for 12.50. Example:
12currencystring | nullrequiredAn ISO 4217 code. Example:
USDinterval"week" | "month" | "year" | nullrequiredHow often the price is charged.
renewsOnstring | nullrequiredThe next renewal or charge, as a calendar day (YYYY-MM-DD).
{
"name": "Team",
"amount": 12,
"currency": "USD",
"interval": "month",
"renewsOn": "2026-12-01"
}ServicePlanInput
What the service costs. It replaces the recorded plan as a whole: a field left out is recorded as null.
Fields: ServicePlanInput
namestring | nulloptionalamountnumber | nulloptionalThe price in the currency's main unit: 12.5 for 12.50.
currencystring | nulloptionalExample:
USDinterval"week" | "month" | "year" | nulloptionalrenewsOnstring | nulloptionalThe next renewal or charge, as a calendar day (YYYY-MM-DD).
{
"name": "Team",
"amount": 12,
"currency": "USD",
"interval": "month",
"renewsOn": "2026-12-01"
}ServiceActorRef
Who signed up: an agent's installation or key, or the person in the console.
Fields: ServiceActorRef
kind"installation" | "key" | "person"requiredidstring | nullrequiredThe installation (
ins_) or key (key_) identifier; null for a person.
{
"kind": "installation",
"id": "ins_01jc5f1a2b3c4d5e6f7g8h9j0k"
}ServiceAttention
An active warning on a service: why it needs the owner's look and when that mail arrived. Cleared only by the owner.
Fields: ServiceAttention
reason"unexplained_code" | "password_reset" | "security"requiredunexplained_codewhen a verification code or sign-in link arrived with no recent agent declaration or read to account for it;password_resetorsecuritywhen the service sent a reset or a security notice.atstring (date-time)requiredWhen the message that raised the warning arrived. Example:
2026-11-05T10:05:00.000Z
{
"reason": "unexplained_code",
"at": "2026-11-05T10:05:00.000Z"
}SignInClientSummary
A relying party as a person is shown it: the host it is identified by, whether it proved the host is its own, and the name it gives itself.
Fields: SignInClientSummary
idstringrequiredAn identifier this API issued (
sic_), or the URL of the identity document the relying party published.namestringrequiredWhat the relying party calls itself. A label, not proof of who it is.
hoststringrequiredThe host the relying party is identified by. Example:
app.example.netverifiedbooleanrequiredWhether the relying party proved that the host is its own. One that has not can sign in only addresses of the account that registered it.
{
"id": "sic_01jc5f1a2b3c4d5e6f7g8h9j0k",
"name": "Example Tools",
"host": "app.example.net",
"verified": true
}ServiceSignIn
How an address signs in to a service with Doorman: its connection to one relying party under the service's domain, what the owner decided about it, and how it has been used.
Fields: ServiceSignIn
idstringrequiredThe identifier of one address's connection to one relying party. Example:
sig_01jc5f1a2b3c4d5e6f7g8h9j0kclientSignInClientSummaryrequiredstate"pending" | "allowed" | "blocked"requiredpendingwhile an agent asked to sign in and the owner has not answered,allowedonce the owner (or the account's own setting) said yes,blockedonce the owner stopped it.shareOwnerbooleanrequiredWhether the relying party is told who owns the agent, when it asks.
requestedAtstring (date-time) | nullrequiredWhen an agent last asked to sign in while it was not allowed to; null otherwise.
decidedAtstring (date-time) | nullrequiredWhen it was last allowed or blocked.
firstSignInAtstring (date-time) | nullrequiredlastSignInAtstring (date-time) | nullrequiredsignInCountintegerrequiredSign-ins completed.
{
"id": "sig_01jc5f1a2b3c4d5e6f7g8h9j0k",
"client": {
"id": "sic_01jc5f1a2b3c4d5e6f7g8h9j0k",
"name": "Example Tools",
"host": "app.example.net",
"verified": true
},
"state": "allowed",
"shareOwner": false,
"requestedAt": null,
"decidedAt": "2026-11-05T10:05:00.000Z",
"firstSignInAt": "2026-11-05T10:05:00.000Z",
"lastSignInAt": "2026-11-05T10:05:00.000Z",
"signInCount": 4
}Service
An outside service an inbox's address is signed up for: found in mail the service sent, declared by an agent before it signed up, or added by a person.
Fields: Service
idstringrequiredA passport service identifier. Example:
svc_01jc5g2b3c4d5e6f7g8h9j0k1minboxIdstringrequiredAn inbox identifier. Example:
inb_01jc4q7w9k2m5n8p3r6t1v4x7zinboxAddressstringrequiredThe address the service knows the agent by. Example:
concierge@doorman.exampledomainstringrequiredThe service's registrable domain. This is what identifies it: when it was found in mail, the sender was authenticated for it. Example:
example.netnamestringrequiredA label: the sender's display name when the service was found in mail, or the name an agent or a person gave it. It is a claim, not proof; the domain is what was checked. Example:
Example Toolsstatus"pending" | "active" | "cancelled" | "archived"requiredpendinguntil the sign-up is confirmed (a welcome or a receipt arrives, the agent reads its code, or a person says so),active,cancelled, orarchivedwhen a person set it aside as not a sign-up.source"detected" | "declared" | "manual"requireddetectedfrom mail,declaredby an agent, ormanualwhen a person added it.acquiredByServiceActorRef | nullrequiredWho signed up: the agent that declared the service or first read one of its codes, or the person who added it. Null when it was only found in mail.
notestring | nullrequiredA note a person or an agent left.
planServicePlan | nullrequiredWhat the service costs, when someone recorded it.
attentionServiceAttention | nullrequiredAn unacknowledged warning on the service (an unexplained code or link, a password reset, or a security notice); null otherwise, and always null on archived services.
invitedAtstring (date-time) | nullrequiredWhen the newest invitation from the service arrived: mail that asks the address to join, with a link that accepts. The invitation is open while the service is
pending. Null when the service never sent one.signInsServiceSignIn[]requiredHow the address signs in to the service with Doorman: one entry for each relying party under the service's domain. Empty when it gets in some other way, or where the deployment has not switched sign-in on.
lastSignal"verification" | "welcome" | "receipt" | "password_reset" | "security" | "trial" | "cancellation" | "other" | nullrequiredWhat the newest mail from the service was about.
lastSignalAtstring (date-time) | nullrequiredlastReceiptAtstring (date-time) | nullrequiredWhen the newest receipt or invoice arrived: a sign that the service is paid.
lastSecurityAtstring (date-time) | nullrequiredWhen the newest password reset or security notice arrived.
messageCountintegerrequiredMessages tied to the service.
firstSeenAtstring (date-time) | nullrequiredWhen the first mail from the service arrived; null until one does.
lastSeenAtstring (date-time) | nullrequiredWhen the newest mail from the service arrived.
createdAtstring (date-time)requiredExample:
2026-11-05T10:05:00.000ZupdatedAtstring (date-time)requiredExample:
2026-11-05T10:05:00.000Z
{
"id": "svc_01jc5g2b3c4d5e6f7g8h9j0k1m",
"inboxId": "inb_01jc4q7w9k2m5n8p3r6t1v4x7z",
"inboxAddress": "concierge@doorman.example",
"domain": "example.net",
"name": "Example Tools",
"status": "active",
"source": "declared",
"acquiredBy": {
"kind": "installation",
"id": "ins_01jc5f1a2b3c4d5e6f7g8h9j0k"
},
"note": null,
"plan": {
"name": "Team",
"amount": 12,
"currency": "USD",
"interval": "month",
"renewsOn": "2026-12-01"
},
"attention": null,
"invitedAt": null,
"lastSignal": "receipt",
"lastSignalAt": "2026-11-05T10:05:00.000Z",
"lastReceiptAt": "2026-11-05T10:05:00.000Z",
"lastSecurityAt": null,
"messageCount": 3,
"firstSeenAt": "2026-11-05T10:05:00.000Z",
"lastSeenAt": "2026-11-05T10:05:00.000Z",
"createdAt": "2026-11-05T10:05:00.000Z",
"updatedAt": "2026-11-05T10:05:00.000Z",
"signIns": []
}ServicePage
A page of services, newest activity first.
Fields: ServicePage
dataService[]requiredlimitintegerrequiredThe page size that was applied.
offsetintegerrequiredThe offset that was applied.
totalintegerrequiredHow many services match, across every page.
ServiceEvidence
A message that tied the service to the address: what it was about and where to read it, never its text.
Fields: ServiceEvidence
messageIdstringrequiredA message identifier. Example:
msg_01jc5a6g7h8j9k0m1n2p3q4r5sthreadIdstringrequiredA thread identifier. Example:
thr_01jc5a1b2c3d4e5f6g7h8j9k0msubjectstringrequiredExample:
Your verification codesignal"verification" | "welcome" | "receipt" | "password_reset" | "security" | "trial" | "cancellation" | "other"requiredoccurredAtstring (date-time)requiredExample:
2026-11-05T10:05:00.000Z
{
"messageId": "msg_01jc5a6g7h8j9k0m1n2p3q4r5s",
"threadId": "thr_01jc5a1b2c3d4e5f6g7h8j9k0m",
"subject": "Your verification code",
"signal": "verification",
"occurredAt": "2026-11-05T10:05:00.000Z"
}ServiceDetail
A service with the newest messages that tied it to the address.
Fields: ServiceDetail
idstringrequiredA passport service identifier. Example:
svc_01jc5g2b3c4d5e6f7g8h9j0k1minboxIdstringrequiredAn inbox identifier. Example:
inb_01jc4q7w9k2m5n8p3r6t1v4x7zinboxAddressstringrequiredThe address the service knows the agent by. Example:
concierge@doorman.exampledomainstringrequiredThe service's registrable domain. This is what identifies it: when it was found in mail, the sender was authenticated for it. Example:
example.netnamestringrequiredA label: the sender's display name when the service was found in mail, or the name an agent or a person gave it. It is a claim, not proof; the domain is what was checked. Example:
Example Toolsstatus"pending" | "active" | "cancelled" | "archived"requiredpendinguntil the sign-up is confirmed (a welcome or a receipt arrives, the agent reads its code, or a person says so),active,cancelled, orarchivedwhen a person set it aside as not a sign-up.source"detected" | "declared" | "manual"requireddetectedfrom mail,declaredby an agent, ormanualwhen a person added it.acquiredByServiceActorRef | nullrequiredWho signed up: the agent that declared the service or first read one of its codes, or the person who added it. Null when it was only found in mail.
notestring | nullrequiredA note a person or an agent left.
planServicePlan | nullrequiredWhat the service costs, when someone recorded it.
attentionServiceAttention | nullrequiredAn unacknowledged warning on the service (an unexplained code or link, a password reset, or a security notice); null otherwise, and always null on archived services.
invitedAtstring (date-time) | nullrequiredWhen the newest invitation from the service arrived: mail that asks the address to join, with a link that accepts. The invitation is open while the service is
pending. Null when the service never sent one.signInsServiceSignIn[]requiredHow the address signs in to the service with Doorman: one entry for each relying party under the service's domain. Empty when it gets in some other way, or where the deployment has not switched sign-in on.
lastSignal"verification" | "welcome" | "receipt" | "password_reset" | "security" | "trial" | "cancellation" | "other" | nullrequiredWhat the newest mail from the service was about.
lastSignalAtstring (date-time) | nullrequiredlastReceiptAtstring (date-time) | nullrequiredWhen the newest receipt or invoice arrived: a sign that the service is paid.
lastSecurityAtstring (date-time) | nullrequiredWhen the newest password reset or security notice arrived.
messageCountintegerrequiredMessages tied to the service.
firstSeenAtstring (date-time) | nullrequiredWhen the first mail from the service arrived; null until one does.
lastSeenAtstring (date-time) | nullrequiredWhen the newest mail from the service arrived.
createdAtstring (date-time)requiredExample:
2026-11-05T10:05:00.000ZupdatedAtstring (date-time)requiredExample:
2026-11-05T10:05:00.000ZevidenceServiceEvidence[]requiredNewest first, at most 20. Messages in trashed threads are left out.
{
"id": "svc_01jc5g2b3c4d5e6f7g8h9j0k1m",
"inboxId": "inb_01jc4q7w9k2m5n8p3r6t1v4x7z",
"inboxAddress": "concierge@doorman.example",
"domain": "example.net",
"name": "Example Tools",
"status": "active",
"source": "declared",
"acquiredBy": {
"kind": "installation",
"id": "ins_01jc5f1a2b3c4d5e6f7g8h9j0k"
},
"note": null,
"plan": {
"name": "Team",
"amount": 12,
"currency": "USD",
"interval": "month",
"renewsOn": "2026-12-01"
},
"attention": null,
"invitedAt": null,
"lastSignal": "receipt",
"lastSignalAt": "2026-11-05T10:05:00.000Z",
"lastReceiptAt": "2026-11-05T10:05:00.000Z",
"lastSecurityAt": null,
"messageCount": 3,
"firstSeenAt": "2026-11-05T10:05:00.000Z",
"lastSeenAt": "2026-11-05T10:05:00.000Z",
"createdAt": "2026-11-05T10:05:00.000Z",
"updatedAt": "2026-11-05T10:05:00.000Z",
"signIns": [],
"evidence": [
{
"messageId": "msg_01jc5a6g7h8j9k0m1n2p3q4r5s",
"threadId": "thr_01jc5a1b2c3d4e5f6g7h8j9k0m",
"subject": "Your receipt",
"signal": "receipt",
"occurredAt": "2026-11-05T10:05:00.000Z"
}
]
}CreateService
A service the inbox's address is about to be signed up for, or already is. An agent declares one before it signs up, so the codes that arrive for it are attributed to the agent; a person adds one by hand. A domain the inbox already has answers with that service. What it costs is recorded afterwards, with an update.
Fields: CreateService
domainstringrequiredThe service's domain, or a host under it:
app.example.netis recorded asexample.net. Example:example.netnamestringoptionalA label, at most 100 characters. Defaults to the domain.
notestring | nulloptionalAt most 500 characters: why the agent signed up, or the plan it chose and its price.
{
"domain": "example.net",
"name": "Example Tools",
"note": "Sign-up for the weekly report"
}UpdateService
Changes to a service. Fields left out stay as they are; null clears the note, the plan, or an active warning.
Fields: UpdateService
namestringoptionalstatus"pending" | "active" | "cancelled" | "archived"optionalarchivedsets the service aside as not a sign-up: mail from it no longer makes it pending again. It clears any active warning and stops every one of the service'ssignIns.notestring | nulloptionalplanServicePlanInput | nulloptionalattentionanyoptionalNull clears an active
attentionwarning once the owner has checked the account. Needs a console session unless the account allows its account keys to (403session_required).signInobjectoptionalA decision about one of the service's
signIns. Stopping one, and no longer sharing the owner, are open to any key that reaches the service. Allowing one, and sharing the owner, need a console session unless the account allows its account keys to (403session_required).idstringrequiredThe identifier of one address's connection to one relying party. Example:
sig_01jc5f1a2b3c4d5e6f7g8h9j0kstate"allowed" | "blocked"optionalallowedlets the address sign in to the relying party;blockedstops it and ends the links, codes and tokens it was given.shareOwnerbooleanoptionalWhether the relying party is told who owns the agent, when it asks.
{
"status": "cancelled"
}PassportSettings
How the account's passport alerts and briefs its owner, and what its agents may do alone when they sign in with Doorman.
Fields: PassportSettings
alertEmailsbooleanrequiredSend an email to
alertEmailwhen an authenticated service sends a password reset, a security notice, or a verification code or sign-in link that no recent agent action explains.alertEmailstring (email)requiredWhere alert emails are sent: the account owner's address. Example:
sam@example.comemailAvailablebooleanrequiredWhether this deployment has email sending configured for owner alerts.
signInAvailablebooleanrequiredWhether this deployment has Sign in with Doorman switched on. Where it has not, the two settings below change nothing.
agentSignInbooleanrequiredWhether an agent may sign in to a service the owner has not allowed yet. Off by default: the owner allows each service once for each address, and the agent signs in alone from then on.
shareOwnerbooleanrequiredWhether a service an agent signed in to alone is told who owns the agent, when it asks. Off by default. A service the owner allowed is told what the owner chose then.
briefingEmailsbooleanrequiredWhether a daily briefing is emailed to
alertEmail: how many emails arrived and how many things wait for a decision, in counts only, with links to the console. No briefing is sent on a day with nothing to report.briefingHourintegerrequiredThe hour of the day, in
timeZone, at which the briefing is sent.timeZonestringrequiredThe IANA time zone
briefingHouris read in. Example:America/GuayaquilupdatedAtstring (date-time) | nullrequiredWhen these settings were last changed; null while they are the default.
{
"alertEmails": false,
"alertEmail": "dana@example.com",
"emailAvailable": true,
"signInAvailable": true,
"agentSignIn": false,
"shareOwner": false,
"briefingEmails": false,
"briefingHour": 8,
"timeZone": "UTC",
"updatedAt": null
}UpdatePassportSettings
Changes to the passport's settings. Fields left out stay as they are. Switching alertEmails or briefingEmails off, and switching agentSignIn or shareOwner on, need a console session unless the account allows its account keys to.
Fields: UpdatePassportSettings
alertEmailsbooleanoptionalWhether to email the account owner when a service receives an unexplained code or link, a password reset, or a security notice.
agentSignInbooleanoptionalWhether an agent may sign in to a service the owner has not allowed yet.
shareOwnerbooleanoptionalWhether a service an agent signed in to alone is told who owns the agent, when it asks.
briefingEmailsbooleanoptionalWhether to email the account owner a daily briefing in counts only. The first one covers what arrives from the moment it is switched on.
briefingHourintegeroptionalThe hour of the day, in
timeZone, at which the briefing is sent.timeZonestringoptionalThe IANA time zone
briefingHouris read in. Example:America/Guayaquil
{
"alertEmails": true
}VerificationLink
A sign-in or confirmation link read from a message.
Fields: VerificationLink
urlstringrequiredExample:
https://app.example.net/verify?token=...hoststringrequiredExample:
app.example.netmatchesSenderbooleanrequiredTrue when the link's registrable domain is the authenticated sender's. Open any other link only when your user agrees.
{
"url": "https://app.example.net/verify?token=abc",
"host": "app.example.net",
"matchesSender": true
}Verification
A verification code or a sign-in link that arrived within the last hour, or an invitation's link from the last 14 days, read from the message by the inbox.
Fields: Verification
messageIdstringrequiredA message identifier. Example:
msg_01jc5a6g7h8j9k0m1n2p3q4r5sthreadIdstringrequiredA thread identifier. Example:
thr_01jc5a1b2c3d4e5f6g7h8j9k0minboxIdstringrequiredAn inbox identifier. Example:
inb_01jc4q7w9k2m5n8p3r6t1v4x7zserviceIdstring | nullrequiredThe service in the inbox's passport, when the sender was authenticated.
domainstring | nullrequiredThe sender's registrable domain when the sender was authenticated (DMARC passed); null otherwise. Example:
example.netfromstringrequiredThe sender's address. Example:
no-reply@example.netsubjectstringrequiredExample:
Your verification codesignal"verification" | "welcome" | "receipt" | "password_reset" | "security" | "trial" | "cancellation" | "other"requiredWhat the message is for:
verificationfor a sign-up or sign-in,password_resetfor a reset someone asked for. A reset or a code nobody on your side asked for is a warning sign.codestring | nullrequiredThe one-time code, or null when the message carried a link only. Example:
849204linkVerificationLink | nullrequiredverifiedbooleanrequiredWhether the sender was authenticated (DMARC passed). Treat an unverified code or link with suspicion.
unexplainedbooleanrequiredTrue once an authenticated
verificationcode or link has waited past the grace window without a recent agent declaration or read to account for it.invitationbooleanrequiredTrue when the link accepts an invitation to join the service, which someone there sent to the address. Follow it only when your user asked you to join that service: an invitation that arrives on its own is not a reason to join. An invitation is never
unexplained.receivedAtstring (date-time)requiredExample:
2026-11-05T10:05:00.000ZexpiresAtstring (date-time)requiredWhen this read stops serving it. The service's own expiry may be sooner. Example:
2026-11-05T10:05:00.000ZreadAtstring (date-time) | nullrequiredWhen a credential first read it here; null until then.
{
"messageId": "msg_01jc5a6g7h8j9k0m1n2p3q4r5s",
"threadId": "thr_01jc5a1b2c3d4e5f6g7h8j9k0m",
"inboxId": "inb_01jc4q7w9k2m5n8p3r6t1v4x7z",
"serviceId": "svc_01jc5g2b3c4d5e6f7g8h9j0k1m",
"domain": "example.net",
"from": "no-reply@example.net",
"subject": "Your verification code",
"signal": "verification",
"code": "849204",
"link": null,
"verified": true,
"unexplained": false,
"invitation": false,
"receivedAt": "2026-11-05T10:05:00.000Z",
"expiresAt": "2026-11-05T11:05:00.000Z",
"readAt": null
}VerificationList
The verification codes and sign-in links of the last hour and the invitations of the last 14 days, newest first.
Fields: VerificationList
dataVerification[]requiredAt most 20.
StartSignIn
The service an agent wants to sign in to with the inbox's address: its domain, or the relying party's own id. One of the two.
Fields: StartSignIn
domainstringoptionalThe service's domain or host.
clientIdstringoptionalOr the relying party's id, when the service states one.
{
"domain": "app.example.net"
}SignInStart
What starting a sign-in answered. Only ready carries a link, and the link is a secret.
Fields: SignInStart
status"ready" | "approval_required" | "blocked" | "unsupported"requiredready: openurlin the browser that should hold the session at the service, beforeexpiresAt.approval_required: the owner has to allow this service once, atapprovalUrl; start again after they have.blocked: the owner stopped this address signing in there, and it is not to sign in there another way.unsupported: the service does not accept Sign in with Doorman, so sign up with its own form and the verification codes instead.inboxIdstringrequiredAn inbox identifier. Example:
inb_01jc4q7w9k2m5n8p3r6t1v4x7zserviceIdstring | nullrequiredThe service in the inbox's passport, recorded when the sign-in started; null when
unsupported.clientSignInClientSummary | nullrequiredThe relying party the sign-in is for; null when
unsupported.urlstring | nullrequiredreadyonly: the single-use sign-in link. It signs this address in to this service, once. Open it in the browser that should hold the session, and never send it to anyone or write it anywhere.approvalUrlstring | nullrequiredapproval_requiredonly: where the owner allows the service. Tell your user; it needs their own session.expiresAtstring (date-time) | nullrequiredreadyonly: when the link stops working.
{
"status": "ready",
"inboxId": "inb_01jc4q7w9k2m5n8p3r6t1v4x7z",
"serviceId": "svc_01jc5g2b3c4d5e6f7g8h9j0k1m",
"client": {
"id": "sic_01jc5f1a2b3c4d5e6f7g8h9j0k",
"name": "Example Tools",
"host": "app.example.net",
"verified": true
},
"url": "https://doorman.example/passport/start?link=dsl_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx",
"approvalUrl": null,
"expiresAt": "2026-11-05T10:10:00.000Z"
}SignInApproval
A sign-in that waits for the owner's decision, bound to the console session that read it. Nothing is allowed automatically.
Fields: SignInApproval
requestIdstringrequiredA waiting authorization request. Example:
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaclientSignInClientSummaryrequiredinboxIdstring | nullrequiredThe address that would be signed in, when the request already says which: the browser opened a sign-in link for it, or the relying party named it. Null when the owner has to choose one.
inboxAddressstring | nullrequiredExample:
concierge@doorman.examplestate"pending" | "allowed" | "blocked" | nullrequiredWhat was decided before about this address at this relying party; null when nothing was, or when no address is named yet.
shareOwnerbooleanrequiredWhether this relying party is already told who owns the agent.
scopes("openid" | "email" | "profile" | "owner_profile" | "owner_email")[]requiredWhat the relying party asked to be told.
ownerRequestedbooleanrequiredWhether it asked who owns the agent. The owner answers that separately, with
shareOwner.redirectHoststringrequiredWhere the browser goes back to once the owner decides. Example:
app.example.netexpiresAtstring (date-time)requiredExample:
2026-11-05T10:05:00.000ZcsrfstringrequiredSent back with the decision. Each read replaces it. Example:
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
{
"requestId": "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
"client": {
"id": "sic_01jc5f1a2b3c4d5e6f7g8h9j0k",
"name": "Example Tools",
"host": "app.example.net",
"verified": true
},
"inboxId": "inb_01jc4q7w9k2m5n8p3r6t1v4x7z",
"inboxAddress": "concierge@doorman.example",
"state": null,
"shareOwner": false,
"scopes": [
"openid",
"email"
],
"ownerRequested": false,
"redirectHost": "app.example.net",
"expiresAt": "2026-11-05T10:20:00.000Z",
"csrf": "bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb"
}DecideSignIn
The owner's decision on one waiting sign-in. Allowing it allows the address at that relying party from then on, until the owner stops it.
Fields: DecideSignIn
decision"allow" | "deny"requiredinboxIdstringoptionalThe address to sign in, when the request named none. Where it named one, leave it out or repeat it. Example:
inb_01jc4q7w9k2m5n8p3r6t1v4x7zshareOwnerbooleanoptionalWhether the relying party is told who owns the agent, when it asks. Left out, a new connection does not, and an existing one keeps its choice.
csrfstringrequiredA waiting authorization request. Example:
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
{
"decision": "allow",
"shareOwner": false,
"csrf": "bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb"
}SignInDecision
Where the browser goes next: back to the relying party, with a code or with access_denied.
Fields: SignInDecision
redirectUrlstringrequired
{
"redirectUrl": "https://app.example.net/auth/callback?state=af0ifjsldkj&iss=https%3A%2F%2Fid.doorman.example&code=dsc_zzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzz"
}SignInLinkRequest
A sign-in link, as the web app's server presents it for the browser that opened it.
Fields: SignInLinkRequest
linkstringrequiredThe secret a sign-in link carries: single use, 5 minutes. Example:
dsl_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
{
"link": "dsl_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"
}SignInLinkPreview
What a sign-in link is for, so the page can say it before anyone continues. It carries no secret.
Fields: SignInLinkPreview
inboxAddressstringrequiredExample:
concierge@doorman.exampleclientSignInClientSummaryrequiredexpiresAtstring (date-time)requiredExample:
2026-11-05T10:05:00.000Z
{
"inboxAddress": "concierge@doorman.example",
"client": {
"id": "sic_01jc5f1a2b3c4d5e6f7g8h9j0k",
"name": "Example Tools",
"host": "app.example.net",
"verified": true
},
"expiresAt": "2026-11-05T10:10:00.000Z"
}SignInLinkOpened
The link is spent. The web app keeps binding in a short-lived cookie on its own origin and sends the browser to startUrl.
Fields: SignInLinkOpened
bindingstringrequiredWhat ties one browser to the sign-in it opened. Example:
dsb_yyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyybindingExpiresAtstring (date-time)requiredExample:
2026-11-05T10:05:00.000ZstartUrlstringrequiredWhere the browser continues: the relying party's start URL with
issandlogin_hint, or its own front page when it registered none.
{
"binding": "dsb_yyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyy",
"bindingExpiresAt": "2026-11-05T10:10:00.000Z",
"startUrl": "https://app.example.net/auth/doorman?iss=https%3A%2F%2Fid.doorman.example&login_hint=concierge%40doorman.example"
}ResumeSignIn
A waiting authorization request, and the binding its browser holds when it opened a sign-in link.
Fields: ResumeSignIn
requestIdstringrequiredA waiting authorization request. Example:
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaabindingstringoptionalFrom the browser's cookie. Left out when the browser holds none. Example:
dsb_yyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyy
{
"requestId": "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
"binding": "dsb_yyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyy"
}SignInResumed
What became of a waiting authorization request: the browser goes back to the relying party, or the owner has to decide first.
Fields: SignInResumed
status"redirect" | "approval_required"requiredredirectUrlstring | nullrequiredredirectonly: back to the relying party, with a code or with an error.approvalUrlstring | nullrequiredapproval_requiredonly: where the owner decides, in the console.
{
"status": "redirect",
"redirectUrl": "https://app.example.net/auth/callback?state=af0ifjsldkj&iss=https%3A%2F%2Fid.doorman.example&code=dsc_zzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzz",
"approvalUrl": null
}CreateSignInClient
Register a relying party: a service that lets agents sign in with Doorman. It is identified by its host, and every URL it registers is on that host.
Fields: CreateSignInClient
namestringrequiredWhat the service calls itself. People are shown the host beside it.
hoststringrequiredThe host agents sign in at. A public name the service can prove is its own, or
localhost,127.0.0.1or[::1]while developing: a relying party on your own machine signs in your own addresses only. Example:app.example.netredirectUrisstring[]requiredstartUrlstringoptionalWhere the service starts a Sign in with Doorman (OpenID Connect's
initiate_login_uri). A sign-in link sends the browser there withissandlogin_hint. Without one, the browser is sent to the service's front page.tokenEndpointAuthMethod"client_secret_basic" | "client_secret_post" | "none"optionalDefaults to
client_secret_basic. A relying party with a secret may present it either way.noneregisters a public one, which holds no secret and uses S256 PKCE.
{
"name": "Example Tools",
"host": "app.example.net",
"redirectUris": [
"https://app.example.net/auth/callback"
],
"startUrl": "https://app.example.net/auth/doorman"
}UpdateSignInClient
Replace the fields given. The host never changes: register another relying party for another host.
Fields: UpdateSignInClient
namestringoptionalredirectUrisstring[]optionalEvery one on the relying party's host.
startUrlstring | nulloptionalOn the relying party's host. Null removes it.
{
"name": "Example Tools Workspace"
}SignInClient
A relying party a developer registered, without its secret.
Fields: SignInClient
idstringrequiredA registered relying party's identifier. Example:
sic_01jc5f1a2b3c4d5e6f7g8h9j0knamestringrequiredhoststringrequiredredirectUrisstring[]requiredstartUrlstring | nullrequiredtokenEndpointAuthMethod"client_secret_basic" | "client_secret_post" | "none"requiredverifiedbooleanrequiredWhether the host proved it is the relying party's own. Until it does, only addresses of the account that registered it can sign in.
verifiedAtstring (date-time) | nullrequiredproofobject | nullrequiredHow the host proves it is the relying party's own; null for a host on the developer's own machine, which has nothing to prove.
urlstringrequiredServe the file here, over HTTPS, without a redirect.
bodyobjectrequiredThe file's JSON. Other fields beside these two are ignored.
client_idstringrequiredA registered relying party's identifier. Example:
sic_01jc5f1a2b3c4d5e6f7g8h9j0kproofstringrequiredstatus"active" | "deleted"requiredcreatedAtstring (date-time)requiredExample:
2026-11-05T10:05:00.000ZupdatedAtstring (date-time)requiredExample:
2026-11-05T10:05:00.000Z
{
"id": "sic_01jc5f1a2b3c4d5e6f7g8h9j0k",
"name": "Example Tools",
"host": "app.example.net",
"redirectUris": [
"https://app.example.net/auth/callback"
],
"startUrl": "https://app.example.net/auth/doorman",
"tokenEndpointAuthMethod": "client_secret_basic",
"verified": false,
"verifiedAt": null,
"proof": {
"url": "https://app.example.net/.well-known/doorman-sign-in.json",
"body": {
"client_id": "sic_01jc5f1a2b3c4d5e6f7g8h9j0k",
"proof": "ccccccccccccccccccccccccccccccccccccccccccc"
}
},
"status": "active",
"createdAt": "2026-11-05T10:05:00.000Z",
"updatedAt": "2026-11-05T10:05:00.000Z"
}CreatedSignInClient
A new relying party and, unless it is a public one, its secret, shown once.
Fields: CreatedSignInClient
idstringrequiredA registered relying party's identifier. Example:
sic_01jc5f1a2b3c4d5e6f7g8h9j0knamestringrequiredhoststringrequiredredirectUrisstring[]requiredstartUrlstring | nullrequiredtokenEndpointAuthMethod"client_secret_basic" | "client_secret_post" | "none"requiredverifiedbooleanrequiredWhether the host proved it is the relying party's own. Until it does, only addresses of the account that registered it can sign in.
verifiedAtstring (date-time) | nullrequiredproofobject | nullrequiredHow the host proves it is the relying party's own; null for a host on the developer's own machine, which has nothing to prove.
urlstringrequiredServe the file here, over HTTPS, without a redirect.
bodyobjectrequiredThe file's JSON. Other fields beside these two are ignored.
client_idstringrequiredA registered relying party's identifier. Example:
sic_01jc5f1a2b3c4d5e6f7g8h9j0kproofstringrequiredstatus"active" | "deleted"requiredcreatedAtstring (date-time)requiredExample:
2026-11-05T10:05:00.000ZupdatedAtstring (date-time)requiredExample:
2026-11-05T10:05:00.000ZclientSecretstring | nullrequired
SignInClientList
The relying parties the account registered, oldest first.
Fields: SignInClientList
dataSignInClient[]required
SignInClientSecret
A relying party's new secret, shown once. The one before it stops working at once.
Fields: SignInClientSecret
idstringrequiredA registered relying party's identifier. Example:
sic_01jc5f1a2b3c4d5e6f7g8h9j0kclientSecretstringrequired
SignInTokenRequest
A form-encoded code exchange. A relying party with a secret sends it with HTTP Basic or in the body; a public one sends the PKCE verifier. Other fields are ignored.
Fields: SignInTokenRequest
grant_type"authorization_code"requiredcodestringrequiredredirect_uristringrequiredclient_idstringoptionalclient_secretstringoptionalcode_verifierstringoptional
{
"grant_type": "authorization_code",
"code": "replace-with-the-code-from-the-callback",
"redirect_uri": "https://app.example.net/auth/callback"
}SignInTokens
The id token, and an access token for the userinfo endpoint. There is no refresh token: a longer session is the relying party's own.
Fields: SignInTokens
access_tokenstringrequiredtoken_type"Bearer"requiredexpires_inintegerrequiredid_tokenstringrequiredAn ES256 JWT. Check its signature against the published keys, and its
iss,aud,expandnonce.scopestringrequiredWhat was granted, which may be less than was asked: who owns the agent is told only where the owner allowed it.
SignInUserInfo
The claims about the signed-in address, read again from live state on every call.
Fields: SignInUserInfo
substringrequiredThe address's subject: the same at every relying party, and a new one if the address is ever given up and issued again. Example:
f0Jx2kQp9wLr7TzV3mYb8nHc5dGs1aKe4uWq6oPi0Agactor_type"agent"requiredAlways
agent: the one signing in is software acting for its owner.emailstringoptionalemail: the address. Example:concierge@doorman.exampleemail_verifiedtrueoptionalnamestringoptionalprofile: the address's display name, when it has one.owner_substringoptionalprofile: who owns the agent, as an identifier that is different at every relying party.owner_namestringoptionalowner_profile, where the owner allowed it: the owner's name.owner_emailstringoptionalowner_email, where the owner allowed it: the owner's own address.owner_email_verifiedtrueoptional
{
"sub": "f0Jx2kQp9wLr7TzV3mYb8nHc5dGs1aKe4uWq6oPi0Ag",
"actor_type": "agent",
"email": "concierge@doorman.example",
"email_verified": true
}SignInDiscovery
OpenID Connect discovery for Sign in with Doorman.
Fields: SignInDiscovery
issuerstringrequiredauthorization_endpointstringrequiredtoken_endpointstringrequireduserinfo_endpointstringrequiredjwks_uristringrequiredresponse_types_supported"code"[]requiredresponse_modes_supported"query"[]requiredgrant_types_supported"authorization_code"[]requiredsubject_types_supported"public"[]requiredid_token_signing_alg_values_supported"ES256"[]requiredscopes_supported("openid" | "email" | "profile" | "owner_profile" | "owner_email")[]requiredclaims_supported("sub" | "actor_type" | "email" | "email_verified" | "name" | "owner_sub" | "owner_name" | "owner_email" | "owner_email_verified" | "iss" | "aud" | "iat" | "exp" | "auth_time" | "jti" | "nonce")[]requiredtoken_endpoint_auth_methods_supported("client_secret_basic" | "client_secret_post" | "none")[]requiredcode_challenge_methods_supported"S256"[]requiredauthorization_response_iss_parameter_supportedtruerequiredclient_id_metadata_document_supportedtruerequiredrequest_parameter_supportedfalserequiredrequest_uri_parameter_supportedfalserequiredclaims_parameter_supportedfalserequired
{
"issuer": "https://id.doorman.example",
"authorization_endpoint": "https://id.doorman.example/sign-in/authorize",
"token_endpoint": "https://id.doorman.example/sign-in/token",
"userinfo_endpoint": "https://id.doorman.example/sign-in/userinfo",
"jwks_uri": "https://id.doorman.example/sign-in/jwks.json",
"response_types_supported": [
"code"
],
"response_modes_supported": [
"query"
],
"grant_types_supported": [
"authorization_code"
],
"subject_types_supported": [
"public"
],
"id_token_signing_alg_values_supported": [
"ES256"
],
"scopes_supported": [
"openid",
"email",
"profile",
"owner_profile",
"owner_email"
],
"claims_supported": [
"sub",
"actor_type",
"email",
"email_verified",
"name",
"owner_sub",
"owner_name",
"owner_email",
"owner_email_verified",
"iss",
"aud",
"iat",
"exp",
"auth_time",
"jti",
"nonce"
],
"token_endpoint_auth_methods_supported": [
"client_secret_basic",
"client_secret_post",
"none"
],
"code_challenge_methods_supported": [
"S256"
],
"authorization_response_iss_parameter_supported": true,
"client_id_metadata_document_supported": true,
"request_parameter_supported": false,
"request_uri_parameter_supported": false,
"claims_parameter_supported": false
}SignInJwk
One public signing key: P-256, for ES256. Its kid is the key's RFC 7638 thumbprint.
Fields: SignInJwk
kty"EC"requiredcrv"P-256"requiredxstringrequiredystringrequiredkidstringrequireduse"sig"requiredalg"ES256"required
SignInJwks
The provider's public signing keys. A key is published before it signs and stays published until every token it signed has expired.
Fields: SignInJwks
keysSignInJwk[]required
SignInProtocolError
A protocol error, distinct from the Inbox API's error envelope: the code, and a fixed sentence when one helps. The sentence is written by the provider and never carries text from the request.
Fields: SignInProtocolError
error"invalid_request" | "invalid_client" | "invalid_grant" | "invalid_scope" | "unauthorized_client" | "unsupported_grant_type" | "unsupported_response_type" | "access_denied" | "login_required" | "interaction_required" | "request_not_supported" | "request_uri_not_supported" | "registration_not_supported" | "invalid_token" | "invalid_client_metadata" | "temporarily_unavailable" | "server_error"requirederror_descriptionstringoptional
{
"error": "invalid_grant"
}ApiKey
An API key as the API lists it. The token itself appears once, when the key is created.
Fields: ApiKey
idstringrequiredAn API key identifier. Example:
key_01jc5c0z9y8x7w6v5t4t3s2r1qinboxIdstring | nullrequiredThe inbox an inbox-scoped key reaches; null for an account key.
namestringrequiredA label, possibly empty. Example:
OrchestratortokenPrefixstringrequiredThe first ten characters of the token, starting with dm_. Example:
dm_9f3abcdlast4stringrequiredThe last four characters of the token. Example:
m2x8createdAtstring (date-time)requiredExample:
2026-11-05T10:05:00.000ZlastUsedAtstring (date-time) | nullrequiredWhen the key last authenticated a request, to the minute; null until then.
createdByobject | nulloptionalThe signed-in person who minted the key, so a team can tell whose it is. Null for a key minted with another key, or before this was recorded. Older deployments omit it.
userIdstringrequiredThe identity provider's user id. Example:
user_2abcDEF3ghiJKLnamestringrequiredThe person's name when the key was minted, or their address when they had no name. Example:
Dana Ortiz
{
"id": "key_01jc5c0z9y8x7w6v5t4t3s2r1q",
"inboxId": null,
"name": "Orchestrator",
"tokenPrefix": "dm_9f3abcd",
"last4": "m2x8",
"createdAt": "2026-11-05T10:05:00.000Z",
"lastUsedAt": null
}ApiKeyListItem
A key in the account-wide list; inboxAddress is present when inbox-scoped keys were included.
Fields: ApiKeyListItem
idstringrequiredAn API key identifier. Example:
key_01jc5c0z9y8x7w6v5t4t3s2r1qinboxIdstring | nullrequiredThe inbox an inbox-scoped key reaches; null for an account key.
namestringrequiredA label, possibly empty. Example:
OrchestratortokenPrefixstringrequiredThe first ten characters of the token, starting with dm_. Example:
dm_9f3abcdlast4stringrequiredThe last four characters of the token. Example:
m2x8createdAtstring (date-time)requiredExample:
2026-11-05T10:05:00.000ZlastUsedAtstring (date-time) | nullrequiredWhen the key last authenticated a request, to the minute; null until then.
createdByobject | nulloptionalThe signed-in person who minted the key, so a team can tell whose it is. Null for a key minted with another key, or before this was recorded. Older deployments omit it.
userIdstringrequiredThe identity provider's user id. Example:
user_2abcDEF3ghiJKLnamestringrequiredThe person's name when the key was minted, or their address when they had no name. Example:
Dana OrtizinboxAddressstring | nulloptionalThe address of an inbox-scoped key's inbox; null for an account key. Only with
scope=all.
{
"id": "key_01jc5c0z9y8x7w6v5t4t3s2r1q",
"inboxId": "inb_01jc4q7w9k2m5n8p3r6t1v4x7z",
"name": "Support agent on the laptop",
"tokenPrefix": "dm_7c1xyza",
"last4": "k9q2",
"createdAt": "2026-11-05T10:05:00.000Z",
"lastUsedAt": "2026-11-05T10:05:00.000Z",
"inboxAddress": "concierge@doorman.example"
}ApiKeyList
Active keys, oldest first.
Fields: ApiKeyList
dataApiKeyListItem[]required
CreatedApiKey
A freshly minted key with its token, which is shown once and stored only as a hash.
Fields: CreatedApiKey
idstringrequiredAn API key identifier. Example:
key_01jc5c0z9y8x7w6v5t4t3s2r1qinboxIdstring | nullrequiredThe inbox an inbox-scoped key reaches; null for an account key.
namestringrequiredA label, possibly empty. Example:
OrchestratortokenPrefixstringrequiredThe first ten characters of the token, starting with dm_. Example:
dm_9f3abcdlast4stringrequiredThe last four characters of the token. Example:
m2x8createdAtstring (date-time)requiredExample:
2026-11-05T10:05:00.000ZlastUsedAtstring (date-time) | nullrequiredWhen the key last authenticated a request, to the minute; null until then.
createdByobject | nulloptionalThe signed-in person who minted the key, so a team can tell whose it is. Null for a key minted with another key, or before this was recorded. Older deployments omit it.
userIdstringrequiredThe identity provider's user id. Example:
user_2abcDEF3ghiJKLnamestringrequiredThe person's name when the key was minted, or their address when they had no name. Example:
Dana OrtiztokenstringrequiredThe bearer token. Store it now; it cannot be read again. Example:
dm_9f3abcdefghjkmnpqrstvwxyz0123456789abcdefghjkmnpm2x8
{
"id": "key_01jc5c0z9y8x7w6v5t4t3s2r1q",
"inboxId": null,
"name": "Orchestrator",
"tokenPrefix": "dm_9f3abcd",
"last4": "m2x8",
"createdAt": "2026-11-05T10:05:00.000Z",
"lastUsedAt": null,
"token": "dm_9f3abcdefghjkmnpqrstvwxyz0123456789abcdefghjkmnpm2x8"
}CreateApiKey
A new key. The name is a label for people.
Fields: CreateApiKey
namestringoptionalA label, at most 100 characters. Example:
Orchestrator
{
"name": "Orchestrator"
}Health
The service is up.
Fields: Health
oktruerequiredservice"doorman-inbox"required
{
"ok": true,
"service": "doorman-inbox"
}Account
The account as its owner sees it: one person's, or the one an organization's members share.
Fields: Account
idstringrequiredAn account identifier. Example:
acc_01jc4q3x6k9m2n8p4r7t5v1w3yemailstring (email)requiredThe person's verified address, or an organization's contact address. Example:
sam@example.comnamestringrequiredThe person's name, or the organization's. Example:
Dana Ortizplan"free" | "pro" | "enterprise"requiredkind"personal" | "organization"optionalpersonalfor one person's account,organizationfor the account a team shares. Older deployments omit it.
{
"id": "acc_01jc4q3x6k9m2n8p4r7t5v1w3y",
"email": "dana@example.com",
"name": "Dana Ortiz",
"plan": "free"
}Organization
The organization an account belongs to, as the identity provider knows it. Its members, their invitations and their roles are managed there.
Fields: Organization
idstringrequiredThe identity provider's organization id. Example:
org_2abcDEF3ghiJKLnamestringrequiredThe organization's name; empty until the identity provider has reported it. Example:
Acmeslugstring | nullrequiredThe organization's slug at the identity provider, or null when it has none. Example:
acme
{
"id": "org_2abcDEF3ghiJKL",
"name": "Acme",
"slug": "acme"
}AdoptAccount
The personal account to move into the organization the session is working in. It must be the signed-in person's own.
Fields: AdoptAccount
accountIdstringrequiredAn account identifier. Example:
acc_01jc4q3x6k9m2n8p4r7t5v1w3y
{
"accountId": "acc_01jc4q3x6k9m2n8p4r7t5v1w3y"
}PlanSummary
The account's plan and its limits; null limits mean unlimited.
Fields: PlanSummary
name"free" | "pro" | "enterprise"requiredlabelstringrequiredExample:
FreepriceUsdnumber | nullrequiredPer month per account; null means by arrangement.
inboxLimitinteger | nullrequiredmonthlySendLimitinteger | nullrequireddomainLimitinteger | nulloptionalCustom domains allowed; zero on free. Older deployments omit it.
{
"name": "free",
"label": "Free",
"priceUsd": 0,
"inboxLimit": 3,
"monthlySendLimit": 3000
}Usage
This month's usage against the plan.
Fields: Usage
inboxesintegerrequiredActive inboxes.
domainsintegeroptionalActive custom domains. Older deployments omit it.
sendsThisMonthintegerrequiredSuccessful sends this UTC calendar month, replies included.
monthResetsAtstring (date-time)requiredThe first instant of the next UTC month. Example:
2026-11-05T10:05:00.000Z
{
"inboxes": 1,
"sendsThisMonth": 37,
"monthResetsAt": "2026-12-01T00:00:00.000Z"
}Subscription
The account's subscription to the paid plan, as the payment provider last reported it.
Fields: Subscription
status"active" | "past_due" | "canceled"requiredcancelAtPeriodEndbooleanrequiredTrue when the subscription was canceled and the plan lasts until
currentPeriodEnd.currentPeriodEndstring (date-time) | nullrequiredWhen the paid period ends: the next charge, or the last day of the plan when
cancelAtPeriodEndis true.
{
"status": "active",
"cancelAtPeriodEnd": false,
"currentPeriodEnd": "2026-12-05T10:05:00.000Z"
}Seats
An organization's seats. A seat is held by every active member and by every invitation that is still open.
Fields: Seats
purchasedinteger | nullrequiredThe seats the organization's subscription pays for; null while it has no Teams subscription.
usedintegerrequiredThe seats held: active members and open invitations.
limitinteger | nullrequiredHow many people the organization may hold now:
purchasedfor a team that pays, one for an organization that pays nothing, null when nothing limits it.seatPriceUsdnumberrequiredWhat one seat costs a month.
minSeatsintegerrequiredThe fewest seats a Teams subscription holds.
maxSeatsintegerrequiredThe most seats a Teams subscription holds.
{
"purchased": 3,
"used": 2,
"limit": 3,
"seatPriceUsd": 7,
"minSeats": 3,
"maxSeats": 20
}BillingSummary
How the account pays. subscription is null for an account that has none, whatever its plan: an operator can set a plan by hand.
Fields: BillingSummary
subscriptionSubscription | nullrequiredseatsSeatsoptionalPresent for an organization's account where the deployment sells the Teams plan, which is paid per seat.
{
"subscription": null
}SetSeats
The number of seats the organization's Teams subscription should hold: the whole count, not a difference.
Fields: SetSeats
seatsintegerrequired
{
"seats": 4
}BillingRedirect
A page at the payment provider to send the person's browser to. It is for this account only and expires.
Fields: BillingRedirect
urlstringrequired
{
"url": "https://payments.example/checkout/c_123"
}BillingSynced
The account's plan and billing after they were read again from the payment provider.
Fields: BillingSynced
plan"free" | "pro" | "enterprise"requiredbillingBillingSummaryrequired
{
"plan": "pro",
"billing": {
"subscription": {
"status": "active",
"cancelAtPeriodEnd": false,
"currentPeriodEnd": "2026-12-05T10:05:00.000Z"
}
}
}Me
The account, its plan and usage, the caller, the organization the account belongs to, and the inbox domain of this deployment.
Fields: Me
accountAccountrequiredplanPlanSummaryrequiredusageUsagerequiredkeyobject | nullrequiredThe API key that made the call; null for a console session.
idstringrequiredAn API key identifier. Example:
key_01jc5c0z9y8x7w6v5t4t3s2r1qscope"account" | "inbox"requiredinboxIdstring | nullrequiredsessionobject | nullrequiredThe console session that made the call; null for an API key.
userIdstringrequiredThe identity provider's user id.
rolestring | nulloptionalThe person's role in the organization as the identity provider names it (
org:adminororg:member); null in a personal account. What the session may do followsmemberRole, not this. Older deployments omit it. Example:org:adminmemberRole"owner" | "admin" | "member" | "viewer" | nulloptionalThe role the API keeps for the person in the organization, which decides what the session may do:
owner,admin,memberorviewer. Null in a personal account. Older deployments omit it. Example:ownerpermissions("mail:read" | "mail:write" | "mail:send" | "inboxes:manage" | "security:manage" | "keys:manage" | "webhooks:manage" | "domains:manage" | "apps:manage" | "agents:connect" | "members:manage" | "billing:manage" | "account:manage" | "compliance:manage" | "phi:read")[]optionalWhat this session may do: every permission in a personal account, otherwise what the member's role holds. A person the identity provider names an admin holds at least what an admin holds. Older deployments omit it.
personalAccountIdstring | nulloptionalIn an organization, the account
POST /v1/organization/adoptwould move, for as long as it can be moved: the person's own personal account, when the session holdsaccount:manage, the organization's account has never been used and no account was moved into the organization before. Null otherwise. Older deployments omit it.organizationOrganization | nulloptionalThe organization the account belongs to, whoever is calling; null for a personal account. Older deployments omit it.
oauthobjectoptionalPresent only when a scoped app access token made the call.
appIdstringrequiredAn OAuth client identifier. Example:
app_01jc5f1a2b3c4d5e6f7g8h9j0kinstallationIdstringrequiredAn app installation identifier. Example:
ins_01jc5f1a2b3c4d5e6f7g8h9j0kscopes("account:read" | "inboxes:read" | "inboxes:write" | "mail:read" | "mail:write" | "mail:send" | "mail:draft" | "events:read" | "webhooks:manage" | "rules:manage")[]requiredinboxInbox | nullrequiredThe inbox an inbox-scoped key reaches; null otherwise.
inboxDomainstringrequiredEvery inbox address is a mailbox name at this domain. Example:
doorman.examplefeaturesobjectoptionalConfigured capabilities, independent of the plan. Missing flags mean unavailable.
customDomainsbooleanrequireddomainConnectbooleanrequiredsignInbooleanoptionalWhether Sign in with Doorman is switched on for this deployment.
billingbooleanoptionalWhether an account can pay for a plan here. Where it cannot, plans are set by the operator.
healthcarebooleanoptionalWhether healthcare guardrails and the business associate agreement are switched on for this deployment (ADR-027).
draftsbooleanoptionalWhether an app or a key can write drafts for the owner to send here (ADR-028).
billingBillingSummaryoptionalPresent where billing is switched on and the caller is an account key or a console session.
healthcareobjectoptionalPresent where healthcare guardrails are switched on and the caller is an account key or a console session.
baa"not_signed" | "active" | "reacceptance_required" | "terminated"requiredWhere the account stands with the business associate agreement.
eligiblebooleanrequiredWhether the account may sign and change guardrails now.
guardrailsbooleanrequiredWhether guardrails apply to the account's mail now.
{
"account": {
"id": "acc_01jc4q3x6k9m2n8p4r7t5v1w3y",
"email": "dana@example.com",
"name": "Dana Ortiz",
"plan": "free"
},
"plan": {
"name": "free",
"label": "Free",
"priceUsd": 0,
"inboxLimit": 3,
"monthlySendLimit": 3000
},
"usage": {
"inboxes": 1,
"sendsThisMonth": 37,
"monthResetsAt": "2026-12-01T00:00:00.000Z"
},
"key": {
"id": "key_01jc5c0z9y8x7w6v5t4t3s2r1q",
"scope": "account",
"inboxId": null
},
"session": null,
"inbox": null,
"inboxDomain": "doorman.example"
}Overview
The console's first page: counts, recent activity and the getting-started checklist.
Fields: Overview
inboxesobjectrequiredactiveintegerrequiredlimitinteger | nullrequiredThe plan's allowance; null means unlimited.
keysobjectrequiredaccountintegerrequiredActive account keys.
inboxintegerrequiredActive inbox-scoped keys.
mailobjectrequiredreceivedLast7DaysintegerrequiredsentLast7DaysintegerrequiredunreadThreadsintegerrequiredAcross live inboxes, untrashed threads.
lastReceivedAtstring (date-time) | nullrequiredlastSentAtstring (date-time) | nullrequiredwebhooksobjectrequiredinboxWebhooksintegerrequiredendpointsintegerrequireddeliveredLast24HoursintegerrequiredfailedLast24HoursintegerrequiredchecklistobjectrequiredWhat has happened at least once.
createdInboxbooleanrequiredcreatedKeybooleanrequiredreceivedMessagebooleanrequiredconnectedWebhookbooleanrequiredTrue while an inbox webhook or an endpoint exists.
sentMessagebooleanrequiredservicesobjectoptionalThe account's passport: the outside services its addresses are signed up for. Older deployments omit it.
totalintegerrequiredServices the live inboxes are signed up for, archived ones left out.
pendingintegerrequiredSign-ups not confirmed yet.
paidintegerrequiredServices that have sent a receipt or an invoice.
attentionintegeroptionalServices with an active warning (an unexplained code, a password reset, or a security notice). Older deployments omit it.
signInsPendingintegeroptionalSign-ins an agent asked for that wait for the owner to allow them. Omitted by older deployments and where Sign in with Doorman is not switched on.
securityobjectoptionalRisk assessment counts (ADR-019). Older deployments omit it.
heldintegerrequiredMessages held for review across live inboxes.
flaggedLast7DaysintegerrequiredInbound messages of the last 7 days assessed high or critical.
heldSendsintegeroptionalSends that wait for the owner's word across live inboxes. Older deployments omit it.
scanningintegeroptionalMessages that arrived and wait out of sight for the check of their files and links to finish, across live inboxes. They are in no list until it does. Older deployments omit it.
{
"inboxes": {
"active": 1,
"limit": 1
},
"keys": {
"account": 2,
"inbox": 1
},
"mail": {
"receivedLast7Days": 1204,
"sentLast7Days": 312,
"unreadThreads": 3,
"lastReceivedAt": "2026-11-05T10:05:00.000Z",
"lastSentAt": "2026-11-05T10:05:00.000Z"
},
"webhooks": {
"inboxWebhooks": 1,
"endpoints": 2,
"deliveredLast24Hours": 118,
"failedLast24Hours": 2
},
"checklist": {
"createdInbox": true,
"createdKey": true,
"receivedMessage": true,
"connectedWebhook": true,
"sentMessage": false
},
"services": {
"total": 7,
"pending": 1,
"paid": 2
}
}MetricsCounters
Mail and webhook counts.
Fields: MetricsCounters
receivedintegerrequiredsentintegerrequiredwebhookDeliveredintegerrequiredwebhookFailedintegerrequired
{
"received": 140,
"sent": 38,
"webhookDelivered": 139,
"webhookFailed": 1
}MetricsBucket
One UTC bucket of the series.
Fields: MetricsBucket
receivedintegerrequiredsentintegerrequiredwebhookDeliveredintegerrequiredwebhookFailedintegerrequiredatstring (date-time)requiredThe bucket's start. Example:
2026-11-05T10:05:00.000Z
{
"at": "2026-10-30T00:00:00.000Z",
"received": 140,
"sent": 38,
"webhookDelivered": 139,
"webhookFailed": 1
}Metrics
Counts per UTC hour or day over a range, with message categories and verdicts over inbound mail.
Fields: Metrics
fromstring (date-time)requiredExample:
2026-11-05T10:05:00.000Ztostring (date-time)requiredExample:
2026-11-05T10:05:00.000Zinterval"hour" | "day"requiredinboxIdstring | nullrequiredThe inbox the counts are limited to; null for the whole account.
seriesMetricsBucket[]requiredOne entry per bucket covering [from, to), zeros included.
totalsMetricsCountersrequiredcategoriesobjectrequiredInbound messages by category over the range.
personalintegerrequiredautomatedintegerrequiredmarketingintegerrequiredbounceintegerrequiredspamintegerrequiredmaliciousintegerrequiredverdictsobjectrequiredInbound messages by verdict over the range.
cleanintegerrequiredunverifiedintegerrequiredsuspiciousintegerrequiredriskobjectoptionalAssessed inbound messages by risk level over the range, held ones included. Older deployments omit it.
lowintegerrequiredmediumintegerrequiredhighintegerrequiredcriticalintegerrequiredheldintegeroptionalMessages that were held over the range, whatever became of them. Older deployments omit it.
{
"from": "2026-10-30T00:00:00.000Z",
"to": "2026-11-06T04:00:00.000Z",
"interval": "day",
"inboxId": null,
"series": [
{
"at": "2026-10-30T00:00:00.000Z",
"received": 140,
"sent": 38,
"webhookDelivered": 139,
"webhookFailed": 1
}
],
"totals": {
"received": 1204,
"sent": 312,
"webhookDelivered": 1192,
"webhookFailed": 12
},
"categories": {
"personal": 612,
"automated": 341,
"marketing": 188,
"bounce": 19,
"spam": 38,
"malicious": 6
},
"verdicts": {
"clean": 1071,
"unverified": 112,
"suspicious": 21
}
}DomainRecord
A DNS record to publish, with the transport's verification state.
Fields: DomainRecord
record"MX" | "SPF" | "DKIM" | "DMARC"requiredhoststringrequiredtypestringrequiredvaluestringrequiredpriorityinteger | nullrequiredttlintegerrequiredrequiredbooleanrequiredstatus"not_started" | "pending" | "verified" | "failed"required
Domain
An account's custom mail domain. Only verified domains can issue inboxes; one that never verifies is removed at expiresAt.
Fields: Domain
idstringrequiredA custom domain identifier. Example:
dom_01jc5f1a2b3c4d5e6f7g8h9j0knamestringrequiredstatus"pending" | "verified" | "failed"requiredtransport"resend"requiredrecordsDomainRecord[]requiredconnectobjectrequiredavailablebooleanrequiredsetupType"automatic" | "manual" | nullrequiredpropagationStatus"pending" | "success" | "failed" | nullrequiredproviderstring | nullrequiredinboxesintegerrequiredverifiedAtstring (date-time) | nullrequiredexpiresAtstring (date-time) | nullrequiredWhen the domain is removed and its name freed, unless it verifies first. Null for a domain that has verified, which is never removed this way.
lastCheckedAtstring (date-time) | nullrequiredcreatedAtstring (date-time)requiredExample:
2026-11-05T10:05:00.000ZupdatedAtstring (date-time)requiredExample:
2026-11-05T10:05:00.000Z
{
"id": "dom_01jc5f1a2b3c4d5e6f7g8h9j0k",
"name": "agents.example.com",
"status": "pending",
"transport": "resend",
"records": [],
"connect": {
"available": false,
"setupType": null,
"propagationStatus": null,
"provider": null
},
"inboxes": 0,
"verifiedAt": null,
"expiresAt": "2026-11-12T10:05:00.000Z",
"lastCheckedAt": null,
"createdAt": "2026-11-05T10:05:00.000Z",
"updatedAt": "2026-11-05T10:05:00.000Z"
}DomainList
The account's active custom domains.
Fields: DomainList
dataDomain[]required
CreateDomain
A domain to connect. A subdomain avoids replacing an existing apex mailbox service.
Fields: CreateDomain
namestringrequiredTrimmed, lowercased and validated as a domain by the Worker. Example:
agents.example.com
{
"name": "agents.example.com"
}DomainConnectSession
A short-lived DNS setup token and records, returned to the console only.
Fields: DomainConnectSession
applicationIdstringrequiredtokenstringrequiredprefilledDomainstringrequireduserIdstringrequireddnsRecordsobjectrequireddomainobject[]optionaltypestringrequiredhoststringrequiredvaluestringrequiredttlintegerrequiredpriorityintegeroptionaloptionalbooleanoptionalsubDomainobject[]optionaltypestringrequiredhoststringrequiredvaluestringrequiredttlintegerrequiredpriorityintegeroptionaloptionalbooleanoptional
PushSubscription
One browser on one device that the owner switched notifications on for. The address notifications are sent to is never answered.
Fields: PushSubscription
idstringrequiredA push subscription's identifier. Example:
psh_01jc5f1a2b3c4d5e6f7g8h9j0kcreatedAtstring (date-time)requiredExample:
2026-11-05T10:05:00.000ZlastDeliveredAtstring (date-time) | nullrequiredWhen a push service last accepted a notification for it; null until the first.
{
"id": "psh_01jc5f1a2b3c4d5e6f7g8h9j0k",
"createdAt": "2026-11-05T10:05:00.000Z",
"lastDeliveredAt": null
}PushSettings
Whether this deployment can send notifications, the key a browser subscribes with, and the account's subscriptions, oldest first.
Fields: PushSettings
availablebooleanrequiredWhether this deployment has notifications configured. Where it has not, there is no key and nothing can be subscribed.
publicKeystring | nullrequiredThe application server key a browser subscribes with: an uncompressed P-256 point in base64url. Null where notifications are not configured. Example:
BAa0PjquH4AsQaDVl7stumrfQkF25D5eq5cDI3vLILFFIArx2o3ucteiAy6y5sH5jGLSsn6xjD5aRv4LFNVU9TMsubscriptionsPushSubscription[]requiredAt most 10.
{
"available": true,
"publicKey": "BAa0PjquH4AsQaDVl7stumrfQkF25D5eq5cDI3vLILFFIArx2o3ucteiAy6y5sH5jGLSsn6xjD5aRv4LFNVU9TM",
"subscriptions": [
{
"id": "psh_01jc5f1a2b3c4d5e6f7g8h9j0k",
"createdAt": "2026-11-05T10:05:00.000Z",
"lastDeliveredAt": null
}
]
}CreatePushSubscription
The address a browser was given when the owner allowed notifications there.
Fields: CreatePushSubscription
endpointstringrequiredThe subscription's endpoint, as the browser gave it: an https address at a push service (fcm.googleapis.com, push.services.mozilla.com, push.apple.com, notify.windows.com, or a name under one of them). An address anywhere else is refused. Example:
https://fcm.googleapis.com/fcm/send/dQw4w9WgXcQ:APA91bHexample
{
"endpoint": "https://fcm.googleapis.com/fcm/send/dQw4w9WgXcQ:APA91bHexample"
}SecurityPolicy
What happens to assessed mail and what an agent may send afterwards (ADR-018). Two thresholds on the risk score decide between delivering, warning and holding; a message from a blocked sender is refused whatever its score.
Fields: SecurityPolicy
level"relaxed" | "balanced" | "strict" | "custom"requiredThe preset the policy equals (
relaxed,balanced,strict), orcustomwhen it matches none.warnAtinteger | nullrequiredMail scoring at least this is delivered with a warning and is never answered automatically. Null means never. Example:
60holdAtinteger | nullrequiredMail scoring at least this is held for the owner and kept from agents. Null means never. Not below
warnAt. Example:85labelsobject of "warn" | "hold"requiredThe least that happens to mail carrying a label, whatever its score:
warnorhold. Replaced as a whole; {} clears it. Example:{"prompt_injection":"hold"}holdUnauthenticatedNewSendersbooleanrequiredHold mail from a sender the inbox has never dealt with when it does not authenticate as its domain.
modelAnalysisbooleanrequiredLet a model read the content of mail the signals leave undecided. The text goes to the deployment's AI gateway, is not kept and is never used for training. Off: assessments rest on the deterministic signals alone.
replyGuardbooleanrequiredRefuse an agent's reply into a thread that holds a flagged message: one this policy warns about or holds, by its score or a label, or one the owner marked unsafe (403
risk_blocked). A message stops counting once the owner marks it safe, or while its sender is trusted and it passed authentication. A console session is never refused.recipients"any" | "known"requiredknown: an agent may write only to senders the inbox trusts or knows, and to the account's own inboxes (403risk_blockedotherwise). Having written to the inbox, or being named in a message, does not make a recipient known: answering a stranger takes a person, or trusting them first.any: no such limit. A console session is never refused.sendApproval"off" | "apps" | "all"requiredWhose sends wait for the owner when a recipient is not one the inbox knows or trusts, nor one of the account's own inboxes.
apps: a connected app's.all: an app's and an API key's.off: nobody's. A send that waits answers 202 with a held send, which the owner sends or discards; it expires unsent after 7 days. A console session is never held, and neither is mail an inbox rule generates. It applies whatever the deployment'senforcement, exceptoff, where no record of senders is kept and nothing is held. No preset changes it. An account that never chose starts onapps.allowKeyManagementbooleanrequiredLet account keys loosen protection (trust a sender, raise a threshold, release held mail, approve a held send). Off by default, and only a console session can switch it on. Account scope only.
deepScanbooleanrequiredRun every attachment, in both directions, through the deployment's malware engine. The bytes go to an isolated scanner that keeps nothing. Off: attachments are still checked by their structure. No effect where the deployment has no engine (
deepScanAvailable).linkSandboxbooleanrequiredOpen the most suspect links of a message in an isolated browser before the message is delivered, to see where they lead. The site a link points at sees a visit. Links that verify an address, sign in, accept an invitation or unsubscribe are never opened, and neither are an authenticated sender's links to its own site. No effect where the deployment has no sandbox.
unscannable"deliver" | "warn" | "hold"requiredThe least that happens to mail carrying something that could not be checked (a locked archive, or a scan that did not finish):
deliver,warnorhold.
{
"level": "balanced",
"warnAt": 60,
"holdAt": 85,
"holdUnauthenticatedNewSenders": false,
"replyGuard": true,
"recipients": "any",
"unscannable": "warn",
"labels": {},
"modelAnalysis": true,
"sendApproval": "apps",
"allowKeyManagement": false,
"deepScan": true,
"linkSandbox": true
}UpdateSecurityPolicy
Changes to a policy. level applies a preset first; any other field given with it, or alone, then replaces that one value. Fields left out stay as they are. Loosening protection needs a console session unless the account allows its account keys to.
Fields: UpdateSecurityPolicy
level"relaxed" | "balanced" | "strict"optionalApply this preset's thresholds and guards. It also clears the per-label rules, unless
labelsis given with it.warnAtinteger | nulloptionalMail scoring at least this is delivered with a warning and is never answered automatically. Null means never. Example:
60holdAtinteger | nulloptionalMail scoring at least this is held for the owner and kept from agents. Null means never. Not below
warnAt. Example:85labelsobject of "warn" | "hold"optionalThe least that happens to mail carrying a label, whatever its score:
warnorhold. Replaced as a whole; {} clears it. Example:{"prompt_injection":"hold"}holdUnauthenticatedNewSendersbooleanoptionalHold mail from a sender the inbox has never dealt with when it does not authenticate as its domain.
modelAnalysisbooleanoptionalLet a model read the content of mail the signals leave undecided. The text goes to the deployment's AI gateway, is not kept and is never used for training. Off: assessments rest on the deterministic signals alone.
replyGuardbooleanoptionalRefuse an agent's reply into a thread that holds a flagged message: one this policy warns about or holds, by its score or a label, or one the owner marked unsafe (403
risk_blocked). A message stops counting once the owner marks it safe, or while its sender is trusted and it passed authentication. A console session is never refused.recipients"any" | "known"optionalknown: an agent may write only to senders the inbox trusts or knows, and to the account's own inboxes (403risk_blockedotherwise). Having written to the inbox, or being named in a message, does not make a recipient known: answering a stranger takes a person, or trusting them first.any: no such limit. A console session is never refused.sendApproval"off" | "apps" | "all"optionalWhose sends wait for the owner when a recipient is not one the inbox knows or trusts, nor one of the account's own inboxes.
apps: a connected app's.all: an app's and an API key's.off: nobody's. A send that waits answers 202 with a held send, which the owner sends or discards; it expires unsent after 7 days. A console session is never held, and neither is mail an inbox rule generates. It applies whatever the deployment'senforcement, exceptoff, where no record of senders is kept and nothing is held. No preset changes it. An account that never chose starts onapps.allowKeyManagementbooleanoptionalLet account keys loosen protection (trust a sender, raise a threshold, release held mail, approve a held send). Off by default, and only a console session can switch it on. Account scope only.
deepScanbooleanoptionalRun every attachment, in both directions, through the deployment's malware engine. The bytes go to an isolated scanner that keeps nothing. Off: attachments are still checked by their structure. No effect where the deployment has no engine (
deepScanAvailable).linkSandboxbooleanoptionalOpen the most suspect links of a message in an isolated browser before the message is delivered, to see where they lead. The site a link points at sees a visit. Links that verify an address, sign in, accept an invitation or unsubscribe are never opened, and neither are an authenticated sender's links to its own site. No effect where the deployment has no sandbox.
unscannable"deliver" | "warn" | "hold"optionalThe least that happens to mail carrying something that could not be checked (a locked archive, or a scan that did not finish):
deliver,warnorhold.
{
"level": "strict"
}SecuritySettings
A policy as it applies to the account or to one inbox, with what this deployment does with it.
Fields: SecuritySettings
scope"account" | "inbox"requiredinboxIdstring | nullrequiredThe inbox the settings are for; null for the account's.
inheritedbooleanrequiredInbox scope: true while the inbox has no policy of its own and follows the account's. Always false for the account.
policySecurityPolicyrequiredenforcement"off" | "observe" | "enforce"requiredWhat the deployment does:
enforceapplies the policy;observeassesses mail and records the result without warning, holding or blocking anything;offdoes not assess.modelAnalysisAvailablebooleanrequiredWhether this deployment has a model to read content with. When false,
modelAnalysishas no effect.deepScanAvailablebooleanoptionalWhether this deployment runs the malware engine and the link sandbox. When false,
deepScanandlinkSandboxhave no effect. Older deployments omit it.updatedAtstring (date-time) | nullrequiredWhen the policy was last changed; null while it is the default.
{
"scope": "account",
"inboxId": null,
"inherited": false,
"policy": {
"level": "balanced",
"warnAt": 60,
"holdAt": 85,
"holdUnauthenticatedNewSenders": false,
"replyGuard": true,
"recipients": "any",
"unscannable": "warn",
"labels": {},
"modelAnalysis": true,
"sendApproval": "apps",
"allowKeyManagement": false,
"deepScan": true,
"linkSandbox": true
},
"enforcement": "enforce",
"modelAnalysisAvailable": true,
"deepScanAvailable": true,
"updatedAt": null
}Sender
A sender as one inbox knows them: what arrived from the address, what the inbox sent it, and the standing that follows. The name is text the sender chose, not a verified identity.
Fields: Sender
addressstringrequiredExample:
sam@example.comnamestring | nullrequiredThe display name last seen on their mail. Example:
Sam Riverastanding"trusted" | "known" | "new" | "blocked"requiredThe standing in force: the owner's rule when one matches, otherwise what the sender earned.
source"rule" | "learned"requiredrulewhen a sender rule for the address or its domain decides the standing;learnedotherwise.kind"person" | "automated" | "bulk"requiredWhat their mail has mostly been: from a person, automated, or bulk.
receivedintegerrequiredMessages received from the address.
authenticatedintegerrequiredHow many of them passed DMARC.
sentintegerrequiredMessages the inbox sent to the address. One is enough to make the sender known.
flaggedintegerrequiredMessages from the address that were warned about, held or marked unsafe. Any flag keeps a sender from being known.
lastRiskLevel"low" | "medium" | "high" | "critical" | nullrequiredfirstSeenAtstring (date-time)requiredExample:
2026-11-05T10:05:00.000ZlastSeenAtstring (date-time)requiredExample:
2026-11-05T10:05:00.000Z
{
"address": "sam@example.com",
"name": "Sam Rivera",
"standing": "known",
"source": "learned",
"kind": "person",
"received": 14,
"authenticated": 14,
"sent": 9,
"flagged": 0,
"lastRiskLevel": "low",
"firstSeenAt": "2026-11-05T10:05:00.000Z",
"lastSeenAt": "2026-11-05T10:05:00.000Z"
}SenderPage
A page of an inbox's senders, most recent first.
Fields: SenderPage
dataSender[]requiredlimitintegerrequiredThe page size that was applied.
offsetintegerrequiredThe offset that was applied.
totalintegerrequiredHow many senders match, across every page.
CreateSenderRule
The owner's word on a sender: an address or a whole domain, trusted or blocked, for one inbox or the whole account. A rule for the same match in the same scope is replaced.
Fields: CreateSenderRule
matchstringrequiredAn address (
sam@example.com) or a domain (example.com, which covers every address at it, not its subdomains). Example:sam@example.comstanding"trusted" | "blocked"requiredtrusted: their authenticated mail is treated as low risk and replies to them are never guarded.blocked: their mail is refused. Trusting needs a console session unless the account allows its account keys to.inboxIdstringoptionalApply to this inbox only. Omit for every inbox of the account. Example:
inb_01jc4q7w9k2m5n8p3r6t1v4x7znotestringoptionalA label for whoever reads the list later, at most 200 characters.
{
"match": "sam@example.com",
"standing": "trusted"
}SenderRule
A sender rule: who it matches, what it says, and where it applies.
Fields: SenderRule
idstringrequiredA sender rule identifier. Example:
snr_01jc5f1a2b3c4d5e6f7g8h9j0kkind"address" | "domain"requiredmatchstringrequiredExample:
sam@example.comstanding"trusted" | "blocked"requiredinboxIdstring | nullrequiredThe inbox the rule applies to; null for the whole account.
notestring | nullrequiredcreatedAtstring (date-time)requiredExample:
2026-11-05T10:05:00.000ZupdatedAtstring (date-time)requiredExample:
2026-11-05T10:05:00.000Z
{
"id": "snr_01jc5f1a2b3c4d5e6f7g8h9j0k",
"kind": "address",
"match": "sam@example.com",
"standing": "trusted",
"inboxId": null,
"note": null,
"createdAt": "2026-11-05T10:05:00.000Z",
"updatedAt": "2026-11-05T10:05:00.000Z"
}SenderRulePage
A page of sender rules, newest first.
Fields: SenderRulePage
dataSenderRule[]requiredlimitintegerrequiredThe page size that was applied.
offsetintegerrequiredThe offset that was applied.
totalintegerrequiredHow many rules match, across every page.
HeldMessage
A message kept from agents until the owner decides. Keys and app tokens get this stub and nothing else of the message: who, when and why, never the subject, the body or an attachment.
Fields: HeldMessage
idstringrequiredA message identifier. Example:
msg_01jc5a6g7h8j9k0m1n2p3q4r5sinboxIdstringrequiredAn inbox identifier. Example:
inb_01jc4q7w9k2m5n8p3r6t1v4x7zfromstringrequiredThe sender's address. Example:
billing@example.netsubjectstring | nullrequiredThe subject, for a caller that may review held mail (a console session, or an account key the account allows); null for every other caller.
attachmentsintegerrequiredHow many attachments the message carries.
sizeBytesintegerrequiredreceivedAtstring (date-time)requiredExample:
2026-11-05T10:05:00.000ZriskRiskAssessmentrequired
{
"id": "msg_01jc5a6g7h8j9k0m1n2p3q4r5s",
"inboxId": "inb_01jc4q7w9k2m5n8p3r6t1v4x7z",
"from": "billing@example.net",
"subject": null,
"attachments": 1,
"sizeBytes": 48120,
"receivedAt": "2026-11-05T10:05:00.000Z",
"risk": {
"score": 92,
"level": "critical",
"labels": [
"prompt_injection",
"impersonation"
],
"reasons": [
"hidden_text",
"instruction_override",
"dmarc_fail"
],
"sender": {
"standing": "new",
"authenticated": false
},
"action": "held",
"analysis": "full",
"review": null
}
}HeldMessagePage
A page of an inbox's held messages, newest first.
Fields: HeldMessagePage
dataHeldMessage[]requiredlimitintegerrequiredThe page size that was applied.
offsetintegerrequiredThe offset that was applied.
totalintegerrequiredHow many messages are held, across every page.
RiskFeedback
The owner's verdict on a delivered message. safe lifts the reply guard for it; unsafe flags the sender and stops automatic replies to it.
Fields: RiskFeedback
verdict"safe" | "unsafe"required
{
"verdict": "safe"
}SecurityAuditEntry
One change to what protects the account: who made it, to what, and when. Entries carry no mail content.
Fields: SecurityAuditEntry
idstringrequiredA security audit entry identifier. Example:
sau_01jc5f1a2b3c4d5e6f7g8h9j0kaction"policy_updated" | "inbox_policy_updated" | "inbox_policy_reset" | "sender_trusted" | "sender_blocked" | "sender_rule_removed" | "message_released" | "message_discarded" | "message_marked_safe" | "message_marked_unsafe" | "send_blocked" | "send_approved" | "send_discarded" | "sign_in_allowed" | "sign_in_blocked" | "baa_signed" | "baa_terminated" | "guardrails_updated" | "inbox_guardrails_updated" | "inbox_guardrails_reset" | "guardrail_created" | "guardrail_updated" | "guardrail_deleted" | "original_viewed"requiredactorobjectrequiredkind"session" | "key"requiredA person in the console, or an API key.
idstring | nullrequiredThe identity provider's user id, or the key's id.
inboxIdstring | nullrequiredThe inbox the change was about; null for the account.
targetstring | nullrequiredThe address, domain, message id or held send id the change was about.
detailstring | nullrequiredWhat changed, in a few words: the fields of a policy, or the standing of a rule.
atstring (date-time)requiredExample:
2026-11-05T10:05:00.000Z
{
"id": "sau_01jc5f1a2b3c4d5e6f7g8h9j0k",
"action": "sender_trusted",
"actor": {
"kind": "session",
"id": "user_2abc"
},
"inboxId": null,
"target": "sam@example.com",
"detail": "trusted",
"at": "2026-11-05T10:05:00.000Z"
}SecurityAuditPage
A page of the security audit log, newest first.
Fields: SecurityAuditPage
dataSecurityAuditEntry[]requiredlimitintegerrequiredThe page size that was applied.
offsetintegerrequiredThe offset that was applied.
totalintegerrequired
SecurityPreviewRequest
What to evaluate and under which policy. Give exactly one of messageId (a stored message, with the assessment it already has), sample (a built-in message) or text/html (your own). Nothing is stored or sent, and no model is called: a sample and your own message are judged by the deterministic signals.
Fields: SecurityPreviewRequest
inboxIdstringoptionalEvaluate as this inbox: its senders and, without
policy, its policy. Defaults to the message's inbox, or to the account's policy with no sender history. Example:inb_01jc4q7w9k2m5n8p3r6t1v4x7zmessageIdstringoptionalA stored inbound message of the account that was assessed. A held one needs a caller that may review held mail. Example:
msg_01jc5a6g7h8j9k0m1n2p3q4r5ssample"ordinary" | "phishing" | "prompt_injection" | "impersonation"optionalA built-in message: ordinary mail, a phishing attempt, an injection hidden from the reader, or an impersonation.
fromstringoptionalThe sender of your own message. Defaults to a sender the inbox has never seen. Example:
stranger@example.netauthenticatedbooleanoptionalWhether your own message passed authentication for its sender's domain. Defaults to true, so the content decides; false shows what a forged sender looks like.
subjectstringoptionaltextstringoptionalThe plain-text body of your own message.
htmlstringoptionalThe HTML body of your own message.
policyUpdateSecurityPolicyoptionalA draft to evaluate under, applied over the policy in force. Omit to use the policy in force.
{
"sample": "prompt_injection",
"policy": {
"level": "strict"
}
}SecurityPreview
What would happen to the message under the policy, and exactly what an agent reading the inbox would be given for it. The assessment's action is the one the policy leads to: what enforce would do, whatever the deployment's mode.
Fields: SecurityPreview
riskRiskAssessmentrequiredrefusedbooleanrequiredTrue when the sender is blocked: the message would be refused and never stored, whatever
risk.actionsays the policy would otherwise have done.agentViewstringrequiredThe text an agent receives for the message: the fenced mail, the mail behind a warning, the stub of a held message, or nothing but a note for mail that is refused.
enforcement"off" | "observe" | "enforce"requiredThe deployment's mode, so a caller can say whether this is what happens today.
{
"risk": {
"score": 92,
"level": "critical",
"labels": [
"prompt_injection"
],
"reasons": [
"hidden_text",
"instruction_override"
],
"sender": {
"standing": "new",
"authenticated": false
},
"action": "held",
"analysis": "signals",
"review": null
},
"refused": false,
"agentView": "A message from stranger@example.net is held for review: critical risk (prompt_injection). Its content is not shown.",
"enforcement": "enforce"
}HeldSend
A message that waits for the owner: one that was asked to be sent and that the security policy kept, or a draft written for the owner to send. Every caller that can read the inbox gets who it is to and where it stands; the subject and the text are added for a caller that may decide (a console session, or an account key the account allows).
Fields: HeldSend
idstringrequiredA held send's identifier. Example:
hsd_01jc5f1a2b3c4d5e6f7g8h9j0kinboxIdstringrequiredAn inbox identifier. Example:
inb_01jc4q7w9k2m5n8p3r6t1v4x7zkind"held" | "draft"requiredWhy it waits.
held: the security policy kept a send for the owner.draft: an app or a key wrote it as a draft, and only the owner sends it.status"held" | "sent" | "discarded" | "expired"requiredheldwhile it waits.sentonce the owner approved it and the mail went out.discardedwhen the owner said no.expiredwhen nobody decided in time. Only a held send can be decided.threadIdstring | nullrequiredThe thread a reply was written into; null for a new message.
tostring[]requiredWho it would go to: the recipients the request named, or on a reply that named none, the one the thread gives. Example:
["sam@example.com"]ccstring[]requiredbccstring[]requiredunknownRecipientsstring[]requiredThe recipients that made it wait: addresses the inbox neither knows nor trusts. Empty for a draft. Example:
["sam@example.com"]subjectstring | nullrequiredThe subject as written, for a caller that may decide; null for every other caller, and on a reply that left it to the thread.
textstring | nullrequiredThe text as written (derived from the HTML when only HTML was given, and cut at 200,000 characters), for a caller that may decide; null for every other caller.
attachmentsintegerrequiredHow many attachments it carries.
requestedByobjectrequiredkind"app" | "key"requiredA connected app, or an API key.
namestring | nullrequiredThe app's or the key's name, when it has one. Example:
Support agentmessageIdstring | nullrequiredThe message it became once it was sent; null otherwise.
createdAtstring (date-time)requiredExample:
2026-11-05T10:05:00.000ZexpiresAtstring (date-time)requiredWhen it expires unsent: 7 days after it was made, or 30 for a draft. Example:
2026-11-05T10:05:00.000ZdecidedAtstring (date-time) | nullrequiredWhen it was sent, discarded or expired; null while it waits.
{
"id": "hsd_01jc5f1a2b3c4d5e6f7g8h9j0k",
"inboxId": "inb_01jc4q7w9k2m5n8p3r6t1v4x7z",
"kind": "held",
"status": "held",
"threadId": null,
"to": [
"sam@example.com"
],
"cc": [],
"bcc": [],
"unknownRecipients": [
"sam@example.com"
],
"subject": null,
"text": null,
"attachments": 0,
"requestedBy": {
"kind": "app",
"name": "Support agent"
},
"messageId": null,
"createdAt": "2026-11-05T10:05:00.000Z",
"expiresAt": "2026-11-12T10:05:00.000Z",
"decidedAt": null
}HeldSendPage
A page of an inbox's held sends, newest first.
Fields: HeldSendPage
dataHeldSend[]requiredlimitintegerrequiredThe page size that was applied.
offsetintegerrequiredThe offset that was applied.
totalintegerrequiredHow many match, across every page.
SendOutcome
What a send answers: the stored message when it went out (201), or a held send when it waits for the owner (202). A held send has status; a sent message has direction. A message that waits has not been sent and must not be sent again: the owner decides.
Fields: SendOutcome
One of:
SentMessage
The stored outbound message, with the identifier the sending provider assigned.
idstringrequiredA message identifier. Example:
msg_01jc5a6g7h8j9k0m1n2p3q4r5sinboxIdstringrequiredAn inbox identifier. Example:
inb_01jc4q7w9k2m5n8p3r6t1v4x7zthreadIdstringrequiredA thread identifier. Example:
thr_01jc5a1b2c3d4e5f6g7h8j9k0mdirection"inbound" | "outbound"requiredrfcMessageIdstring | nullrequiredThe Message-ID header of inbound mail; null for mail this API sent. Example:
<a1b2c3@example.com>inReplyTostring | nullrequiredThe In-Reply-To header, when the message is a reply.
referencesstring[]requiredThe References chain, oldest first.
fromNamedAddressrequiredtoNamedAddress[]requiredccNamedAddress[]requiredbccNamedAddress[]requiredOnly outbound mail carries blind copies.
replyTostring | nullrequiredThe Reply-To address, when one was given.
deliveryRole"to" | "cc" | "bcc" | nullrequiredHow the inbox received the message: as a to, cc or bcc recipient. Null for outbound mail.
subjectstringrequiredExample:
Invoice 2847textstring | nullrequiredThe plain-text body, or text derived from the HTML when there was none.
hasHtmlbooleanrequiredWhether an HTML body is stored; read it at /v1/messages/{messageId}/html.
rawUrlstring | nullrequiredWhere to download the original message/rfc822; null for outbound mail.
sizeBytesintegerrequiredcategory"personal" | "automated" | "marketing" | "bounce" | "spam" | "malicious"requiredWhat kind of mail this is; ordinary outbound mail is personal and rule-generated mail is automated.
autoReplyablebooleanrequiredFalse for anything an agent should not answer on its own.
verdict"clean" | "unverified" | "suspicious" | nullrequiredFrom the authentication results; null for outbound mail.
spamScorenumber | nullrequiredHow likely the message is junk, from 0 to 1, when it was assessed; null otherwise.
authenticationAuthenticationResults | nullrequiredserviceMessageService | nulloptionalThe outside service the message came from, for the inbox's passport; null for any other mail and for outbound mail. Older deployments omit it.
riskRiskAssessment | nulloptionalDoorman's assessment of an inbound message (ADR-019). Null for outbound mail and for mail that was not assessed. Older deployments omit it.
redactionRedactionoptionalWhat the account's healthcare guardrails found in the message (ADR-027), and whether
subject,textand the attachments'parsedTextcarry placeholders in place of it. Absent where no guardrail applies.occurredAtstring (date-time)requiredWhen the message arrived or was sent. Example:
2026-11-05T10:05:00.000ZattachmentsAttachment[]requiredproviderMessageIdstring | nullrequiredThe provider's message identifier, used to thread replies to this message. Example:
<b2c3d4@doorman.example>
HeldSend
A message that waits for the owner: one that was asked to be sent and that the security policy kept, or a draft written for the owner to send. Every caller that can read the inbox gets who it is to and where it stands; the subject and the text are added for a caller that may decide (a console session, or an account key the account allows).
idstringrequiredA held send's identifier. Example:
hsd_01jc5f1a2b3c4d5e6f7g8h9j0kinboxIdstringrequiredAn inbox identifier. Example:
inb_01jc4q7w9k2m5n8p3r6t1v4x7zkind"held" | "draft"requiredWhy it waits.
held: the security policy kept a send for the owner.draft: an app or a key wrote it as a draft, and only the owner sends it.status"held" | "sent" | "discarded" | "expired"requiredheldwhile it waits.sentonce the owner approved it and the mail went out.discardedwhen the owner said no.expiredwhen nobody decided in time. Only a held send can be decided.threadIdstring | nullrequiredThe thread a reply was written into; null for a new message.
tostring[]requiredWho it would go to: the recipients the request named, or on a reply that named none, the one the thread gives. Example:
["sam@example.com"]ccstring[]requiredbccstring[]requiredunknownRecipientsstring[]requiredThe recipients that made it wait: addresses the inbox neither knows nor trusts. Empty for a draft. Example:
["sam@example.com"]subjectstring | nullrequiredThe subject as written, for a caller that may decide; null for every other caller, and on a reply that left it to the thread.
textstring | nullrequiredThe text as written (derived from the HTML when only HTML was given, and cut at 200,000 characters), for a caller that may decide; null for every other caller.
attachmentsintegerrequiredHow many attachments it carries.
requestedByobjectrequiredkind"app" | "key"requiredA connected app, or an API key.
namestring | nullrequiredThe app's or the key's name, when it has one. Example:
Support agentmessageIdstring | nullrequiredThe message it became once it was sent; null otherwise.
createdAtstring (date-time)requiredExample:
2026-11-05T10:05:00.000ZexpiresAtstring (date-time)requiredWhen it expires unsent: 7 days after it was made, or 30 for a draft. Example:
2026-11-05T10:05:00.000ZdecidedAtstring (date-time) | nullrequiredWhen it was sent, discarded or expired; null while it waits.
{
"id": "msg_01jc5b7h8j9k0m1n2p3q4r5s6t",
"inboxId": "inb_01jc4q7w9k2m5n8p3r6t1v4x7z",
"threadId": "thr_01jc5a1b2c3d4e5f6g7h8j9k0m",
"direction": "outbound",
"rfcMessageId": null,
"inReplyTo": "<a1b2c3@example.com>",
"references": [
"<a1b2c3@example.com>"
],
"from": {
"address": "concierge@doorman.example",
"name": "Acme concierge"
},
"to": [
{
"address": "sam@example.com",
"name": null
}
],
"cc": [],
"bcc": [],
"replyTo": null,
"deliveryRole": null,
"subject": "Re: Invoice 2847",
"text": "Thanks, confirming for Thursday.",
"hasHtml": false,
"rawUrl": null,
"sizeBytes": 31,
"category": "personal",
"autoReplyable": false,
"verdict": null,
"spamScore": null,
"authentication": null,
"occurredAt": "2026-11-05T10:05:00.000Z",
"attachments": [],
"providerMessageId": "<b2c3d4@doorman.example>"
}Member
One person in an organization, with the role the API keeps for them.
Fields: Member
userIdstringrequiredThe identity provider's id of a person. Example:
user_2abcDEF3ghiJKLemailstring (email)requiredThe person's verified address, as their last session carried it. Example:
sam@example.comnamestringrequiredThe person's name as their last session carried it; empty when it carried none. Example:
Dana Ortizrole"owner" | "admin" | "member" | "viewer"requiredWhat the person may do:
ownerandadminmay do everything,memberreads, changes and sends mail,viewerreads it.status"active" | "deactivated" | "removed"requiredactive,deactivatedfor a member who is refused until an admin lets them in again, orremovedfor one who has left.joinedAtstring (date-time)requiredWhen the person first worked in the organization. Example:
2026-11-05T10:05:00.000ZlastSeenAtstring (date-time) | nullrequiredAbout when the person last worked in the organization; null when never.
invitedBystring | nullrequiredWho invited the person, when an invitation brought them in; null otherwise.
isSelfbooleanrequiredTrue for the signed-in person's own entry.
{
"userId": "user_2abcDEF3ghiJKL",
"email": "dana@example.com",
"name": "Dana Ortiz",
"role": "owner",
"status": "active",
"joinedAt": "2026-11-05T10:05:00.000Z",
"lastSeenAt": "2026-11-05T10:05:00.000Z",
"invitedBy": null,
"isSelf": true
}MemberList
The organization's people, in the order they joined. Empty for a personal account.
Fields: MemberList
dataMember[]required
UpdateMember
A member's new role.
Fields: UpdateMember
role"owner" | "admin" | "member" | "viewer"requiredThe new role:
ownerandadminmay do everything,memberreads, changes and sends mail,viewerreads it. Only an owner may make someone an owner or change an owner's role.
{
"role": "admin"
}Invitation
What an invitation to the organization is meant to grant. The identity provider sends the email; the person takes the role when they first sign in to the organization.
Fields: Invitation
idstringrequiredAn invitation's identifier. Example:
inv_01jc5f1a2b3c4d5e6f7g8h9j0kemailstring (email)requiredThe invited address. Example:
sam@example.comrole"owner" | "admin" | "member" | "viewer"requiredThe role the person takes when they come in.
status"pending" | "accepted" | "revoked" | "expired"requiredinvitedByobjectrequiredWho sent it.
userIdstringrequiredThe identity provider's id of a person. Example:
user_2abcDEF3ghiJKLnamestringrequiredThe inviter's name at the time. Example:
Dana OrtizproviderInvitationIdstring | nullrequiredThe identity provider's id of the invitation, once the console has had it sent; null until then.
createdAtstring (date-time)requiredExample:
2026-11-05T10:05:00.000ZexpiresAtstring (date-time)requiredWhen it stops being open: 30 days after it was made or last sent again. Example:
2026-11-05T10:05:00.000ZacceptedAtstring (date-time) | nullrequiredWhen the person came in; null until then.
{
"id": "inv_01jc5f1a2b3c4d5e6f7g8h9j0k",
"email": "sam@example.com",
"role": "member",
"status": "pending",
"invitedBy": {
"userId": "user_2abcDEF3ghiJKL",
"name": "Dana Ortiz"
},
"providerInvitationId": null,
"createdAt": "2026-11-05T10:05:00.000Z",
"expiresAt": "2026-12-05T10:05:00.000Z",
"acceptedAt": null
}InvitationList
The organization's invitations, newest first. Empty for a personal account.
Fields: InvitationList
dataInvitation[]required
CreateInvitation
Who to invite, and as what.
Fields: CreateInvitation
emailstring (email)requiredThe address to invite. It is stored in lowercase. Example:
sam@example.comrole"owner" | "admin" | "member" | "viewer"optionalThe role the person takes when they come in:
ownerandadminmay do everything,memberreads, changes and sends mail,viewerreads it. Only an owner may invite an owner. Defaults tomember.
{
"email": "sam@example.com",
"role": "member"
}UpdateInvitation
The identity provider's invitation that was sent for this one. Recording a different one than before means the invitation was sent again, and it stays open that much longer.
Fields: UpdateInvitation
providerInvitationIdstringrequiredThe identity provider's id of the invitation it sent. Example:
orginv_2abcDEF3ghiJKL
{
"providerInvitationId": "orginv_2abcDEF3ghiJKL"
}RuleWhen
All supplied conditions must match. At least one condition is required.
Fields: RuleWhen
category"personal" | "automated" | "marketing" | "bounce" | "spam" | "malicious"optionalsenderstring (email)optionalExact normalized From address. A match is not proof of sender identity.
subjectContainsstringoptionalCase-insensitive subject substring, not a regular expression.
minRiskLevel"low" | "medium" | "high" | "critical"optionalThe message's risk level is this or higher. A message that was not assessed never matches.
senderStanding"trusted" | "known" | "new" | "blocked"optionalThe sender's standing when the message arrived. A message that was not assessed never matches.
RuleAction
One action. Generated mail is plain text, loop-guarded and subject to normal sending limits.
Fields: RuleAction
One of:
Alternative 1
type"label"requiredlabelThreadLabelrequired
Alternative 2
type"auto_reply"requiredtextstringrequiredPlain text, with optional {{sender}}, {{subject}} and {{inbox}} substitutions. No code, HTML or remote templates.
Alternative 3
type"forward"requiredtostring (email)required
Alternative 4
type"trash"required
CreateRule
An inbound rule, enabled by default. Only account credentials may manage rules.
Fields: CreateRule
namestringrequiredenabledbooleanoptionalwhenRuleWhenrequiredthenRuleAction[]requiredExecuted in array order. At most one auto_reply or forward action per rule.
{
"name": "Invoice triage",
"when": {
"category": "personal",
"subjectContains": "invoice"
},
"then": [
{
"type": "label",
"label": "billing"
}
]
}UpdateRule
Replace the supplied fields; omitted fields stay as they are. Changes cancel pending executions of the old revision.
Fields: UpdateRule
namestringoptionalenabledbooleanoptionalwhenRuleWhenoptionalthenRuleAction[]optionalExecuted in array order. At most one auto_reply or forward action per rule.
{
"enabled": false
}Rule
An inbound rule. Rules run oldest first, with id as the tie-breaker; actions run in array order.
Fields: Rule
idstringrequiredAn inbox rule identifier. Example:
rul_01jc5f1a2b3c4d5e6f7g8h9j0kinstallationIdstringoptionalPresent for an installation-owned rule. Revocation stops execution. Example:
ins_01jc5f1a2b3c4d5e6f7g8h9j0kinboxIdstringrequiredAn inbox identifier. Example:
inb_01jc4q7w9k2m5n8p3r6t1v4x7znamestringrequiredenabledbooleanrequiredwhenRuleWhenrequiredthenRuleAction[]requiredExecuted in array order. At most one auto_reply or forward action per rule.
createdAtstring (date-time)requiredExample:
2026-11-05T10:05:00.000ZupdatedAtstring (date-time)requiredExample:
2026-11-05T10:05:00.000Z
{
"id": "rul_01jc5f1a2b3c4d5e6f7g8h9j0k",
"inboxId": "inb_01jc4q7w9k2m5n8p3r6t1v4x7z",
"name": "Invoice triage",
"enabled": true,
"when": {
"category": "personal",
"subjectContains": "invoice"
},
"then": [
{
"type": "label",
"label": "billing"
}
],
"createdAt": "2026-11-05T10:05:00.000Z",
"updatedAt": "2026-11-05T10:05:00.000Z"
}RuleList
The inbox's rules, oldest first. At most 25.
Fields: RuleList
dataRule[]required
RuleRun
A durable execution of a rule snapshot. An uncertain execution is not automatically retried: a mail provider may already have accepted the message.
Fields: RuleRun
idstringrequiredA rule execution identifier. Example:
rrn_01jc5f1a2b3c4d5e6f7g8h9j0kruleIdstringrequiredAn inbox rule identifier. Example:
rul_01jc5f1a2b3c4d5e6f7g8h9j0keventIdstringrequiredAn event identifier. Example:
evt_01jc5e5f6g7h8j9k0m1n2p3q4rstatus"pending" | "running" | "completed" | "failed" | "skipped" | "uncertain"requiredcompletedActionsintegerrequiredskippedActionsintegerrequiredlastErrorstring | nullrequiredA content-free reason code, never provider text or message contents.
createdAtstring (date-time)requiredExample:
2026-11-05T10:05:00.000ZupdatedAtstring (date-time)requiredExample:
2026-11-05T10:05:00.000Z
RuleRunPage
Execution history, newest first.
Fields: RuleRunPage
dataRuleRun[]requiredlimitintegerrequiredThe page size that was applied.
offsetintegerrequiredThe offset that was applied.
totalintegerrequired
AssistantMessage
One entry of the transcript the console keeps, including the proposals it ran and what came of them.
Fields: AssistantMessage
role"user" | "assistant" | "tool"requiredcontentstringrequiredtoolCallIdstringoptionalOn a tool message: the proposal it answers.
namestringoptionalOn a tool message: the tool's name.
{
"role": "user",
"content": "How many threads are unread?"
}AssistantStage
The pages and controls the console can show this turn. Cues may only name these identifiers.
Fields: AssistantStage
routesobject[]requiredidstringrequiredlabelstringrequiredhrefstringrequiredneedsInboxbooleanrequiredlandmarksobject[]requiredidstringrequiredroutesstring[]requiredlabelstringrequired
AssistantStageCue
A navigation, pointer or progress cue for the console's declared stage.
Fields: AssistantStageCue
One of:
Alternative 1
idstringrequiredkind"go"requiredroutestringrequiredinboxIdstring | nullrequired
Alternative 2
idstringrequiredkind"point"requiredlandmarkstringrequirednotestringrequired
Alternative 3
idstringrequiredkind"rounds"requiredstepsstring[]requiredcurrentintegerrequired
AssistantChatRequest
One turn of Ask Doorman: the transcript so far and where in the console the person is.
Fields: AssistantChatRequest
messagesAssistantMessage[]requiredAt most 40 messages; the last one must come from the person or be a tool result.
contextobjectrequiredpagestringrequiredThe console path the person is on. Example:
/console/inboxesinboxIdstringoptionalThe inbox the page is about, when there is one.
stageAssistantStageoptional
{
"messages": [
{
"role": "user",
"content": "How many threads are unread?"
}
],
"context": {
"page": "/console/inboxes",
"inboxId": "inb_01jc4q7w9k2m5n8p3r6t1v4x7z"
}
}AssistantProposal
A change the assistant wants to make. Nothing runs until the person confirms it in the console.
Fields: AssistantProposal
idstringrequiredExample:
prp_0123456789abcdefghjkmnpqrsname"create_inbox" | "create_api_key" | "set_inbox_webhook" | "create_endpoint" | "send_message" | "mark_thread_read" | "delete_inbox" | "revoke_key" | "rotate_secret" | "delete_endpoint" | "set_protection" | "trust_sender" | "block_sender" | "release_message" | "discard_message" | "add_domain"requiredargsobjectrequiredValidated arguments in the shape the console's server actions take.
summarystringrequiredOne sentence saying what confirming does.
{
"id": "prp_0123456789abcdefghjkmnpqrs",
"name": "create_inbox",
"args": {
"mailboxName": "concierge"
},
"summary": "Create the inbox concierge@doorman.example."
}AssistantEvent
The named events of the assistant's response stream: event: <name> then the JSON on one data: line. A turn ends with done or error; a proposal ends it too.
Fields: AssistantEvent
One of:
Alternative 1
event"text"requireddataobjectrequireddeltastringrequired
Alternative 2
event"tool"requireddataobjectrequiredname"list_inboxes" | "get_inbox" | "list_threads" | "list_domains" | "get_domain" | "list_services" | "get_overview" | "get_usage_and_plan" | "list_keys" | "get_webhooks" | "get_metrics_summary" | "docs_lookup" | "read_message" | "get_security" | "list_senders" | "list_held"requiredsummarystringrequired
Alternative 3
event"proposal"requireddataAssistantProposalrequired
Alternative 4
event"stage"requireddataAssistantStageCuerequired
Alternative 5
event"done"requireddataobjectrequired
Alternative 6
event"error"requireddataobjectrequiredcodestringrequiredmessagestringrequired
{
"event": "text",
"data": {
"delta": "Three threads are unread."
}
}InboxWebhook
The inbox's single webhook: one URL that receives every event for it.
Fields: InboxWebhook
urlstring | nullrequiredNull when the inbox has no webhook.
secretstring | nullrequiredThe signing secret, masked after creation (
whsec_...and the last four characters).
{
"url": "https://agent.example.com/hooks/doorman",
"secret": "whsec_...ODk="
}InboxWebhookSecret
The inbox webhook with its new signing secret, shown once.
Fields: InboxWebhookSecret
urlstringrequiredsecretstringrequiredA Standard Webhooks secret (whsec_ and base64), shown once. Verify signatures with its decoded bytes. Example:
whsec_dGVzdC13ZWJob29rLXNpZ25pbmctc2VjcmV0LTAxMjM0NTY3ODk=
{
"url": "https://agent.example.com/hooks/doorman",
"secret": "whsec_dGVzdC13ZWJob29rLXNpZ25pbmctc2VjcmV0LTAxMjM0NTY3ODk="
}SetInboxWebhook
Where the inbox's events go. Setting it again replaces the URL and mints a new secret.
Fields: SetInboxWebhook
urlstringrequiredAn https URL without credentials (http is accepted in local development). Example:
https://agent.example.com/hooks/doorman
{
"url": "https://agent.example.com/hooks/doorman"
}LastDelivery
The newest delivery to an endpoint.
Fields: LastDelivery
status"pending" | "delivered" | "failed"requiredstatusCodeinteger | nullrequiredatstring (date-time)requiredExample:
2026-11-05T10:05:00.000Z
{
"status": "delivered",
"statusCode": 200,
"at": "2026-11-05T10:05:00.000Z"
}Endpoint
An account webhook endpoint: receives the account's events across inboxes, with its own signing secret.
Fields: Endpoint
idstringrequiredA webhook endpoint identifier. Example:
whk_01jc5d1a2b3c4d5e6f7g8h9j0kinstallationIdstringoptionalPresent for an installation-owned endpoint. Revocation stops delivery. Example:
ins_01jc5f1a2b3c4d5e6f7g8h9j0knamestringrequiredA label, possibly empty. Example:
OrchestratorurlstringrequiredExample:
https://agent.example.com/hooks/doormaneventTypes("message.received" | "message.sent" | "thread.updated" | "inbox.created" | "inbox.deleted" | "delivery.failed" | "message.held" | "send.held" | "send.discarded" | "sign_in.requested" | "sign_in.completed")[]requiredThe event types it receives; empty means all.
inboxIdsstring[]requiredThe inboxes it receives for; empty means all.
enabledbooleanrequiredA disabled endpoint receives nothing until it is enabled again.
createdAtstring (date-time)requiredExample:
2026-11-05T10:05:00.000ZupdatedAtstring (date-time)requiredExample:
2026-11-05T10:05:00.000ZlastDeliveryLastDelivery | nullrequired
{
"id": "whk_01jc5d1a2b3c4d5e6f7g8h9j0k",
"name": "Orchestrator",
"url": "https://agent.example.com/hooks/doorman",
"eventTypes": [],
"inboxIds": [],
"enabled": true,
"createdAt": "2026-11-05T10:05:00.000Z",
"updatedAt": "2026-11-05T10:05:00.000Z",
"lastDelivery": {
"status": "delivered",
"statusCode": 200,
"at": "2026-11-05T10:05:00.000Z"
}
}EndpointList
The account's endpoints, oldest first.
Fields: EndpointList
dataEndpoint[]required
CreatedEndpoint
A new endpoint with its signing secret, shown once.
Fields: CreatedEndpoint
idstringrequiredA webhook endpoint identifier. Example:
whk_01jc5d1a2b3c4d5e6f7g8h9j0kinstallationIdstringoptionalPresent for an installation-owned endpoint. Revocation stops delivery. Example:
ins_01jc5f1a2b3c4d5e6f7g8h9j0knamestringrequiredA label, possibly empty. Example:
OrchestratorurlstringrequiredExample:
https://agent.example.com/hooks/doormaneventTypes("message.received" | "message.sent" | "thread.updated" | "inbox.created" | "inbox.deleted" | "delivery.failed" | "message.held" | "send.held" | "send.discarded" | "sign_in.requested" | "sign_in.completed")[]requiredThe event types it receives; empty means all.
inboxIdsstring[]requiredThe inboxes it receives for; empty means all.
enabledbooleanrequiredA disabled endpoint receives nothing until it is enabled again.
createdAtstring (date-time)requiredExample:
2026-11-05T10:05:00.000ZupdatedAtstring (date-time)requiredExample:
2026-11-05T10:05:00.000ZlastDeliveryLastDelivery | nullrequiredsecretstringrequiredA Standard Webhooks secret (whsec_ and base64), shown once. Verify signatures with its decoded bytes. Example:
whsec_dGVzdC13ZWJob29rLXNpZ25pbmctc2VjcmV0LTAxMjM0NTY3ODk=
{
"id": "whk_01jc5d1a2b3c4d5e6f7g8h9j0k",
"name": "Orchestrator",
"url": "https://agent.example.com/hooks/doorman",
"eventTypes": [
"message.received"
],
"inboxIds": [],
"enabled": true,
"createdAt": "2026-11-05T10:05:00.000Z",
"updatedAt": "2026-11-05T10:05:00.000Z",
"lastDelivery": null,
"secret": "whsec_dGVzdC13ZWJob29rLXNpZ25pbmctc2VjcmV0LTAxMjM0NTY3ODk="
}EndpointSecret
An endpoint's new signing secret, shown once.
Fields: EndpointSecret
idstringrequiredA webhook endpoint identifier. Example:
whk_01jc5d1a2b3c4d5e6f7g8h9j0ksecretstringrequiredA Standard Webhooks secret (whsec_ and base64), shown once. Verify signatures with its decoded bytes. Example:
whsec_dGVzdC13ZWJob29rLXNpZ25pbmctc2VjcmV0LTAxMjM0NTY3ODk=
{
"id": "whk_01jc5d1a2b3c4d5e6f7g8h9j0k",
"secret": "whsec_dGVzdC13ZWJob29rLXNpZ25pbmctc2VjcmV0LTAxMjM0NTY3ODk="
}EndpointTestResult
What happened to one signed test delivery.
Fields: EndpointTestResult
okbooleanrequiredWhether the URL answered 2xx in time.
statusCodeinteger | nullrequiredThe HTTP status, or null when the request did not complete.
errorstring | nullrequiredHTTP <status>,timeoutornetwork_error; null on success.durationMsintegerrequired
{
"ok": true,
"statusCode": 200,
"error": null,
"durationMs": 212
}CreateEndpoint
A new account endpoint.
Fields: CreateEndpoint
namestringoptionalA label, at most 100 characters. Example:
OrchestratorurlstringrequiredAn https URL without credentials (http is accepted in local development). Example:
https://agent.example.com/hooks/doormaneventTypes("message.received" | "message.sent" | "thread.updated" | "inbox.created" | "inbox.deleted" | "delivery.failed" | "message.held" | "send.held" | "send.discarded" | "sign_in.requested" | "sign_in.completed")[]optionalEvent types to receive; empty or absent means all.
inboxIdsstring[]optionalIds of active inboxes of the account to receive for; empty or absent means all. Duplicates are dropped. Example:
["inb_01jc4q7w9k2m5n8p3r6t1v4x7z"]enabledbooleanoptionalWhether deliveries start right away. Defaults to true.
{
"name": "Orchestrator",
"url": "https://agent.example.com/hooks/doorman",
"eventTypes": [
"message.received"
],
"inboxIds": [],
"enabled": true
}UpdateEndpoint
Changes to an endpoint; fields left out stay as they are.
Fields: UpdateEndpoint
namestringoptionalA label, at most 100 characters. Example:
OrchestratorurlstringoptionalAn https URL without credentials (http is accepted in local development). Example:
https://agent.example.com/hooks/doormaneventTypes("message.received" | "message.sent" | "thread.updated" | "inbox.created" | "inbox.deleted" | "delivery.failed" | "message.held" | "send.held" | "send.discarded" | "sign_in.requested" | "sign_in.completed")[]optionalEvent types to receive; empty or absent means all.
inboxIdsstring[]optionalIds of active inboxes of the account to receive for; empty or absent means all. Duplicates are dropped. Example:
["inb_01jc4q7w9k2m5n8p3r6t1v4x7z"]enabledbooleanoptionalWhether deliveries start right away. Defaults to true.
{
"enabled": false
}Delivery
One event sent to one target, with every attempt's outcome.
Fields: Delivery
idstringrequiredA webhook delivery identifier. Example:
whd_01jc5f1a2b3c4d5e6f7g8h9j0keventIdstringrequiredAn event identifier. Example:
evt_01jc5e5f6g7h8j9k0m1n2p3q4rtargetobjectrequiredkind"inbox" | "endpoint"requiredinboxfor the inbox webhook,endpointfor an account endpoint.idstringrequiredThe inbox id or the endpoint id.
urlstringrequiredThe URL at the time of delivery.
status"pending" | "delivered" | "failed"requiredattemptsintegerrequiredlastStatusCodeinteger | nullrequiredlastErrorstring | nullrequiredHTTP <status>,timeout,network_errorortarget_unavailable.createdAtstring (date-time)requiredExample:
2026-11-05T10:05:00.000ZupdatedAtstring (date-time)requiredExample:
2026-11-05T10:05:00.000Z
{
"id": "whd_01jc5f1a2b3c4d5e6f7g8h9j0k",
"eventId": "evt_01jc5e5f6g7h8j9k0m1n2p3q4r",
"target": {
"kind": "endpoint",
"id": "whk_01jc5d1a2b3c4d5e6f7g8h9j0k"
},
"url": "https://agent.example.com/hooks/doorman",
"status": "delivered",
"attempts": 1,
"lastStatusCode": 200,
"lastError": null,
"createdAt": "2026-11-05T10:05:00.000Z",
"updatedAt": "2026-11-05T10:05:00.000Z"
}DeliveryPage
A target's deliveries, newest first.
Fields: DeliveryPage
dataDelivery[]requirednextCursorstring | nullrequiredPass as
cursorfor the next page; null on the last page.
MessageReceivedEvent
The message.received event, as it is signed and posted to webhooks and framed on the stream. Field names use snake_case.
Fields: MessageReceivedEvent
event"message.received"requiredevent_idstringrequiredStable across retries; deduplicate on it. Example:
evt_01jc5e5f6g7h8j9k0m1n2p3q4roccurred_atstring (date-time)requiredExample:
2026-11-05T10:05:00.000Zinbox_idstringrequiredAn inbox identifier. Example:
inb_01jc4q7w9k2m5n8p3r6t1v4x7zthread_idstringrequiredA thread identifier. Example:
thr_01jc5a1b2c3d4e5f6g7h8j9k0mmessageobjectrequiredidstringrequiredA message identifier. Example:
msg_01jc5a6g7h8j9k0m1n2p3q4r5srfc_message_idstring | nullrequiredfromstringrequiredThe sender's address. Example:
sam@example.comtostringrequiredThe inbox's address. Example:
concierge@doorman.exampleheader_tostring | nullrequiredThe first To header address, which may differ from the inbox when it was copied.
delivery_role"to" | "cc" | "bcc" | nullrequiredccstring[]requiredaddress_namesobject of string | nullrequiredDisplay names by address, for the addresses that carried one.
subjectstringrequiredbody_textstringrequiredThe plain-text body; empty when there was none.
attachmentsAttachment[]requiredraw_urlstring | nullrequiredreceived_atstring (date-time)requiredExample:
2026-11-05T10:05:00.000Zcategory"personal" | "automated" | "marketing" | "bounce" | "spam" | "malicious"requiredauto_replyablebooleanrequiredverdict"clean" | "unverified" | "suspicious" | nullrequiredspam_scorenumber | nullrequiredserviceobject | nulloptionalThe outside service the message came from, when its sender was authenticated (DMARC passed) and it concerns an account there; null for any other mail. Events stored before the passport existed omit it.
idstring | nullrequireddomainstringrequiredsignal"verification" | "welcome" | "receipt" | "password_reset" | "security" | "trial" | "cancellation" | "other"requiredverificationobject | nulloptionalThe verification code or sign-in link the inbox read from the message, the same text
body_textcarries; null when it carries none. Events stored before the passport existed omit it.codestring | nullrequiredA one-time code read from the message, or null. Example:
849204linkobject | nullrequiredurlstringrequiredhoststringrequiredmatches_senderbooleanrequiredTrue when the link's registrable domain is the authenticated sender's.
verifiedbooleanrequiredWhether the sender was authenticated (DMARC passed). Treat an unverified code or link with suspicion.
invitationbooleanoptionalTrue when the link accepts an invitation to join the service. Events stored before invitations were read omit it.
expires_atstring (date-time)requiredWhen the verifications read stops serving it; the service's own expiry may be sooner. Example:
2026-11-05T10:05:00.000ZriskRiskAssessmentoptionalDoorman's assessment of the message (ADR-019): its own judgment, not text from the mail. Absent on events recorded before assessment existed and where the deployment does not assess.
redactionRedactionoptionalWhat the account's healthcare guardrails found (ADR-027). When present with findings,
subject,body_text, the attachments'parsedTextand the verification code and link carry placeholders in place of them. Absent where no guardrail applies.testtrueoptionalPresent on the sample a test delivery sends; nothing was received or stored.
{
"event": "message.received",
"event_id": "evt_01jc5e5f6g7h8j9k0m1n2p3q4r",
"occurred_at": "2026-11-05T10:05:00.000Z",
"inbox_id": "inb_01jc4q7w9k2m5n8p3r6t1v4x7z",
"thread_id": "thr_01jc5a1b2c3d4e5f6g7h8j9k0m",
"message": {
"id": "msg_01jc5a6g7h8j9k0m1n2p3q4r5s",
"rfc_message_id": "<a1b2c3@example.com>",
"from": "sam@example.com",
"to": "concierge@doorman.example",
"header_to": "concierge@doorman.example",
"delivery_role": "to",
"cc": [],
"address_names": {
"sam@example.com": "Sam Rivera"
},
"subject": "Invoice 2847",
"body_text": "Hi, invoice 2847 is attached.",
"attachments": [
{
"filename": "invoice.pdf",
"contentType": "application/pdf",
"sizeBytes": 45000,
"url": "https://api.doorman.example/v1/attachments/msg_01jc5a6g7h8j9k0m1n2p3q4r5s/invoice.pdf",
"parsedText": "Invoice 2847. Line 3: Setup fee, billed twice. Total 1,480.",
"extractionMethod": "pdf"
}
],
"raw_url": "https://api.doorman.example/v1/messages/msg_01jc5a6g7h8j9k0m1n2p3q4r5s/raw",
"received_at": "2026-11-05T10:05:00.000Z",
"category": "personal",
"auto_replyable": true,
"verdict": "clean",
"spam_score": 0.02,
"risk": {
"score": 6,
"level": "low",
"labels": [],
"reasons": [],
"sender": {
"standing": "known",
"authenticated": true
},
"action": "delivered",
"analysis": "full",
"review": null
}
}
}CreatedInbox
A freshly issued inbox. When the request asked for them, webhook carries the webhook with its signing secret and key the inbox-scoped key with its token; both are shown once and null otherwise.
Fields: CreatedInbox
idstringrequiredAn inbox identifier. Example:
inb_01jc4q7w9k2m5n8p3r6t1v4x7zaddressstringrequiredThe full address: the mailbox name at the inbox domain. Example:
concierge@doorman.examplemailboxNamestringrequiredThe part before the @. Example:
conciergedomainstringrequiredThe inbox domain of this deployment. Example:
doorman.exampledomainIdstring | nulloptionalThe custom domain identifier; null on the shared domain. Older deployments omit it.
displayNamestring | nullrequiredThe sender name on outbound mail; null when none is set.
signaturestring | nulloptionalPlain text appended to every message the inbox sends, under a
--line; null when none is set. Older deployments omit it. Example:Acme concierge acme.examplesignatureHtmlstring | nulloptionalThe signature as markup, appended to the HTML part of every message the inbox sends, as it was stored: scripts, style sheets, forms, event handlers and images that are not https are removed when it is set. Null when the signature is plain text only. Older deployments omit it. Example:
<table cellpadding="0" cellspacing="0"><tr><td style="font-family:Arial,sans-serif;font-size:14px"><b>Acme concierge</b><br><a href="https://acme.example">acme.example</a></td></tr></table>externalIdstring | nullrequiredYour own identifier for the inbox; null when none was given. Example:
customer-8841metadataMetadataoptionalwebhookUrlstring | nullrequiredThe inbox webhook's URL, or null when the inbox has none.
status"active" | "suspended" | "deleted"requiredOnly active inboxes receive and send; a deleted inbox is never returned.
createdAtstring (date-time)requiredExample:
2026-11-05T10:05:00.000ZupdatedAtstring (date-time)requiredExample:
2026-11-05T10:05:00.000ZwebhookInboxWebhookSecret | nullrequiredThe inbox webhook with its one-time secret, when
webhookUrlwas given.keyCreatedApiKey | nullrequiredThe inbox-scoped key with its one-time token, when
keywas given.
{
"id": "inb_01jc4q7w9k2m5n8p3r6t1v4x7z",
"address": "concierge@doorman.example",
"mailboxName": "concierge",
"domain": "doorman.example",
"displayName": "Acme concierge",
"externalId": "customer-8841",
"metadata": {},
"webhookUrl": "https://agent.example.com/hooks/doorman",
"status": "active",
"createdAt": "2026-11-05T10:05:00.000Z",
"updatedAt": "2026-11-05T10:05:00.000Z",
"webhook": {
"url": "https://agent.example.com/hooks/doorman",
"secret": "whsec_dGVzdC13ZWJob29rLXNpZ25pbmctc2VjcmV0LTAxMjM0NTY3ODk="
},
"key": {
"id": "key_01jc5c0z9y8x7w6v5t4t3s2r1q",
"inboxId": "inb_01jc4q7w9k2m5n8p3r6t1v4x7z",
"name": "Acme concierge",
"tokenPrefix": "dm_9f3abcd",
"last4": "m2x8",
"createdAt": "2026-11-05T10:05:00.000Z",
"lastUsedAt": null,
"token": "dm_9f3abcdefghjkmnpqrstvwxyz0123456789abcdefghjkmnpm2x8"
}
}MessageSentEvent
A message accepted by the sending provider and stored. This is not proof of final delivery.
Fields: MessageSentEvent
event"message.sent"requiredevent_idstringrequiredAn event identifier. Example:
evt_01jc5e5f6g7h8j9k0m1n2p3q4roccurred_atstring (date-time)requiredExample:
2026-11-05T10:05:00.000Zinbox_idstringrequiredAn inbox identifier. Example:
inb_01jc4q7w9k2m5n8p3r6t1v4x7zthread_idstringrequiredA thread identifier. Example:
thr_01jc5a1b2c3d4e5f6g7h8j9k0mmessageobjectrequiredidstringrequiredA message identifier. Example:
msg_01jc5a6g7h8j9k0m1n2p3q4r5sprovider_message_idstring | nullrequiredfromstringrequiredtostring[]requiredccstring[]requiredbccstring[]requiredsubjectstringrequiredbody_textstringrequiredattachmentsAttachment[]requiredsent_atstring (date-time)requiredExample:
2026-11-05T10:05:00.000ZredactionRedactionoptionalWhat the account's healthcare guardrails found in what was sent (ADR-027). When present with findings,
subject,body_textand the attachments'parsedTextcarry placeholders in place of them. Absent where no guardrail applies.
{
"event": "message.sent",
"event_id": "evt_01jc5e5f6g7h8j9k0m1n2p3q4r",
"occurred_at": "2026-11-05T10:05:00.000Z",
"inbox_id": "inb_01jc4q7w9k2m5n8p3r6t1v4x7z",
"thread_id": "thr_01jc5a1b2c3d4e5f6g7h8j9k0m",
"message": {
"id": "msg_01jc5a6g7h8j9k0m1n2p3q4r5s",
"provider_message_id": "<sent@doorman.example>",
"from": "concierge@doorman.example",
"to": [
"sam@example.com"
],
"cc": [],
"bcc": [],
"subject": "Re: Invoice 2847",
"body_text": "Thank you.",
"attachments": [],
"sent_at": "2026-11-05T10:05:00.000Z"
}
}ThreadUpdatedEvent
The thread's extension state after a read-state, metadata, label or trash change. A no-op edit emits no event.
Fields: ThreadUpdatedEvent
event"thread.updated"requiredevent_idstringrequiredAn event identifier. Example:
evt_01jc5e5f6g7h8j9k0m1n2p3q4roccurred_atstring (date-time)requiredExample:
2026-11-05T10:05:00.000Zinbox_idstringrequiredAn inbox identifier. Example:
inb_01jc4q7w9k2m5n8p3r6t1v4x7zthread_idstringrequiredA thread identifier. Example:
thr_01jc5a1b2c3d4e5f6g7h8j9k0mthreadobjectrequiredidstringrequiredA thread identifier. Example:
thr_01jc5a1b2c3d4e5f6g7h8j9k0mis_readbooleanrequiredtrashed_atstring (date-time) | nullrequiredmetadataMetadatarequiredlabelsThreadLabelsrequiredupdated_atstring (date-time)requiredExample:
2026-11-05T10:05:00.000Z
{
"event": "thread.updated",
"event_id": "evt_01jc5e5f6g7h8j9k0m1n2p3q4r",
"occurred_at": "2026-11-05T10:05:00.000Z",
"inbox_id": "inb_01jc4q7w9k2m5n8p3r6t1v4x7z",
"thread_id": "thr_01jc5a1b2c3d4e5f6g7h8j9k0m",
"thread": {
"id": "thr_01jc5a1b2c3d4e5f6g7h8j9k0m",
"is_read": true,
"trashed_at": null,
"metadata": {},
"labels": [
"billing"
],
"updated_at": "2026-11-05T10:05:00.000Z"
}
}InboxCreatedEvent
An inbox was created. No API key or webhook signing secret is included.
Fields: InboxCreatedEvent
event"inbox.created"requiredevent_idstringrequiredAn event identifier. Example:
evt_01jc5e5f6g7h8j9k0m1n2p3q4roccurred_atstring (date-time)requiredExample:
2026-11-05T10:05:00.000Zinbox_idstringrequiredAn inbox identifier. Example:
inb_01jc4q7w9k2m5n8p3r6t1v4x7zinboxobjectrequiredidstringrequiredAn inbox identifier. Example:
inb_01jc4q7w9k2m5n8p3r6t1v4x7zaddressstringrequireddisplay_namestring | nullrequiredexternal_idstring | nullrequiredmetadataMetadatarequired
{
"event": "inbox.created",
"event_id": "evt_01jc5e5f6g7h8j9k0m1n2p3q4r",
"occurred_at": "2026-11-05T10:05:00.000Z",
"inbox_id": "inb_01jc4q7w9k2m5n8p3r6t1v4x7z",
"inbox": {
"id": "inb_01jc4q7w9k2m5n8p3r6t1v4x7z",
"address": "concierge@doorman.example",
"display_name": "Acme concierge",
"external_id": null,
"metadata": {}
}
}InboxDeletedEvent
An inbox was deleted through the API. Delivered to matching account endpoints, not the removed inbox webhook. The address is the one it held before deletion.
Fields: InboxDeletedEvent
event"inbox.deleted"requiredevent_idstringrequiredAn event identifier. Example:
evt_01jc5e5f6g7h8j9k0m1n2p3q4roccurred_atstring (date-time)requiredExample:
2026-11-05T10:05:00.000Zinbox_idstringrequiredAn inbox identifier. Example:
inb_01jc4q7w9k2m5n8p3r6t1v4x7zinboxobjectrequiredidstringrequiredAn inbox identifier. Example:
inb_01jc4q7w9k2m5n8p3r6t1v4x7zaddressstringrequireddeleted_atstring (date-time)requiredExample:
2026-11-05T10:05:00.000Z
{
"event": "inbox.deleted",
"event_id": "evt_01jc5e5f6g7h8j9k0m1n2p3q4r",
"occurred_at": "2026-11-05T10:05:00.000Z",
"inbox_id": "inb_01jc4q7w9k2m5n8p3r6t1v4x7z",
"inbox": {
"id": "inb_01jc4q7w9k2m5n8p3r6t1v4x7z",
"address": "concierge@doorman.example",
"deleted_at": "2026-11-05T10:05:00.000Z"
}
}DeliveryFailedEvent
A webhook delivery reached a terminal failure. Account endpoint failures have inbox_id null and require account scope. Failure notifications never produce further failure notifications.
Fields: DeliveryFailedEvent
event"delivery.failed"requiredevent_idstringrequiredAn event identifier. Example:
evt_01jc5e5f6g7h8j9k0m1n2p3q4roccurred_atstring (date-time)requiredExample:
2026-11-05T10:05:00.000Zinbox_idstring | nullrequireddeliveryobjectrequiredidstringrequiredA webhook delivery identifier. Example:
whd_01jc5f1a2b3c4d5e6f7g8h9j0kevent_idstringrequiredAn event identifier. Example:
evt_01jc5e5f6g7h8j9k0m1n2p3q4rtargetobjectrequiredkind"inbox" | "endpoint"requiredidstringrequiredattemptsintegerrequiredlast_status_codeinteger | nullrequiredlast_errorstringrequired
{
"event": "delivery.failed",
"event_id": "evt_01jc5e5f6g7h8j9k0m1n2p3q4r",
"occurred_at": "2026-11-05T10:05:00.000Z",
"inbox_id": null,
"delivery": {
"id": "whd_01jc5f1a2b3c4d5e6f7g8h9j0k",
"event_id": "evt_01jc5e5f6g7h8j9k0m1n2p3q4r",
"target": {
"kind": "endpoint",
"id": "whk_01jc5d1a2b3c4d5e6f7g8h9j0k"
},
"attempts": 5,
"last_status_code": 503,
"last_error": "HTTP 503"
}
}MessageHeldEvent
A message arrived and is held for the owner under the security policy (ADR-018). The payload says who, when and why, and nothing of the message itself: no subject, no body, no attachment. When the owner releases it, message.received follows with the content; a discarded message produces nothing further.
Fields: MessageHeldEvent
event"message.held"requiredevent_idstringrequiredAn event identifier. Example:
evt_01jc5e5f6g7h8j9k0m1n2p3q4roccurred_atstring (date-time)requiredExample:
2026-11-05T10:05:00.000Zinbox_idstringrequiredAn inbox identifier. Example:
inb_01jc4q7w9k2m5n8p3r6t1v4x7zmessageobjectrequiredidstringrequiredA message identifier. Example:
msg_01jc5a6g7h8j9k0m1n2p3q4r5sfromstringrequiredThe sender's address.
held_atstring (date-time)requiredExample:
2026-11-05T10:05:00.000ZriskRiskAssessmentrequired
{
"event": "message.held",
"event_id": "evt_01jc5e5f6g7h8j9k0m1n2p3q4r",
"occurred_at": "2026-11-05T10:05:00.000Z",
"inbox_id": "inb_01jc4q7w9k2m5n8p3r6t1v4x7z",
"message": {
"id": "msg_01jc5a6g7h8j9k0m1n2p3q4r5s",
"from": "billing@example.net",
"held_at": "2026-11-05T10:05:00.000Z",
"risk": {
"score": 92,
"level": "critical",
"labels": [
"prompt_injection",
"impersonation"
],
"reasons": [
"hidden_text",
"instruction_override",
"dmarc_fail"
],
"sender": {
"standing": "new",
"authenticated": false
},
"action": "held",
"analysis": "full",
"review": null
}
}
}SendHeldEvent
A message waits for the owner before it leaves the inbox: one that was asked to be sent and that the security policy kept (sendApproval), or a draft written for the owner to send (kind says which). The payload says who it is to and who asked, and nothing of what it says: no subject, no body, no attachment. When the owner sends it, message.sent follows; when the owner discards it or nobody decides in time, send.discarded does.
Fields: SendHeldEvent
event"send.held"requiredevent_idstringrequiredAn event identifier. Example:
evt_01jc5e5f6g7h8j9k0m1n2p3q4roccurred_atstring (date-time)requiredExample:
2026-11-05T10:05:00.000Zinbox_idstringrequiredAn inbox identifier. Example:
inb_01jc4q7w9k2m5n8p3r6t1v4x7zsendobjectrequiredidstringrequiredA held send's identifier. Example:
hsd_01jc5f1a2b3c4d5e6f7g8h9j0kthread_idstring | nullrequiredThe thread a reply was written into; null for a new message.
tostring[]requiredccstring[]requiredbccstring[]requiredrequested_by"app" | "key"requiredkind"held" | "draft"requiredWhy it waits:
heldwhen the security policy kept a send,draftwhen it was written as a draft for the owner to send.held_atstring (date-time)requiredExample:
2026-11-05T10:05:00.000Zexpires_atstring (date-time)requiredExample:
2026-11-05T10:05:00.000Z
{
"event": "send.held",
"event_id": "evt_01jc5e5f6g7h8j9k0m1n2p3q4r",
"occurred_at": "2026-11-05T10:05:00.000Z",
"inbox_id": "inb_01jc4q7w9k2m5n8p3r6t1v4x7z",
"send": {
"id": "hsd_01jc5f1a2b3c4d5e6f7g8h9j0k",
"thread_id": null,
"to": [
"sam@example.com"
],
"cc": [],
"bcc": [],
"requested_by": "app",
"kind": "held",
"held_at": "2026-11-05T10:05:00.000Z",
"expires_at": "2026-11-12T10:05:00.000Z"
}
}SendDiscardedEvent
A held send ended without being sent: the owner discarded it, or it expired. Nothing of what it said is included.
Fields: SendDiscardedEvent
event"send.discarded"requiredevent_idstringrequiredAn event identifier. Example:
evt_01jc5e5f6g7h8j9k0m1n2p3q4roccurred_atstring (date-time)requiredExample:
2026-11-05T10:05:00.000Zinbox_idstringrequiredAn inbox identifier. Example:
inb_01jc4q7w9k2m5n8p3r6t1v4x7zsendobjectrequiredidstringrequiredA held send's identifier. Example:
hsd_01jc5f1a2b3c4d5e6f7g8h9j0kthread_idstring | nullrequiredThe thread a reply was written into; null for a new message.
tostring[]requiredccstring[]requiredbccstring[]requiredrequested_by"app" | "key"requiredkind"held" | "draft"requiredWhy it waits:
heldwhen the security policy kept a send,draftwhen it was written as a draft for the owner to send.reason"discarded" | "expired"requireddiscardedby the owner, orexpiredbecause nobody decided in time.discarded_atstring (date-time)requiredExample:
2026-11-05T10:05:00.000Z
{
"event": "send.discarded",
"event_id": "evt_01jc5e5f6g7h8j9k0m1n2p3q4r",
"occurred_at": "2026-11-05T10:05:00.000Z",
"inbox_id": "inb_01jc4q7w9k2m5n8p3r6t1v4x7z",
"send": {
"id": "hsd_01jc5f1a2b3c4d5e6f7g8h9j0k",
"thread_id": null,
"to": [
"sam@example.com"
],
"cc": [],
"bcc": [],
"requested_by": "app",
"kind": "held",
"reason": "discarded",
"discarded_at": "2026-11-05T10:05:00.000Z"
}
}SignInRequestedEvent
An address asked to sign in to a service for the first time and waits for the owner to allow it (Sign in with Doorman). Asking again while it waits emits nothing. Nothing in the payload lets anyone sign in.
Fields: SignInRequestedEvent
event"sign_in.requested"requiredevent_idstringrequiredAn event identifier. Example:
evt_01jc5e5f6g7h8j9k0m1n2p3q4roccurred_atstring (date-time)requiredExample:
2026-11-05T10:05:00.000Zinbox_idstringrequiredAn inbox identifier. Example:
inb_01jc4q7w9k2m5n8p3r6t1v4x7zsign_inobjectrequiredidstringrequiredThe identifier of one address's connection to one relying party. Example:
sig_01jc5f1a2b3c4d5e6f7g8h9j0kservice_idstringrequiredThe service in the address's passport that the sign-in belongs to. Example:
svc_01jc5g2b3c4d5e6f7g8h9j0k1mclientobjectrequiredidstringrequiredThe relying party's client id: one this API issued, or the URL of the identity it published.
namestringrequiredWhat the relying party calls itself. A label, never proof of who it is.
hoststringrequiredThe host that identifies the relying party.
requested_by"app" | "key" | "owner"requiredWho asked: a connected app, an API key, or the owner in the console.
requested_atstring (date-time)requiredExample:
2026-11-05T10:05:00.000Z
{
"event": "sign_in.requested",
"event_id": "evt_01jc5e5f6g7h8j9k0m1n2p3q4r",
"occurred_at": "2026-11-05T10:05:00.000Z",
"inbox_id": "inb_01jc4q7w9k2m5n8p3r6t1v4x7z",
"sign_in": {
"id": "sig_01jc5f1a2b3c4d5e6f7g8h9j0k",
"service_id": "svc_01jc5g2b3c4d5e6f7g8h9j0k1m",
"client": {
"id": "sic_01jc5f1a2b3c4d5e6f7g8h9j0k",
"name": "Example Tools",
"host": "app.example.net"
},
"requested_by": "app",
"requested_at": "2026-11-05T10:05:00.000Z"
}
}SignInCompletedEvent
An address signed in to a service: the relying party exchanged its code for tokens (Sign in with Doorman). The payload names the service and carries no token, code or claim.
Fields: SignInCompletedEvent
event"sign_in.completed"requiredevent_idstringrequiredAn event identifier. Example:
evt_01jc5e5f6g7h8j9k0m1n2p3q4roccurred_atstring (date-time)requiredExample:
2026-11-05T10:05:00.000Zinbox_idstringrequiredAn inbox identifier. Example:
inb_01jc4q7w9k2m5n8p3r6t1v4x7zsign_inobjectrequiredidstringrequiredThe identifier of one address's connection to one relying party. Example:
sig_01jc5f1a2b3c4d5e6f7g8h9j0kservice_idstringrequiredThe service in the address's passport that the sign-in belongs to. Example:
svc_01jc5g2b3c4d5e6f7g8h9j0k1mclientobjectrequiredidstringrequiredThe relying party's client id: one this API issued, or the URL of the identity it published.
namestringrequiredWhat the relying party calls itself. A label, never proof of who it is.
hoststringrequiredThe host that identifies the relying party.
completed_atstring (date-time)requiredExample:
2026-11-05T10:05:00.000Z
{
"event": "sign_in.completed",
"event_id": "evt_01jc5e5f6g7h8j9k0m1n2p3q4r",
"occurred_at": "2026-11-05T10:05:00.000Z",
"inbox_id": "inb_01jc4q7w9k2m5n8p3r6t1v4x7z",
"sign_in": {
"id": "sig_01jc5f1a2b3c4d5e6f7g8h9j0k",
"service_id": "svc_01jc5g2b3c4d5e6f7g8h9j0k1m",
"client": {
"id": "sic_01jc5f1a2b3c4d5e6f7g8h9j0k",
"name": "Example Tools",
"host": "app.example.net"
},
"completed_at": "2026-11-05T10:05:00.000Z"
}
}WebhookEvent
A signed event payload, discriminated by event. New event types are additive.
Fields: WebhookEvent
One of:
MessageReceivedEvent
The message.received event, as it is signed and posted to webhooks and framed on the stream. Field names use snake_case.
event"message.received"requiredevent_idstringrequiredStable across retries; deduplicate on it. Example:
evt_01jc5e5f6g7h8j9k0m1n2p3q4roccurred_atstring (date-time)requiredExample:
2026-11-05T10:05:00.000Zinbox_idstringrequiredAn inbox identifier. Example:
inb_01jc4q7w9k2m5n8p3r6t1v4x7zthread_idstringrequiredA thread identifier. Example:
thr_01jc5a1b2c3d4e5f6g7h8j9k0mmessageobjectrequiredidstringrequiredA message identifier. Example:
msg_01jc5a6g7h8j9k0m1n2p3q4r5srfc_message_idstring | nullrequiredfromstringrequiredThe sender's address. Example:
sam@example.comtostringrequiredThe inbox's address. Example:
concierge@doorman.exampleheader_tostring | nullrequiredThe first To header address, which may differ from the inbox when it was copied.
delivery_role"to" | "cc" | "bcc" | nullrequiredccstring[]requiredaddress_namesobject of string | nullrequiredDisplay names by address, for the addresses that carried one.
subjectstringrequiredbody_textstringrequiredThe plain-text body; empty when there was none.
attachmentsAttachment[]requiredraw_urlstring | nullrequiredreceived_atstring (date-time)requiredExample:
2026-11-05T10:05:00.000Zcategory"personal" | "automated" | "marketing" | "bounce" | "spam" | "malicious"requiredauto_replyablebooleanrequiredverdict"clean" | "unverified" | "suspicious" | nullrequiredspam_scorenumber | nullrequiredserviceobject | nulloptionalThe outside service the message came from, when its sender was authenticated (DMARC passed) and it concerns an account there; null for any other mail. Events stored before the passport existed omit it.
idstring | nullrequireddomainstringrequiredsignal"verification" | "welcome" | "receipt" | "password_reset" | "security" | "trial" | "cancellation" | "other"requiredverificationobject | nulloptionalThe verification code or sign-in link the inbox read from the message, the same text
body_textcarries; null when it carries none. Events stored before the passport existed omit it.codestring | nullrequiredA one-time code read from the message, or null. Example:
849204linkobject | nullrequiredurlstringrequiredhoststringrequiredmatches_senderbooleanrequiredTrue when the link's registrable domain is the authenticated sender's.
verifiedbooleanrequiredWhether the sender was authenticated (DMARC passed). Treat an unverified code or link with suspicion.
invitationbooleanoptionalTrue when the link accepts an invitation to join the service. Events stored before invitations were read omit it.
expires_atstring (date-time)requiredWhen the verifications read stops serving it; the service's own expiry may be sooner. Example:
2026-11-05T10:05:00.000ZriskRiskAssessmentoptionalDoorman's assessment of the message (ADR-019): its own judgment, not text from the mail. Absent on events recorded before assessment existed and where the deployment does not assess.
redactionRedactionoptionalWhat the account's healthcare guardrails found (ADR-027). When present with findings,
subject,body_text, the attachments'parsedTextand the verification code and link carry placeholders in place of them. Absent where no guardrail applies.testtrueoptionalPresent on the sample a test delivery sends; nothing was received or stored.
MessageSentEvent
A message accepted by the sending provider and stored. This is not proof of final delivery.
event"message.sent"requiredevent_idstringrequiredAn event identifier. Example:
evt_01jc5e5f6g7h8j9k0m1n2p3q4roccurred_atstring (date-time)requiredExample:
2026-11-05T10:05:00.000Zinbox_idstringrequiredAn inbox identifier. Example:
inb_01jc4q7w9k2m5n8p3r6t1v4x7zthread_idstringrequiredA thread identifier. Example:
thr_01jc5a1b2c3d4e5f6g7h8j9k0mmessageobjectrequiredidstringrequiredA message identifier. Example:
msg_01jc5a6g7h8j9k0m1n2p3q4r5sprovider_message_idstring | nullrequiredfromstringrequiredtostring[]requiredccstring[]requiredbccstring[]requiredsubjectstringrequiredbody_textstringrequiredattachmentsAttachment[]requiredsent_atstring (date-time)requiredExample:
2026-11-05T10:05:00.000ZredactionRedactionoptionalWhat the account's healthcare guardrails found in what was sent (ADR-027). When present with findings,
subject,body_textand the attachments'parsedTextcarry placeholders in place of them. Absent where no guardrail applies.
ThreadUpdatedEvent
The thread's extension state after a read-state, metadata, label or trash change. A no-op edit emits no event.
event"thread.updated"requiredevent_idstringrequiredAn event identifier. Example:
evt_01jc5e5f6g7h8j9k0m1n2p3q4roccurred_atstring (date-time)requiredExample:
2026-11-05T10:05:00.000Zinbox_idstringrequiredAn inbox identifier. Example:
inb_01jc4q7w9k2m5n8p3r6t1v4x7zthread_idstringrequiredA thread identifier. Example:
thr_01jc5a1b2c3d4e5f6g7h8j9k0mthreadobjectrequiredidstringrequiredA thread identifier. Example:
thr_01jc5a1b2c3d4e5f6g7h8j9k0mis_readbooleanrequiredtrashed_atstring (date-time) | nullrequiredmetadataMetadatarequiredlabelsThreadLabelsrequiredupdated_atstring (date-time)requiredExample:
2026-11-05T10:05:00.000Z
InboxCreatedEvent
An inbox was created. No API key or webhook signing secret is included.
event"inbox.created"requiredevent_idstringrequiredAn event identifier. Example:
evt_01jc5e5f6g7h8j9k0m1n2p3q4roccurred_atstring (date-time)requiredExample:
2026-11-05T10:05:00.000Zinbox_idstringrequiredAn inbox identifier. Example:
inb_01jc4q7w9k2m5n8p3r6t1v4x7zinboxobjectrequiredidstringrequiredAn inbox identifier. Example:
inb_01jc4q7w9k2m5n8p3r6t1v4x7zaddressstringrequireddisplay_namestring | nullrequiredexternal_idstring | nullrequiredmetadataMetadatarequired
InboxDeletedEvent
An inbox was deleted through the API. Delivered to matching account endpoints, not the removed inbox webhook. The address is the one it held before deletion.
event"inbox.deleted"requiredevent_idstringrequiredAn event identifier. Example:
evt_01jc5e5f6g7h8j9k0m1n2p3q4roccurred_atstring (date-time)requiredExample:
2026-11-05T10:05:00.000Zinbox_idstringrequiredAn inbox identifier. Example:
inb_01jc4q7w9k2m5n8p3r6t1v4x7zinboxobjectrequiredidstringrequiredAn inbox identifier. Example:
inb_01jc4q7w9k2m5n8p3r6t1v4x7zaddressstringrequireddeleted_atstring (date-time)requiredExample:
2026-11-05T10:05:00.000Z
DeliveryFailedEvent
A webhook delivery reached a terminal failure. Account endpoint failures have inbox_id null and require account scope. Failure notifications never produce further failure notifications.
event"delivery.failed"requiredevent_idstringrequiredAn event identifier. Example:
evt_01jc5e5f6g7h8j9k0m1n2p3q4roccurred_atstring (date-time)requiredExample:
2026-11-05T10:05:00.000Zinbox_idstring | nullrequireddeliveryobjectrequiredidstringrequiredA webhook delivery identifier. Example:
whd_01jc5f1a2b3c4d5e6f7g8h9j0kevent_idstringrequiredAn event identifier. Example:
evt_01jc5e5f6g7h8j9k0m1n2p3q4rtargetobjectrequiredkind"inbox" | "endpoint"requiredidstringrequiredattemptsintegerrequiredlast_status_codeinteger | nullrequiredlast_errorstringrequired
MessageHeldEvent
A message arrived and is held for the owner under the security policy (ADR-018). The payload says who, when and why, and nothing of the message itself: no subject, no body, no attachment. When the owner releases it, message.received follows with the content; a discarded message produces nothing further.
event"message.held"requiredevent_idstringrequiredAn event identifier. Example:
evt_01jc5e5f6g7h8j9k0m1n2p3q4roccurred_atstring (date-time)requiredExample:
2026-11-05T10:05:00.000Zinbox_idstringrequiredAn inbox identifier. Example:
inb_01jc4q7w9k2m5n8p3r6t1v4x7zmessageobjectrequiredidstringrequiredA message identifier. Example:
msg_01jc5a6g7h8j9k0m1n2p3q4r5sfromstringrequiredThe sender's address.
held_atstring (date-time)requiredExample:
2026-11-05T10:05:00.000ZriskRiskAssessmentrequired
SendHeldEvent
A message waits for the owner before it leaves the inbox: one that was asked to be sent and that the security policy kept (sendApproval), or a draft written for the owner to send (kind says which). The payload says who it is to and who asked, and nothing of what it says: no subject, no body, no attachment. When the owner sends it, message.sent follows; when the owner discards it or nobody decides in time, send.discarded does.
event"send.held"requiredevent_idstringrequiredAn event identifier. Example:
evt_01jc5e5f6g7h8j9k0m1n2p3q4roccurred_atstring (date-time)requiredExample:
2026-11-05T10:05:00.000Zinbox_idstringrequiredAn inbox identifier. Example:
inb_01jc4q7w9k2m5n8p3r6t1v4x7zsendobjectrequiredidstringrequiredA held send's identifier. Example:
hsd_01jc5f1a2b3c4d5e6f7g8h9j0kthread_idstring | nullrequiredThe thread a reply was written into; null for a new message.
tostring[]requiredccstring[]requiredbccstring[]requiredrequested_by"app" | "key"requiredkind"held" | "draft"requiredWhy it waits:
heldwhen the security policy kept a send,draftwhen it was written as a draft for the owner to send.held_atstring (date-time)requiredExample:
2026-11-05T10:05:00.000Zexpires_atstring (date-time)requiredExample:
2026-11-05T10:05:00.000Z
SendDiscardedEvent
A held send ended without being sent: the owner discarded it, or it expired. Nothing of what it said is included.
event"send.discarded"requiredevent_idstringrequiredAn event identifier. Example:
evt_01jc5e5f6g7h8j9k0m1n2p3q4roccurred_atstring (date-time)requiredExample:
2026-11-05T10:05:00.000Zinbox_idstringrequiredAn inbox identifier. Example:
inb_01jc4q7w9k2m5n8p3r6t1v4x7zsendobjectrequiredidstringrequiredA held send's identifier. Example:
hsd_01jc5f1a2b3c4d5e6f7g8h9j0kthread_idstring | nullrequiredThe thread a reply was written into; null for a new message.
tostring[]requiredccstring[]requiredbccstring[]requiredrequested_by"app" | "key"requiredkind"held" | "draft"requiredWhy it waits:
heldwhen the security policy kept a send,draftwhen it was written as a draft for the owner to send.reason"discarded" | "expired"requireddiscardedby the owner, orexpiredbecause nobody decided in time.discarded_atstring (date-time)requiredExample:
2026-11-05T10:05:00.000Z
SignInRequestedEvent
An address asked to sign in to a service for the first time and waits for the owner to allow it (Sign in with Doorman). Asking again while it waits emits nothing. Nothing in the payload lets anyone sign in.
event"sign_in.requested"requiredevent_idstringrequiredAn event identifier. Example:
evt_01jc5e5f6g7h8j9k0m1n2p3q4roccurred_atstring (date-time)requiredExample:
2026-11-05T10:05:00.000Zinbox_idstringrequiredAn inbox identifier. Example:
inb_01jc4q7w9k2m5n8p3r6t1v4x7zsign_inobjectrequiredidstringrequiredThe identifier of one address's connection to one relying party. Example:
sig_01jc5f1a2b3c4d5e6f7g8h9j0kservice_idstringrequiredThe service in the address's passport that the sign-in belongs to. Example:
svc_01jc5g2b3c4d5e6f7g8h9j0k1mclientobjectrequiredidstringrequiredThe relying party's client id: one this API issued, or the URL of the identity it published.
namestringrequiredWhat the relying party calls itself. A label, never proof of who it is.
hoststringrequiredThe host that identifies the relying party.
requested_by"app" | "key" | "owner"requiredWho asked: a connected app, an API key, or the owner in the console.
requested_atstring (date-time)requiredExample:
2026-11-05T10:05:00.000Z
SignInCompletedEvent
An address signed in to a service: the relying party exchanged its code for tokens (Sign in with Doorman). The payload names the service and carries no token, code or claim.
event"sign_in.completed"requiredevent_idstringrequiredAn event identifier. Example:
evt_01jc5e5f6g7h8j9k0m1n2p3q4roccurred_atstring (date-time)requiredExample:
2026-11-05T10:05:00.000Zinbox_idstringrequiredAn inbox identifier. Example:
inb_01jc4q7w9k2m5n8p3r6t1v4x7zsign_inobjectrequiredidstringrequiredThe identifier of one address's connection to one relying party. Example:
sig_01jc5f1a2b3c4d5e6f7g8h9j0kservice_idstringrequiredThe service in the address's passport that the sign-in belongs to. Example:
svc_01jc5g2b3c4d5e6f7g8h9j0k1mclientobjectrequiredidstringrequiredThe relying party's client id: one this API issued, or the URL of the identity it published.
namestringrequiredWhat the relying party calls itself. A label, never proof of who it is.
hoststringrequiredThe host that identifies the relying party.
completed_atstring (date-time)requiredExample:
2026-11-05T10:05:00.000Z
EventSummary
What a list shows without the payload; none of it is body text.
Fields: EventSummary
fromstring | nullrequiredsubjectstring | nullrequiredmessageIdstring | nullrequiredthreadIdstring | nullrequired
{
"from": "sam@example.com",
"subject": "Invoice 2847",
"messageId": "msg_01jc5a6g7h8j9k0m1n2p3q4r5s",
"threadId": "thr_01jc5a1b2c3d4e5f6g7h8j9k0m"
}Event
Something that happened in the account, in a log every subscriber reads from.
Fields: Event
idstringrequiredAn event identifier. Example:
evt_01jc5e5f6g7h8j9k0m1n2p3q4rseqintegerrequiredThe position in the account's log: the cursor for paging and polling. Example:
1042type"message.received" | "message.sent" | "thread.updated" | "inbox.created" | "inbox.deleted" | "delivery.failed" | "message.held" | "send.held" | "send.discarded" | "sign_in.requested" | "sign_in.completed"requiredinboxIdstring | nullrequiredoccurredAtstring (date-time)requiredExample:
2026-11-05T10:05:00.000ZsummaryEventSummaryrequired
{
"id": "evt_01jc5e5f6g7h8j9k0m1n2p3q4r",
"seq": 1042,
"type": "message.received",
"inboxId": "inb_01jc4q7w9k2m5n8p3r6t1v4x7z",
"occurredAt": "2026-11-05T10:05:00.000Z",
"summary": {
"from": "sam@example.com",
"subject": "Invoice 2847",
"messageId": "msg_01jc5a6g7h8j9k0m1n2p3q4r5s",
"threadId": "thr_01jc5a1b2c3d4e5f6g7h8j9k0m"
}
}EventPage
Events newest first, the answer to a cursor (or no cursor) request.
Fields: EventPage
dataEvent[]requirednextCursorstring | nullrequiredThe
seqto pass ascursorfor the next page, as a string; null on the last page. Example:1041
EventPoll
Events oldest first, the answer to an after request.
Fields: EventPoll
dataEvent[]requiredlatestSeqintegerrequiredThe
seqto poll from next: the last event of a full page, otherwise the account's newest.
EventList
A page (with cursor or nothing) or a poll (with after).
Fields: EventList
One of:
EventPage
Events newest first, the answer to a cursor (or no cursor) request.
dataEvent[]requirednextCursorstring | nullrequiredThe
seqto pass ascursorfor the next page, as a string; null on the last page. Example:1041
EventPoll
Events oldest first, the answer to an after request.
dataEvent[]requiredlatestSeqintegerrequiredThe
seqto poll from next: the last event of a full page, otherwise the account's newest.
EventDetail
An event, the payload exactly as it was signed and sent, and the deliveries it produced.
Fields: EventDetail
eventEventrequiredpayloadWebhookEvent | objectrequiredThe typed event payload, or an unknown future event object.
deliveriesDelivery[]requiredInbox-scoped keys see the inbox webhook's delivery only.
StreamSubscribe
Start receiving events, for everything the key can see or a narrower set. Subscriptions accumulate.
Fields: StreamSubscribe
type"subscribe"requiredinbox_idsstring[]optionalUp to 32 inbox ids, all of them the key's.
event_types("message.received" | "message.sent" | "thread.updated" | "inbox.created" | "inbox.deleted" | "delivery.failed" | "message.held" | "send.held" | "send.discarded" | "sign_in.requested" | "sign_in.completed")[]optionalOnly these event types; absent or empty means all.
last_event_idstringoptionalReplay every event after this one (up to 100, filtered by the subscription) before live events. Example:
evt_01jc5e5f6g7h8j9k0m1n2p3q4r
{
"type": "subscribe",
"inbox_ids": [
"inb_01jc4q7w9k2m5n8p3r6t1v4x7z"
]
}StreamUnsubscribe
Stop receiving events: everything, or specific inboxes.
Fields: StreamUnsubscribe
type"unsubscribe"requiredinbox_idsstring[]optionalThe inboxes to stop receiving for; absent or empty stops everything.
{
"type": "unsubscribe"
}StreamPing
A keepalive the edge answers with pong without waking the stream; send one every 30 to 60 seconds through idle proxies.
Fields: StreamPing
type"ping"required
{
"type": "ping"
}StreamClientFrame
A JSON text frame the client sends on /v1/ws.
Fields: StreamClientFrame
One of:
StreamSubscribe
Start receiving events, for everything the key can see or a narrower set. Subscriptions accumulate.
type"subscribe"requiredinbox_idsstring[]optionalUp to 32 inbox ids, all of them the key's.
event_types("message.received" | "message.sent" | "thread.updated" | "inbox.created" | "inbox.deleted" | "delivery.failed" | "message.held" | "send.held" | "send.discarded" | "sign_in.requested" | "sign_in.completed")[]optionalOnly these event types; absent or empty means all.
last_event_idstringoptionalReplay every event after this one (up to 100, filtered by the subscription) before live events. Example:
evt_01jc5e5f6g7h8j9k0m1n2p3q4r
StreamUnsubscribe
Stop receiving events: everything, or specific inboxes.
type"unsubscribe"requiredinbox_idsstring[]optionalThe inboxes to stop receiving for; absent or empty stops everything.
StreamPing
A keepalive the edge answers with pong without waking the stream; send one every 30 to 60 seconds through idle proxies.
type"ping"required
StreamSubscribed
The subscription in force after a subscribe frame; empty arrays mean all.
Fields: StreamSubscribed
type"subscribed"requiredinbox_idsstring[]requiredevent_typesstring[]required
{
"type": "subscribed",
"inbox_ids": [
"inb_01jc4q7w9k2m5n8p3r6t1v4x7z"
],
"event_types": []
}StreamUnsubscribed
The answer to an unsubscribe frame, echoing the inboxes it named.
Fields: StreamUnsubscribed
type"unsubscribed"requiredinbox_idsstring[]required
{
"type": "unsubscribed",
"inbox_ids": []
}StreamPong
The answer to a ping.
Fields: StreamPong
type"pong"required
{
"type": "pong"
}StreamError
A frame that could not be honoured; the connection stays open.
Fields: StreamError
type"error"requiredmessagestringrequired
{
"type": "error",
"message": "last_event_id was not found on this account."
}StreamEvent
An event as the stream frames it: the webhook payload plus when it was pushed. attempt is always 1; a missed frame is recovered with last_event_id, not retried.
Fields: StreamEvent
One of:
Alternative 1
event"message.received"requiredevent_idstringrequiredStable across retries; deduplicate on it. Example:
evt_01jc5e5f6g7h8j9k0m1n2p3q4roccurred_atstring (date-time)requiredExample:
2026-11-05T10:05:00.000Zinbox_idstringrequiredAn inbox identifier. Example:
inb_01jc4q7w9k2m5n8p3r6t1v4x7zthread_idstringrequiredA thread identifier. Example:
thr_01jc5a1b2c3d4e5f6g7h8j9k0mmessageobjectrequiredidstringrequiredA message identifier. Example:
msg_01jc5a6g7h8j9k0m1n2p3q4r5srfc_message_idstring | nullrequiredfromstringrequiredThe sender's address. Example:
sam@example.comtostringrequiredThe inbox's address. Example:
concierge@doorman.exampleheader_tostring | nullrequiredThe first To header address, which may differ from the inbox when it was copied.
delivery_role"to" | "cc" | "bcc" | nullrequiredccstring[]requiredaddress_namesobject of string | nullrequiredDisplay names by address, for the addresses that carried one.
subjectstringrequiredbody_textstringrequiredThe plain-text body; empty when there was none.
attachmentsAttachment[]requiredraw_urlstring | nullrequiredreceived_atstring (date-time)requiredExample:
2026-11-05T10:05:00.000Zcategory"personal" | "automated" | "marketing" | "bounce" | "spam" | "malicious"requiredauto_replyablebooleanrequiredverdict"clean" | "unverified" | "suspicious" | nullrequiredspam_scorenumber | nullrequiredserviceobject | nulloptionalThe outside service the message came from, when its sender was authenticated (DMARC passed) and it concerns an account there; null for any other mail. Events stored before the passport existed omit it.
idstring | nullrequireddomainstringrequiredsignal"verification" | "welcome" | "receipt" | "password_reset" | "security" | "trial" | "cancellation" | "other"requiredverificationobject | nulloptionalThe verification code or sign-in link the inbox read from the message, the same text
body_textcarries; null when it carries none. Events stored before the passport existed omit it.codestring | nullrequiredA one-time code read from the message, or null. Example:
849204linkobject | nullrequiredurlstringrequiredhoststringrequiredmatches_senderbooleanrequiredTrue when the link's registrable domain is the authenticated sender's.
verifiedbooleanrequiredWhether the sender was authenticated (DMARC passed). Treat an unverified code or link with suspicion.
invitationbooleanoptionalTrue when the link accepts an invitation to join the service. Events stored before invitations were read omit it.
expires_atstring (date-time)requiredWhen the verifications read stops serving it; the service's own expiry may be sooner. Example:
2026-11-05T10:05:00.000ZriskRiskAssessmentoptionalDoorman's assessment of the message (ADR-019): its own judgment, not text from the mail. Absent on events recorded before assessment existed and where the deployment does not assess.
redactionRedactionoptionalWhat the account's healthcare guardrails found (ADR-027). When present with findings,
subject,body_text, the attachments'parsedTextand the verification code and link carry placeholders in place of them. Absent where no guardrail applies.testtrueoptionalPresent on the sample a test delivery sends; nothing was received or stored.
delivered_atstring (date-time)requiredExample:
2026-11-05T10:05:00.000Zattempt1required
Alternative 2
event"message.sent"requiredevent_idstringrequiredAn event identifier. Example:
evt_01jc5e5f6g7h8j9k0m1n2p3q4roccurred_atstring (date-time)requiredExample:
2026-11-05T10:05:00.000Zinbox_idstringrequiredAn inbox identifier. Example:
inb_01jc4q7w9k2m5n8p3r6t1v4x7zthread_idstringrequiredA thread identifier. Example:
thr_01jc5a1b2c3d4e5f6g7h8j9k0mmessageobjectrequiredidstringrequiredA message identifier. Example:
msg_01jc5a6g7h8j9k0m1n2p3q4r5sprovider_message_idstring | nullrequiredfromstringrequiredtostring[]requiredccstring[]requiredbccstring[]requiredsubjectstringrequiredbody_textstringrequiredattachmentsAttachment[]requiredsent_atstring (date-time)requiredExample:
2026-11-05T10:05:00.000ZredactionRedactionoptionalWhat the account's healthcare guardrails found in what was sent (ADR-027). When present with findings,
subject,body_textand the attachments'parsedTextcarry placeholders in place of them. Absent where no guardrail applies.delivered_atstring (date-time)requiredExample:
2026-11-05T10:05:00.000Zattempt1required
Alternative 3
event"thread.updated"requiredevent_idstringrequiredAn event identifier. Example:
evt_01jc5e5f6g7h8j9k0m1n2p3q4roccurred_atstring (date-time)requiredExample:
2026-11-05T10:05:00.000Zinbox_idstringrequiredAn inbox identifier. Example:
inb_01jc4q7w9k2m5n8p3r6t1v4x7zthread_idstringrequiredA thread identifier. Example:
thr_01jc5a1b2c3d4e5f6g7h8j9k0mthreadobjectrequiredidstringrequiredA thread identifier. Example:
thr_01jc5a1b2c3d4e5f6g7h8j9k0mis_readbooleanrequiredtrashed_atstring (date-time) | nullrequiredmetadataMetadatarequiredlabelsThreadLabelsrequiredupdated_atstring (date-time)requiredExample:
2026-11-05T10:05:00.000Zdelivered_atstring (date-time)requiredExample:
2026-11-05T10:05:00.000Zattempt1required
Alternative 4
event"inbox.created"requiredevent_idstringrequiredAn event identifier. Example:
evt_01jc5e5f6g7h8j9k0m1n2p3q4roccurred_atstring (date-time)requiredExample:
2026-11-05T10:05:00.000Zinbox_idstringrequiredAn inbox identifier. Example:
inb_01jc4q7w9k2m5n8p3r6t1v4x7zinboxobjectrequiredidstringrequiredAn inbox identifier. Example:
inb_01jc4q7w9k2m5n8p3r6t1v4x7zaddressstringrequireddisplay_namestring | nullrequiredexternal_idstring | nullrequiredmetadataMetadatarequireddelivered_atstring (date-time)requiredExample:
2026-11-05T10:05:00.000Zattempt1required
Alternative 5
event"inbox.deleted"requiredevent_idstringrequiredAn event identifier. Example:
evt_01jc5e5f6g7h8j9k0m1n2p3q4roccurred_atstring (date-time)requiredExample:
2026-11-05T10:05:00.000Zinbox_idstringrequiredAn inbox identifier. Example:
inb_01jc4q7w9k2m5n8p3r6t1v4x7zinboxobjectrequiredidstringrequiredAn inbox identifier. Example:
inb_01jc4q7w9k2m5n8p3r6t1v4x7zaddressstringrequireddeleted_atstring (date-time)requiredExample:
2026-11-05T10:05:00.000Zdelivered_atstring (date-time)requiredExample:
2026-11-05T10:05:00.000Zattempt1required
Alternative 6
event"delivery.failed"requiredevent_idstringrequiredAn event identifier. Example:
evt_01jc5e5f6g7h8j9k0m1n2p3q4roccurred_atstring (date-time)requiredExample:
2026-11-05T10:05:00.000Zinbox_idstring | nullrequireddeliveryobjectrequiredidstringrequiredA webhook delivery identifier. Example:
whd_01jc5f1a2b3c4d5e6f7g8h9j0kevent_idstringrequiredAn event identifier. Example:
evt_01jc5e5f6g7h8j9k0m1n2p3q4rtargetobjectrequiredkind"inbox" | "endpoint"requiredidstringrequiredattemptsintegerrequiredlast_status_codeinteger | nullrequiredlast_errorstringrequireddelivered_atstring (date-time)requiredExample:
2026-11-05T10:05:00.000Zattempt1required
Alternative 7
event"message.held"requiredevent_idstringrequiredAn event identifier. Example:
evt_01jc5e5f6g7h8j9k0m1n2p3q4roccurred_atstring (date-time)requiredExample:
2026-11-05T10:05:00.000Zinbox_idstringrequiredAn inbox identifier. Example:
inb_01jc4q7w9k2m5n8p3r6t1v4x7zmessageobjectrequiredidstringrequiredA message identifier. Example:
msg_01jc5a6g7h8j9k0m1n2p3q4r5sfromstringrequiredThe sender's address.
held_atstring (date-time)requiredExample:
2026-11-05T10:05:00.000ZriskRiskAssessmentrequireddelivered_atstring (date-time)requiredExample:
2026-11-05T10:05:00.000Zattempt1required
Alternative 8
event"send.held"requiredevent_idstringrequiredAn event identifier. Example:
evt_01jc5e5f6g7h8j9k0m1n2p3q4roccurred_atstring (date-time)requiredExample:
2026-11-05T10:05:00.000Zinbox_idstringrequiredAn inbox identifier. Example:
inb_01jc4q7w9k2m5n8p3r6t1v4x7zsendobjectrequiredidstringrequiredA held send's identifier. Example:
hsd_01jc5f1a2b3c4d5e6f7g8h9j0kthread_idstring | nullrequiredThe thread a reply was written into; null for a new message.
tostring[]requiredccstring[]requiredbccstring[]requiredrequested_by"app" | "key"requiredkind"held" | "draft"requiredWhy it waits:
heldwhen the security policy kept a send,draftwhen it was written as a draft for the owner to send.held_atstring (date-time)requiredExample:
2026-11-05T10:05:00.000Zexpires_atstring (date-time)requiredExample:
2026-11-05T10:05:00.000Zdelivered_atstring (date-time)requiredExample:
2026-11-05T10:05:00.000Zattempt1required
Alternative 9
event"send.discarded"requiredevent_idstringrequiredAn event identifier. Example:
evt_01jc5e5f6g7h8j9k0m1n2p3q4roccurred_atstring (date-time)requiredExample:
2026-11-05T10:05:00.000Zinbox_idstringrequiredAn inbox identifier. Example:
inb_01jc4q7w9k2m5n8p3r6t1v4x7zsendobjectrequiredidstringrequiredA held send's identifier. Example:
hsd_01jc5f1a2b3c4d5e6f7g8h9j0kthread_idstring | nullrequiredThe thread a reply was written into; null for a new message.
tostring[]requiredccstring[]requiredbccstring[]requiredrequested_by"app" | "key"requiredkind"held" | "draft"requiredWhy it waits:
heldwhen the security policy kept a send,draftwhen it was written as a draft for the owner to send.reason"discarded" | "expired"requireddiscardedby the owner, orexpiredbecause nobody decided in time.discarded_atstring (date-time)requiredExample:
2026-11-05T10:05:00.000Zdelivered_atstring (date-time)requiredExample:
2026-11-05T10:05:00.000Zattempt1required
Alternative 10
event"sign_in.requested"requiredevent_idstringrequiredAn event identifier. Example:
evt_01jc5e5f6g7h8j9k0m1n2p3q4roccurred_atstring (date-time)requiredExample:
2026-11-05T10:05:00.000Zinbox_idstringrequiredAn inbox identifier. Example:
inb_01jc4q7w9k2m5n8p3r6t1v4x7zsign_inobjectrequiredidstringrequiredThe identifier of one address's connection to one relying party. Example:
sig_01jc5f1a2b3c4d5e6f7g8h9j0kservice_idstringrequiredThe service in the address's passport that the sign-in belongs to. Example:
svc_01jc5g2b3c4d5e6f7g8h9j0k1mclientobjectrequiredidstringrequiredThe relying party's client id: one this API issued, or the URL of the identity it published.
namestringrequiredWhat the relying party calls itself. A label, never proof of who it is.
hoststringrequiredThe host that identifies the relying party.
requested_by"app" | "key" | "owner"requiredWho asked: a connected app, an API key, or the owner in the console.
requested_atstring (date-time)requiredExample:
2026-11-05T10:05:00.000Zdelivered_atstring (date-time)requiredExample:
2026-11-05T10:05:00.000Zattempt1required
Alternative 11
event"sign_in.completed"requiredevent_idstringrequiredAn event identifier. Example:
evt_01jc5e5f6g7h8j9k0m1n2p3q4roccurred_atstring (date-time)requiredExample:
2026-11-05T10:05:00.000Zinbox_idstringrequiredAn inbox identifier. Example:
inb_01jc4q7w9k2m5n8p3r6t1v4x7zsign_inobjectrequiredidstringrequiredThe identifier of one address's connection to one relying party. Example:
sig_01jc5f1a2b3c4d5e6f7g8h9j0kservice_idstringrequiredThe service in the address's passport that the sign-in belongs to. Example:
svc_01jc5g2b3c4d5e6f7g8h9j0k1mclientobjectrequiredidstringrequiredThe relying party's client id: one this API issued, or the URL of the identity it published.
namestringrequiredWhat the relying party calls itself. A label, never proof of who it is.
hoststringrequiredThe host that identifies the relying party.
completed_atstring (date-time)requiredExample:
2026-11-05T10:05:00.000Zdelivered_atstring (date-time)requiredExample:
2026-11-05T10:05:00.000Zattempt1required
{
"event": "message.received",
"event_id": "evt_01jc5e5f6g7h8j9k0m1n2p3q4r",
"occurred_at": "2026-11-05T10:05:00.000Z",
"inbox_id": "inb_01jc4q7w9k2m5n8p3r6t1v4x7z",
"thread_id": "thr_01jc5a1b2c3d4e5f6g7h8j9k0m",
"message": {
"id": "msg_01jc5a6g7h8j9k0m1n2p3q4r5s",
"rfc_message_id": "<a1b2c3@example.com>",
"from": "sam@example.com",
"to": "concierge@doorman.example",
"header_to": "concierge@doorman.example",
"delivery_role": "to",
"cc": [],
"address_names": {
"sam@example.com": "Sam Rivera"
},
"subject": "Invoice 2847",
"body_text": "Hi, invoice 2847 is attached.",
"attachments": [
{
"filename": "invoice.pdf",
"contentType": "application/pdf",
"sizeBytes": 45000,
"url": "https://api.doorman.example/v1/attachments/msg_01jc5a6g7h8j9k0m1n2p3q4r5s/invoice.pdf",
"parsedText": "Invoice 2847. Line 3: Setup fee, billed twice. Total 1,480.",
"extractionMethod": "pdf"
}
],
"raw_url": "https://api.doorman.example/v1/messages/msg_01jc5a6g7h8j9k0m1n2p3q4r5s/raw",
"received_at": "2026-11-05T10:05:00.000Z",
"category": "personal",
"auto_replyable": true,
"verdict": "clean",
"spam_score": null
},
"delivered_at": "2026-11-05T10:05:00.000Z",
"attempt": 1
}StreamServerFrame
A JSON text frame the server sends on /v1/ws.
Fields: StreamServerFrame
One of:
StreamSubscribed
The subscription in force after a subscribe frame; empty arrays mean all.
type"subscribed"requiredinbox_idsstring[]requiredevent_typesstring[]required
StreamUnsubscribed
The answer to an unsubscribe frame, echoing the inboxes it named.
type"unsubscribed"requiredinbox_idsstring[]required
StreamPong
The answer to a ping.
type"pong"required
StreamError
A frame that could not be honoured; the connection stays open.
type"error"requiredmessagestringrequired
StreamEvent
An event as the stream frames it: the webhook payload plus when it was pushed. attempt is always 1; a missed frame is recovered with last_event_id, not retried.
No fields.

