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

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

    A stable code; see the error catalogue.

  • messagestringrequired

    One 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"optional

    permission_denied: the permission the member's role in the organization lacks.

  • scope"inboxes" | "account" | "inbox" | "domains"optional

    The inbox, account, or domain allowance or rate limit that applied.

  • planstringoptional

    plan_limit_reached: the account's plan.

  • limitinteger | nulloptional

    plan_limit_reached and rate_limit_exceeded: the limit that applied.

  • usedintegeroptional

    plan_limit_reached: how much of the allowance is used. seat_required and seats_in_use: the seats held by members and open invitations.

  • seatsinteger | nulloptional

    seat_required: the seats the organization's subscription pays for; null when it has no Teams subscription.

  • seatPriceUsdnumberoptional

    seat_required: what one seat costs a month.

  • resetsAtstring (date-time)optional

    plan_limit_reached (sends) and rate_limit_exceeded: when the count starts again.

  • providerCodestringoptional

    send_rejected and send_failed: the sending provider's own code.

  • guard"reply" | "recipient" | "content" | "guardrail"optional

    risk_blocked: which guard refused: reply or recipient from the security policy, content when an attachment did not pass the check of its bytes, or guardrail when a healthcare guardrail found what may not be sent.

  • reasonsstring[]optional

    risk_blocked with the content guard: the reason codes from RISK_REASONS for 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")[]optional

    guardrail_blocked, and risk_blocked with the guardrail guard: the kinds of protected information that were found. Never the text.

  • baa"plan_required" | "not_signed" | "reacceptance_required"optional

    baa_required: what is missing before guardrails can be changed.

  • field"mailboxName" | "externalId"optional

    already_exists on an inbox: which of the request's values is already in use.

Example

{
  "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.

Example

{
  "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.

Example

"needs-review"

ThreadLabels

At most 20 unique labels. Replaced as a whole; [] clears the labels.

Fields: ThreadLabels

No fields.

Example

[
  "needs-review"
]

CreateApp

Register a client. Confidential clients receive a one-time secret; every client uses S256 PKCE.

Fields: CreateApp
  • namestringrequired

  • redirectUrisstring[]required

  • scopes("account:read" | "inboxes:read" | "inboxes:write" | "mail:read" | "mail:write" | "mail:send" | "mail:draft" | "events:read" | "webhooks:manage" | "rules:manage")[]required

  • tokenEndpointAuthMethod"none" | "client_secret_post"optional

Example

{
  "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
  • namestringoptional

  • redirectUrisstring[]optional

  • scopes("account:read" | "inboxes:read" | "inboxes:write" | "mail:read" | "mail:write" | "mail:send" | "mail:draft" | "events:read" | "webhooks:manage" | "rules:manage")[]optional

Example

{
  "name": "Mail review"
}

App

A registered client without its secret. A display name is not evidence of a verified developer.

Fields: App
  • idstringrequired

    An OAuth client identifier. Example: app_01jc5f1a2b3c4d5e6f7g8h9j0k

  • namestringrequired

  • redirectUrisstring[]required

  • scopes("account:read" | "inboxes:read" | "inboxes:write" | "mail:read" | "mail:write" | "mail:send" | "mail:draft" | "events:read" | "webhooks:manage" | "rules:manage")[]required

  • tokenEndpointAuthMethod"none" | "client_secret_post"required

  • status"active" | "deleted"required

  • createdAtstring (date-time)required

    Example: 2026-11-05T10:05:00.000Z

  • updatedAtstring (date-time)required

    Example: 2026-11-05T10:05:00.000Z

Example

{
  "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
  • idstringrequired

    An OAuth client identifier. Example: app_01jc5f1a2b3c4d5e6f7g8h9j0k

  • namestringrequired

  • redirectUrisstring[]required

  • scopes("account:read" | "inboxes:read" | "inboxes:write" | "mail:read" | "mail:write" | "mail:send" | "mail:draft" | "events:read" | "webhooks:manage" | "rules:manage")[]required

  • tokenEndpointAuthMethod"none" | "client_secret_post"required

  • status"active" | "deleted"required

  • createdAtstring (date-time)required

    Example: 2026-11-05T10:05:00.000Z

  • updatedAtstring (date-time)required

    Example: 2026-11-05T10:05:00.000Z

  • clientSecretstring | nullrequired

AppList

The developer's registered apps.

Fields: AppList

AppSecret

A new client secret, shown once. Existing installations are revoked.

Fields: AppSecret
  • idstringrequired

    An OAuth client identifier. Example: app_01jc5f1a2b3c4d5e6f7g8h9j0k

  • clientSecretstringrequired

AppInstall

An account's explicit grant to a client. Revocation stops future API and background access.

Fields: AppInstall
  • idstringrequired

    An app installation identifier. Example: ins_01jc5f1a2b3c4d5e6f7g8h9j0k

  • appIdstringrequired

    An OAuth client identifier. Example: app_01jc5f1a2b3c4d5e6f7g8h9j0k

  • namestringrequired

  • dynamicbooleanrequired

    The client registered itself. Nothing about it was checked, its name included.

  • metadataUrlstring | nullrequired

    The 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")[]required

  • status"active" | "revoked"required

  • createdAtstring (date-time)required

    Example: 2026-11-05T10:05:00.000Z

  • lastUsedAtstring (date-time) | nullrequired

    When the client last used this grant, to the minute. Null until it does.

  • expiresAtstring (date-time) | nullrequired

    When 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

Example

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

OAuthConsent

A one-time request bound to the current console session. Approval is never automatic.

Fields: OAuthConsent
  • requestIdstringrequired

  • clientobjectrequired

  • idstringrequired

    An OAuth client identifier. Example: app_01jc5f1a2b3c4d5e6f7g8h9j0k

  • namestringrequired

  • dynamicbooleanrequired

    The client registered itself. Nothing about it was checked, its name included.

  • metadataUrlstring | nullrequired

    The 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.

  • redirectUristringrequired

  • resourcestringrequired

  • scopes("account:read" | "inboxes:read" | "inboxes:write" | "mail:read" | "mail:write" | "mail:send" | "mail:draft" | "events:read" | "webhooks:manage" | "rules:manage")[]required

  • expiresAtstring (date-time)required

    Example: 2026-11-05T10:05:00.000Z

  • csrfstringrequired

DecideOAuth

An explicit decision for this session-bound request.

Fields: DecideOAuth
  • decision"approve" | "deny"required

  • csrfstringrequired

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

  • client_idstring | stringrequired

    A client id this API issued, or the URL of the client's Client ID Metadata Document. Example: app_01jc5f1a2b3c4d5e6f7g8h9j0k

  • client_secretstringoptional

  • resourcestringrequired

  • codestringoptional

  • redirect_uristringoptional

  • code_verifierstringoptional

  • refresh_tokenstringoptional

  • scopestringoptional

Example

{
  "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_tokenstringrequired

  • token_type"Bearer"required

  • expires_inintegerrequired

  • refresh_tokenstringrequired

  • scopestringrequired

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

  • error_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_namestringoptional

  • redirect_urisstring[]required

  • token_endpoint_auth_methodstringoptional

  • grant_typesstring[]optional

  • response_typesstring[]optional

  • scopestringoptional

Example

{
  "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_idstringrequired

    An OAuth client identifier. Example: app_01jc5f1a2b3c4d5e6f7g8h9j0k

  • client_namestringrequired

  • redirect_urisstring[]required

  • token_endpoint_auth_method"none"required

  • grant_types("authorization_code" | "refresh_token")[]required

  • response_types"code"[]required

  • scopestringrequired

  • client_id_issued_atintegerrequired

  • client_id_expires_atintegerrequired

OAuthServerMetadata

OAuth authorization-server discovery.

Fields: OAuthServerMetadata
  • issuerstringrequired

  • authorization_endpointstringrequired

  • token_endpointstringrequired

  • registration_endpointstringrequired

  • response_types_supported"code"[]required

  • grant_types_supported("authorization_code" | "refresh_token")[]required

  • code_challenge_methods_supported"S256"[]required

  • token_endpoint_auth_methods_supported("none" | "client_secret_post")[]required

  • scopes_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")[]required

  • authorization_response_iss_parameter_supportedtruerequired

  • client_id_metadata_document_supportedtruerequired

OAuthResourceMetadata

Protected-resource discovery for the Inbox API or its MCP endpoint.

Fields: OAuthResourceMetadata
  • resourcestringrequired

  • authorization_serversstring[]required

  • scopes_supported("account:read" | "inboxes:read" | "inboxes:write" | "mail:read" | "mail:write" | "mail:send" | "mail:draft" | "events:read" | "webhooks:manage" | "rules:manage")[]required

  • bearer_methods_supported"header"[]required

Inbox

An address on the inbox domain that receives mail as soon as it exists.

Fields: Inbox
  • idstringrequired

    An inbox identifier. Example: inb_01jc4q7w9k2m5n8p3r6t1v4x7z

  • addressstringrequired

    The full address: the mailbox name at the inbox domain. Example: concierge@doorman.example

  • mailboxNamestringrequired

    The part before the @. Example: concierge

  • domainstringrequired

    The inbox domain of this deployment. Example: doorman.example

  • domainIdstring | nulloptional

    The custom domain identifier; null on the shared domain. Older deployments omit it.

  • displayNamestring | nullrequired

    The sender name on outbound mail; null when none is set.

  • signaturestring | nulloptional

    Plain text appended to every message the inbox sends, under a -- line; null when none is set. Older deployments omit it. Example: Acme concierge acme.example

  • signatureHtmlstring | nulloptional

    The 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 | nullrequired

    Your own identifier for the inbox; null when none was given. Example: customer-8841

  • metadataMetadataoptional

  • webhookUrlstring | nullrequired

    The inbox webhook's URL, or null when the inbox has none.

  • status"active" | "suspended" | "deleted"required

    Only active inboxes receive and send; a deleted inbox is never returned.

  • createdAtstring (date-time)required

    Example: 2026-11-05T10:05:00.000Z

  • updatedAtstring (date-time)required

    Example: 2026-11-05T10:05:00.000Z

Example

{
  "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
  • idstringrequired

    An inbox identifier. Example: inb_01jc4q7w9k2m5n8p3r6t1v4x7z

  • addressstringrequired

    The full address: the mailbox name at the inbox domain. Example: concierge@doorman.example

  • mailboxNamestringrequired

    The part before the @. Example: concierge

  • domainstringrequired

    The inbox domain of this deployment. Example: doorman.example

  • domainIdstring | nulloptional

    The custom domain identifier; null on the shared domain. Older deployments omit it.

  • displayNamestring | nullrequired

    The sender name on outbound mail; null when none is set.

  • signaturestring | nulloptional

    Plain text appended to every message the inbox sends, under a -- line; null when none is set. Older deployments omit it. Example: Acme concierge acme.example

  • signatureHtmlstring | nulloptional

    The 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 | nullrequired

    Your own identifier for the inbox; null when none was given. Example: customer-8841

  • metadataMetadataoptional

  • webhookUrlstring | nullrequired

    The inbox webhook's URL, or null when the inbox has none.

  • status"active" | "suspended" | "deleted"required

    Only active inboxes receive and send; a deleted inbox is never returned.

  • createdAtstring (date-time)required

    Example: 2026-11-05T10:05:00.000Z

  • updatedAtstring (date-time)required

    Example: 2026-11-05T10:05:00.000Z

  • unreadThreadsintegerrequired

    Unread, untrashed threads.

  • unseenThreadsintegeroptional

    Untrashed threads no person has looked at in the console since mail last arrived in them. Older deployments omit it.

  • lastMessageAtstring (date-time) | nullrequired

    The latest thread activity, or null when the inbox has no mail.

Example

{
  "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[]required

  • limitintegerrequired

    The page size that was applied.

  • offsetintegerrequired

    The offset that was applied.

  • totalintegerrequired

    How 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
  • mailboxNamestringoptional

    3 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: concierge

  • displayNamestringoptional

    The 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 concierge

  • externalIdstringoptional

    Your 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-8841

  • metadataMetadataoptional

  • domainIdstringoptional

    One of this account's verified custom domains. Omit for the shared domain. Example: dom_01jc5f1a2b3c4d5e6f7g8h9j0k

  • webhookUrlstringoptional

    Set 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/doorman

  • keyobjectoptional

    Mint an inbox-scoped key at once. Its token is in the answer's key.

  • namestringoptional

    A label for the key, at most 100 characters. Example: Acme concierge

Example

{
  "mailboxName": "concierge",
  "displayName": "Acme concierge"
}

UpdateInbox

Changes to an inbox; fields left out stay as they are. The address never changes.

Fields: UpdateInbox
  • displayNamestring | nulloptional

    The new sender name; null or empty clears it.

  • signaturestring | nulloptional

    The 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 | nulloptional

    The 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; signature stays the text part's. When it is set on an inbox that has no signature, and none is given with it, the text is read from the markup. Null or empty clears it.

  • externalIdstring | nulloptional

    Your new identifier for the inbox; null clears it.

  • metadataMetadataoptional

Example

{
  "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
  • appliedbooleanrequired

    True 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[]required

    The 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"required

    A built-in kind, or custom for what a custom guardrail matched.

  • countintegerrequired

Example

{
  "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
  • idstringrequired

    The identifier of a signed business associate agreement. Example: baa_01jc5f1a2b3c4d5e6f7g8h9j0k

  • versionstringrequired

    The version of the text that was signed. Example: 2026-11-draft

  • documentSha256stringrequired

    The SHA-256 of the exact text the signer was shown, in hexadecimal.

  • signerobjectrequired

  • userIdstringrequired

    The identity provider's user id of the person who signed.

  • namestringrequired

  • titlestringrequired

  • entitystringrequired

    The legal entity the person signed for.

  • signedAtstring (date-time)required

    Example: 2026-11-05T10:05:00.000Z

  • terminatedAtstring (date-time) | nullrequired

    When a person ended the agreement; null while it stands.

Example

{
  "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"required

    not_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.

  • eligiblebooleanrequired

    Whether 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" | nullrequired

    What stands between the account and changing guardrails; null when nothing does.

  • inForcebooleanrequired

    Whether 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.

  • versionstringrequired

    The version of the current text.

  • documentSha256stringrequired

    The SHA-256 of the current text.

  • agreementBaaAgreement | nullrequired

    The most recent record; null when nobody ever signed.

Example

{
  "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
  • versionstringrequired

  • sha256stringrequired

    The SHA-256 of text as UTF-8. Signing names it, so what is signed is what was read.

  • titlestringrequired

  • textstringrequired

    The agreement, as plain text.

  • placeholderbooleanrequired

    True 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
  • versionstringrequired

  • documentSha256stringrequired

  • namestringrequired

    The signer's full name.

  • titlestringrequired

    The signer's title at the entity.

  • entitystringrequired

    The legal entity the signer signs for and has authority to bind.

  • signaturestringrequired

    The signer's name, typed as their signature. It must equal name.

  • accepttruerequired

    The signer's statement that they read the text and may bind the entity.

Example

{
  "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"required

    The word terminate, so that nothing ends an agreement by accident.

Example

{
  "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
  • enabledbooleanrequired

    Whether the guardrails apply at all. Off: nothing is detected, redacted, held or refused.

  • inbound"off" | "redact" | "hold"required

    What 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"required

    What the built-in detectors do to a send by a key or an app. block: refused with 403 risk_blocked and the guard guardrail. hold: it waits for the owner as a held send. off: nothing. A person sending from the console is never refused.

  • entitiesobject of booleanrequired

    Which kinds the detectors look for. Every kind is listed.

Example

{
  "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
  • enabledbooleanoptional

    Whether the guardrails apply at all. Off: nothing is detected, redacted, held or refused.

  • inbound"off" | "redact" | "hold"optional

    What 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"optional

    What the built-in detectors do to a send by a key or an app. block: refused with 403 risk_blocked and the guard guardrail. hold: it waits for the owner as a held send. off: nothing. A person sending from the console is never refused.

  • entitiesobject of booleanoptional

    The kinds to switch on or off.

Example

{
  "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"required

  • inboxIdstring | nullrequired

    The inbox the settings are for; null for the account's.

  • inheritedbooleanrequired

    Inbox scope: true while the inbox has no guardrails of its own and follows the account's. Always false for the account.

  • policyGuardrailPolicyrequired

  • inForcebooleanrequired

    Whether these guardrails apply to mail now: the account has an agreement that stands, and policy.enabled is true.

  • baa"not_signed" | "active" | "reacceptance_required" | "terminated"required

  • updatedAtstring (date-time) | nullrequired

    When 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
  • namestringrequired

    A label, at most 80 characters. It appears in the console and the audit log, so it should not itself be sensitive. Example: Study participant ids

  • kind"term" | "pattern"required

    term: 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 in MRN-#{6,10}. A pattern is not a regular expression.

  • valuestringrequired

    The term or the pattern. Example: PT-#{6}

  • inbound"off" | "redact" | "hold"optional

    What a match does to mail that arrives. Defaults to redact.

  • outbound"off" | "hold" | "block"optional

    What a match does to a send by a key or an app. Defaults to off.

  • enabledbooleanoptional

    Whether the guardrail applies. Defaults to true.

  • inboxIdstringoptional

    Apply to this inbox only. Omit for every inbox of the account. Example: inb_01jc4q7w9k2m5n8p3r6t1v4x7z

Example

{
  "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
  • namestringoptional

    A label, at most 80 characters. It appears in the console and the audit log, so it should not itself be sensitive. Example: Study participant ids

  • inbound"off" | "redact" | "hold"optional

    What a match does to mail that arrives. Defaults to redact.

  • outbound"off" | "hold" | "block"optional

    What a match does to a send by a key or an app. Defaults to off.

  • enabledbooleanoptional

    Whether the guardrail applies. Defaults to true.

Example

{
  "outbound": "hold"
}

GuardrailRule

A custom guardrail: what it matches, what a match does, and where it applies.

Fields: GuardrailRule
  • idstringrequired

    A custom guardrail's identifier. Example: grd_01jc5f1a2b3c4d5e6f7g8h9j0k

  • namestringrequired

  • kind"term" | "pattern"required

  • valuestring | nullrequired

    The 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"required

  • outbound"off" | "hold" | "block"required

  • enabledbooleanrequired

  • inboxIdstring | nullrequired

    The inbox the guardrail applies to; null for the whole account.

  • createdAtstring (date-time)required

    Example: 2026-11-05T10:05:00.000Z

  • updatedAtstring (date-time)required

    Example: 2026-11-05T10:05:00.000Z

Example

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

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
  • textstringrequired

  • subjectstringoptional

  • direction"inbound" | "outbound"optional

    Whether the text is mail that arrives or a send by an agent. Defaults to inbound.

  • inboxIdstringoptional

    Evaluate as this inbox: its guardrails and its custom guardrails. Defaults to the account's. Example: inb_01jc4q7w9k2m5n8p3r6t1v4x7z

  • policyUpdateGuardrailPolicyoptional

    A draft, applied over the guardrails in force.

  • ruleobjectoptional

    A custom guardrail to try beside the ones that exist.

  • kind"term" | "pattern"required

    term: 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 in MRN-#{6,10}. A pattern is not a regular expression.

  • valuestringrequired

    The term or the pattern. Example: PT-#{6}

  • inbound"off" | "redact" | "hold"optional

    What a match does to mail that arrives. Defaults to redact.

  • outbound"off" | "hold" | "block"optional

    What a match does to a send by a key or an app. Defaults to off.

Example

{
  "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
  • textstringrequired

    The text with every finding replaced.

  • subjectstring | nullrequired

    The subject with every finding replaced; null when none was given.

  • redactionRedactionrequired

  • action"none" | "redact" | "hold" | "block"required

    The strictest thing a match asks for in this direction: none when nothing matched or everything that matched is off.

Example

{
  "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
  • scoreintegerrequired

    0 is no sign of danger, 100 is as certain as it gets.

  • level"low" | "medium" | "high" | "critical"required

    The 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")[]required

    What kind of danger was found; empty when none was.

  • reasonsstring[]required

    Stable reason codes, strongest first. The catalogue, with a sentence for each, is RISK_REASONS in the contract package and x-doorman-risk-reasons in the OpenAPI document. New codes are additive. Example: ["hidden_text","instruction_override"]

  • senderobjectrequired

  • standing"trusted" | "known" | "new" | "blocked"required

    How well the inbox knew the sender when the message arrived: trusted or blocked by the owner's rule, known when earned, new otherwise.

  • authenticatedbooleanrequired

    Whether the message passed DMARC for the domain in its From address. Standing only counts for a message that did.

  • action"delivered" | "warned" | "held" | "released"required

    What 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"required

    full when a model read the content as well; signals when only the deterministic signals ran.

  • review"safe" | "unsafe" | nullrequired

    What the owner said about the message afterwards, or null. A message marked safe no longer blocks replies.

Example

{
  "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"required

    clean: 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.

  • sha256stringrequired

    The SHA-256 of the bytes, in hexadecimal.

  • detectedTypestring | nullrequired

    The kind of file the bytes are, for example pdf, zip or executable; null when they match no known format. Example: pdf

  • findingsstring[]required

    Reason codes from RISK_REASONS for what was found; empty for a clean file. Example: ["macro_document"]

Example

{
  "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
  • filenamestringrequired

    Unique within the message; the download route uses it. Example: invoice.pdf

  • contentTypestringrequired

    Example: application/pdf

  • sizeBytesintegerrequired

    Example: 45000

  • urlstringrequired

    Where to download the bytes, with the same credential as the API. Example: https://api.doorman.example/v1/attachments/msg_01jc5a6g7h8j9k0m1n2p3q4r5s/invoice.pdf

  • parsedTextstringoptional

    The 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"required

    How the text was obtained (text, csv, pdf, ocr, office), or why it was not.

  • scanAttachmentScanoptional

    The 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 malicious file is never included.

Example

{
  "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
  • filenamestringrequired

  • contentTypestringrequired

  • extractionMethod"text" | "csv" | "pdf" | "ocr" | "office" | "unsupported" | "skipped" | "skipped_too_large" | "unavailable" | "timeout" | "pdf_error" | "ocr_error" | "office_error" | "html_error"required

  • textstring | nullrequired

    The text, or null when nothing was extracted; extractionMethod says why.

Example

{
  "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
  • addressstringrequired

    Example: sam@example.com

  • namestring | nullrequired

    Example: Sam Rivera

Example

{
  "address": "sam@example.com",
  "name": "Sam Rivera"
}

AuthenticationResults

The first Authentication-Results header, read only when the mail platform wrote it.

Fields: AuthenticationResults
  • spfstring | nullrequired

  • dkimstring | nullrequired

  • dmarcstring | nullrequired

Example

{
  "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 | nullrequired

    The service in the inbox's passport; null when none was recorded, because the inbox holds as many as it may.

  • domainstringrequired

    The sender's registrable domain, which identifies the service. Example: example.net

  • signal"verification" | "welcome" | "receipt" | "password_reset" | "security" | "trial" | "cancellation" | "other"required

    What 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.

Example

{
  "id": "svc_01jc5g2b3c4d5e6f7g8h9j0k1m",
  "domain": "example.net",
  "signal": "verification"
}

Message

One message, inbound or outbound, with its text, headers, classification and attachments.

Fields: Message
  • idstringrequired

    A message identifier. Example: msg_01jc5a6g7h8j9k0m1n2p3q4r5s

  • inboxIdstringrequired

    An inbox identifier. Example: inb_01jc4q7w9k2m5n8p3r6t1v4x7z

  • threadIdstringrequired

    A thread identifier. Example: thr_01jc5a1b2c3d4e5f6g7h8j9k0m

  • direction"inbound" | "outbound"required

  • rfcMessageIdstring | nullrequired

    The Message-ID header of inbound mail; null for mail this API sent. Example: <a1b2c3@example.com>

  • inReplyTostring | nullrequired

    The In-Reply-To header, when the message is a reply.

  • referencesstring[]required

    The References chain, oldest first.

  • fromNamedAddressrequired

  • toNamedAddress[]required

  • ccNamedAddress[]required

  • bccNamedAddress[]required

    Only outbound mail carries blind copies.

  • replyTostring | nullrequired

    The Reply-To address, when one was given.

  • deliveryRole"to" | "cc" | "bcc" | nullrequired

    How the inbox received the message: as a to, cc or bcc recipient. Null for outbound mail.

  • subjectstringrequired

    Example: Invoice 2847

  • textstring | nullrequired

    The plain-text body, or text derived from the HTML when there was none.

  • hasHtmlbooleanrequired

    Whether an HTML body is stored; read it at /v1/messages/{messageId}/html.

  • rawUrlstring | nullrequired

    Where to download the original message/rfc822; null for outbound mail.

  • sizeBytesintegerrequired

  • category"personal" | "automated" | "marketing" | "bounce" | "spam" | "malicious"required

    What kind of mail this is; ordinary outbound mail is personal and rule-generated mail is automated.

  • autoReplyablebooleanrequired

    False for anything an agent should not answer on its own.

  • verdict"clean" | "unverified" | "suspicious" | nullrequired

    From the authentication results; null for outbound mail.

  • spamScorenumber | nullrequired

    How likely the message is junk, from 0 to 1, when it was assessed; null otherwise.

  • authenticationAuthenticationResults | nullrequired

  • serviceMessageService | nulloptional

    The 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 | nulloptional

    Doorman's assessment of an inbound message (ADR-019). Null for outbound mail and for mail that was not assessed. Older deployments omit it.

  • redactionRedactionoptional

    What the account's healthcare guardrails found in the message (ADR-027), and whether subject, text and the attachments' parsedText carry placeholders in place of it. Absent where no guardrail applies.

  • occurredAtstring (date-time)required

    When the message arrived or was sent. Example: 2026-11-05T10:05:00.000Z

  • attachmentsAttachment[]required

Example

{
  "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
  • idstringrequired

    A message identifier. Example: msg_01jc5a6g7h8j9k0m1n2p3q4r5s

  • inboxIdstringrequired

    An inbox identifier. Example: inb_01jc4q7w9k2m5n8p3r6t1v4x7z

  • threadIdstringrequired

    A thread identifier. Example: thr_01jc5a1b2c3d4e5f6g7h8j9k0m

  • direction"inbound" | "outbound"required

  • rfcMessageIdstring | nullrequired

    The Message-ID header of inbound mail; null for mail this API sent. Example: <a1b2c3@example.com>

  • inReplyTostring | nullrequired

    The In-Reply-To header, when the message is a reply.

  • referencesstring[]required

    The References chain, oldest first.

  • fromNamedAddressrequired

  • toNamedAddress[]required

  • ccNamedAddress[]required

  • bccNamedAddress[]required

    Only outbound mail carries blind copies.

  • replyTostring | nullrequired

    The Reply-To address, when one was given.

  • deliveryRole"to" | "cc" | "bcc" | nullrequired

    How the inbox received the message: as a to, cc or bcc recipient. Null for outbound mail.

  • subjectstringrequired

    Example: Invoice 2847

  • textstring | nullrequired

    The plain-text body, or text derived from the HTML when there was none.

  • hasHtmlbooleanrequired

    Whether an HTML body is stored; read it at /v1/messages/{messageId}/html.

  • rawUrlstring | nullrequired

    Where to download the original message/rfc822; null for outbound mail.

  • sizeBytesintegerrequired

  • category"personal" | "automated" | "marketing" | "bounce" | "spam" | "malicious"required

    What kind of mail this is; ordinary outbound mail is personal and rule-generated mail is automated.

  • autoReplyablebooleanrequired

    False for anything an agent should not answer on its own.

  • verdict"clean" | "unverified" | "suspicious" | nullrequired

    From the authentication results; null for outbound mail.

  • spamScorenumber | nullrequired

    How likely the message is junk, from 0 to 1, when it was assessed; null otherwise.

  • authenticationAuthenticationResults | nullrequired

  • serviceMessageService | nulloptional

    The 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 | nulloptional

    Doorman's assessment of an inbound message (ADR-019). Null for outbound mail and for mail that was not assessed. Older deployments omit it.

  • redactionRedactionoptional

    What the account's healthcare guardrails found in the message (ADR-027), and whether subject, text and the attachments' parsedText carry placeholders in place of it. Absent where no guardrail applies.

  • occurredAtstring (date-time)required

    When the message arrived or was sent. Example: 2026-11-05T10:05:00.000Z

  • attachmentsAttachment[]required

  • providerMessageIdstring | nullrequired

    The provider's message identifier, used to thread replies to this message. Example: <b2c3d4@doorman.example>

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[]required

  • limitintegerrequired

    The page size that was applied.

  • offsetintegerrequired

    The offset that was applied.

Thread

A conversation: the messages that reply to each other, or share a subject and a participant.

Fields: Thread
  • idstringrequired

    A thread identifier. Example: thr_01jc5a1b2c3d4e5f6g7h8j9k0m

  • inboxIdstringrequired

    An inbox identifier. Example: inb_01jc4q7w9k2m5n8p3r6t1v4x7z

  • subjectstringrequired

    The subject of the first message. Example: Invoice 2847

  • participantsstring[]required

    Every address seen in the thread other than the inbox's own, sorted. Example: ["sam@example.com"]

  • messageCountintegerrequired

  • isReadbooleanrequired

    False until the thread is marked read or a reply is sent.

  • isSeenbooleanoptional

    Whether 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.

  • metadataMetadataoptional

  • labelsThreadLabelsoptional

  • riskLevel"low" | "medium" | "high" | "critical" | nulloptional

    The 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)required

    Example: 2026-11-05T10:05:00.000Z

  • lastMessageAtstring (date-time)required

    Example: 2026-11-05T10:05:00.000Z

  • lastMessageIdstring | nullrequired

  • createdAtstring (date-time)required

    Example: 2026-11-05T10:05:00.000Z

Example

{
  "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[]required

  • limitintegerrequired

    The page size that was applied.

  • offsetintegerrequired

    The offset that was applied.

  • totalintegerrequired

    How many threads match, across every page.

ThreadMessages

A thread with its messages in order.

Fields: 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

Example

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

Example

{
  "seen": true
}

SendAttachment

A file to attach, base64-encoded.

Fields: SendAttachment
  • filenamestringrequired

  • contentTypestringrequired

    Example: application/pdf

  • contentstring (base64)required

    Base64. The 25 MiB message limit is enforced after decoding.

  • disposition"attachment" | "inline"optional

    Inline attachments are referenced from the HTML body by contentId.

  • contentIdstringoptional

    The Content-ID an inline image is referenced by, as cid:<contentId>.

Example

{
  "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[]optional

    Recipients. Optional on a reply, where it defaults to the last inbound message's Reply-To or sender.

  • ccstring | string[]optional

  • bccstring | string[]optional

  • replyTostringoptional

    The address replies should go to instead of the inbox.

  • subjectstringoptional

    Required on a new message. A reply defaults to Re: <thread subject>.

  • textstringoptional

    The plain-text body.

  • htmlstringoptional

    The HTML body. Text is derived from it when text is absent.

  • bodystringoptional

    A convenience: treated as HTML when it looks like HTML, as text otherwise. Ignored when text or html is given.

  • threadIdstringoptional

    A 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_01jc5a1b2c3d4e5f6g7h8j9k0m

  • includeQuotebooleanoptional

    On a reply, quote the previous message under the text. Defaults to true.

  • attachmentsSendAttachment[]optional

Example

{
  "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
  • tostringoptional

  • ccstringoptional

  • bccstringoptional

  • replyTostringoptional

  • subjectstringoptional

  • textstringoptional

  • htmlstringoptional

  • bodystringoptional

  • threadIdstringoptional

  • includeQuotestringoptional

  • attachmentsbinary[]optional

ServicePlan

What the service costs, as it was recorded. Every field may be null.

Fields: ServicePlan
  • namestring | nullrequired

    The plan's name. Example: Team

  • amountnumber | nullrequired

    The price in the currency's main unit: 12.5 for 12.50. Example: 12

  • currencystring | nullrequired

    An ISO 4217 code. Example: USD

  • interval"week" | "month" | "year" | nullrequired

    How often the price is charged.

  • renewsOnstring | nullrequired

    The next renewal or charge, as a calendar day (YYYY-MM-DD).

Example

{
  "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 | nulloptional

  • amountnumber | nulloptional

    The price in the currency's main unit: 12.5 for 12.50.

  • currencystring | nulloptional

    Example: USD

  • interval"week" | "month" | "year" | nulloptional

  • renewsOnstring | nulloptional

    The next renewal or charge, as a calendar day (YYYY-MM-DD).

Example

{
  "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"required

  • idstring | nullrequired

    The installation (ins_) or key (key_) identifier; null for a person.

Example

{
  "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"required

    unexplained_code when a verification code or sign-in link arrived with no recent agent declaration or read to account for it; password_reset or security when the service sent a reset or a security notice.

  • atstring (date-time)required

    When the message that raised the warning arrived. Example: 2026-11-05T10:05:00.000Z

Example

{
  "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
  • idstringrequired

    An identifier this API issued (sic_), or the URL of the identity document the relying party published.

  • namestringrequired

    What the relying party calls itself. A label, not proof of who it is.

  • hoststringrequired

    The host the relying party is identified by. Example: app.example.net

  • verifiedbooleanrequired

    Whether 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.

Example

{
  "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
  • idstringrequired

    The identifier of one address's connection to one relying party. Example: sig_01jc5f1a2b3c4d5e6f7g8h9j0k

  • clientSignInClientSummaryrequired

  • state"pending" | "allowed" | "blocked"required

    pending while an agent asked to sign in and the owner has not answered, allowed once the owner (or the account's own setting) said yes, blocked once the owner stopped it.

  • shareOwnerbooleanrequired

    Whether the relying party is told who owns the agent, when it asks.

  • requestedAtstring (date-time) | nullrequired

    When an agent last asked to sign in while it was not allowed to; null otherwise.

  • decidedAtstring (date-time) | nullrequired

    When it was last allowed or blocked.

  • firstSignInAtstring (date-time) | nullrequired

  • lastSignInAtstring (date-time) | nullrequired

  • signInCountintegerrequired

    Sign-ins completed.

Example

{
  "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
  • idstringrequired

    A passport service identifier. Example: svc_01jc5g2b3c4d5e6f7g8h9j0k1m

  • inboxIdstringrequired

    An inbox identifier. Example: inb_01jc4q7w9k2m5n8p3r6t1v4x7z

  • inboxAddressstringrequired

    The address the service knows the agent by. Example: concierge@doorman.example

  • domainstringrequired

    The service's registrable domain. This is what identifies it: when it was found in mail, the sender was authenticated for it. Example: example.net

  • namestringrequired

    A 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 Tools

  • status"pending" | "active" | "cancelled" | "archived"required

    pending until the sign-up is confirmed (a welcome or a receipt arrives, the agent reads its code, or a person says so), active, cancelled, or archived when a person set it aside as not a sign-up.

  • source"detected" | "declared" | "manual"required

    detected from mail, declared by an agent, or manual when a person added it.

  • acquiredByServiceActorRef | nullrequired

    Who 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 | nullrequired

    A note a person or an agent left.

  • planServicePlan | nullrequired

    What the service costs, when someone recorded it.

  • attentionServiceAttention | nullrequired

    An 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) | nullrequired

    When 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[]required

    How 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" | nullrequired

    What the newest mail from the service was about.

  • lastSignalAtstring (date-time) | nullrequired

  • lastReceiptAtstring (date-time) | nullrequired

    When the newest receipt or invoice arrived: a sign that the service is paid.

  • lastSecurityAtstring (date-time) | nullrequired

    When the newest password reset or security notice arrived.

  • messageCountintegerrequired

    Messages tied to the service.

  • firstSeenAtstring (date-time) | nullrequired

    When the first mail from the service arrived; null until one does.

  • lastSeenAtstring (date-time) | nullrequired

    When the newest mail from the service arrived.

  • createdAtstring (date-time)required

    Example: 2026-11-05T10:05:00.000Z

  • updatedAtstring (date-time)required

    Example: 2026-11-05T10:05:00.000Z

Example

{
  "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[]required

  • limitintegerrequired

    The page size that was applied.

  • offsetintegerrequired

    The offset that was applied.

  • totalintegerrequired

    How 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
  • messageIdstringrequired

    A message identifier. Example: msg_01jc5a6g7h8j9k0m1n2p3q4r5s

  • threadIdstringrequired

    A thread identifier. Example: thr_01jc5a1b2c3d4e5f6g7h8j9k0m

  • subjectstringrequired

    Example: Your verification code

  • signal"verification" | "welcome" | "receipt" | "password_reset" | "security" | "trial" | "cancellation" | "other"required

  • occurredAtstring (date-time)required

    Example: 2026-11-05T10:05:00.000Z

Example

{
  "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
  • idstringrequired

    A passport service identifier. Example: svc_01jc5g2b3c4d5e6f7g8h9j0k1m

  • inboxIdstringrequired

    An inbox identifier. Example: inb_01jc4q7w9k2m5n8p3r6t1v4x7z

  • inboxAddressstringrequired

    The address the service knows the agent by. Example: concierge@doorman.example

  • domainstringrequired

    The service's registrable domain. This is what identifies it: when it was found in mail, the sender was authenticated for it. Example: example.net

  • namestringrequired

    A 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 Tools

  • status"pending" | "active" | "cancelled" | "archived"required

    pending until the sign-up is confirmed (a welcome or a receipt arrives, the agent reads its code, or a person says so), active, cancelled, or archived when a person set it aside as not a sign-up.

  • source"detected" | "declared" | "manual"required

    detected from mail, declared by an agent, or manual when a person added it.

  • acquiredByServiceActorRef | nullrequired

    Who 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 | nullrequired

    A note a person or an agent left.

  • planServicePlan | nullrequired

    What the service costs, when someone recorded it.

  • attentionServiceAttention | nullrequired

    An 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) | nullrequired

    When 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[]required

    How 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" | nullrequired

    What the newest mail from the service was about.

  • lastSignalAtstring (date-time) | nullrequired

  • lastReceiptAtstring (date-time) | nullrequired

    When the newest receipt or invoice arrived: a sign that the service is paid.

  • lastSecurityAtstring (date-time) | nullrequired

    When the newest password reset or security notice arrived.

  • messageCountintegerrequired

    Messages tied to the service.

  • firstSeenAtstring (date-time) | nullrequired

    When the first mail from the service arrived; null until one does.

  • lastSeenAtstring (date-time) | nullrequired

    When the newest mail from the service arrived.

  • createdAtstring (date-time)required

    Example: 2026-11-05T10:05:00.000Z

  • updatedAtstring (date-time)required

    Example: 2026-11-05T10:05:00.000Z

  • evidenceServiceEvidence[]required

    Newest first, at most 20. Messages in trashed threads are left out.

Example

{
  "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
  • domainstringrequired

    The service's domain, or a host under it: app.example.net is recorded as example.net. Example: example.net

  • namestringoptional

    A label, at most 100 characters. Defaults to the domain.

  • notestring | nulloptional

    At most 500 characters: why the agent signed up, or the plan it chose and its price.

Example

{
  "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
  • namestringoptional

  • status"pending" | "active" | "cancelled" | "archived"optional

    archived sets 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's signIns.

  • notestring | nulloptional

  • planServicePlanInput | nulloptional

  • attentionanyoptional

    Null clears an active attention warning once the owner has checked the account. Needs a console session unless the account allows its account keys to (403 session_required).

  • signInobjectoptional

    A 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 (403 session_required).

  • idstringrequired

    The identifier of one address's connection to one relying party. Example: sig_01jc5f1a2b3c4d5e6f7g8h9j0k

  • state"allowed" | "blocked"optional

    allowed lets the address sign in to the relying party; blocked stops it and ends the links, codes and tokens it was given.

  • shareOwnerbooleanoptional

    Whether the relying party is told who owns the agent, when it asks.

Example

{
  "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
  • alertEmailsbooleanrequired

    Send an email to alertEmail when 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)required

    Where alert emails are sent: the account owner's address. Example: sam@example.com

  • emailAvailablebooleanrequired

    Whether this deployment has email sending configured for owner alerts.

  • signInAvailablebooleanrequired

    Whether this deployment has Sign in with Doorman switched on. Where it has not, the two settings below change nothing.

  • agentSignInbooleanrequired

    Whether 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.

  • shareOwnerbooleanrequired

    Whether 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.

  • briefingEmailsbooleanrequired

    Whether 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.

  • briefingHourintegerrequired

    The hour of the day, in timeZone, at which the briefing is sent.

  • timeZonestringrequired

    The IANA time zone briefingHour is read in. Example: America/Guayaquil

  • updatedAtstring (date-time) | nullrequired

    When these settings were last changed; null while they are the default.

Example

{
  "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
  • alertEmailsbooleanoptional

    Whether to email the account owner when a service receives an unexplained code or link, a password reset, or a security notice.

  • agentSignInbooleanoptional

    Whether an agent may sign in to a service the owner has not allowed yet.

  • shareOwnerbooleanoptional

    Whether a service an agent signed in to alone is told who owns the agent, when it asks.

  • briefingEmailsbooleanoptional

    Whether to email the account owner a daily briefing in counts only. The first one covers what arrives from the moment it is switched on.

  • briefingHourintegeroptional

    The hour of the day, in timeZone, at which the briefing is sent.

  • timeZonestringoptional

    The IANA time zone briefingHour is read in. Example: America/Guayaquil

Example

{
  "alertEmails": true
}

A sign-in or confirmation link read from a message.

Fields: VerificationLink
  • urlstringrequired

    Example: https://app.example.net/verify?token=...

  • hoststringrequired

    Example: app.example.net

  • matchesSenderbooleanrequired

    True when the link's registrable domain is the authenticated sender's. Open any other link only when your user agrees.

Example

{
  "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
  • messageIdstringrequired

    A message identifier. Example: msg_01jc5a6g7h8j9k0m1n2p3q4r5s

  • threadIdstringrequired

    A thread identifier. Example: thr_01jc5a1b2c3d4e5f6g7h8j9k0m

  • inboxIdstringrequired

    An inbox identifier. Example: inb_01jc4q7w9k2m5n8p3r6t1v4x7z

  • serviceIdstring | nullrequired

    The service in the inbox's passport, when the sender was authenticated.

  • domainstring | nullrequired

    The sender's registrable domain when the sender was authenticated (DMARC passed); null otherwise. Example: example.net

  • fromstringrequired

    The sender's address. Example: no-reply@example.net

  • subjectstringrequired

    Example: Your verification code

  • signal"verification" | "welcome" | "receipt" | "password_reset" | "security" | "trial" | "cancellation" | "other"required

    What the message is for: verification for a sign-up or sign-in, password_reset for a reset someone asked for. A reset or a code nobody on your side asked for is a warning sign.

  • codestring | nullrequired

    The one-time code, or null when the message carried a link only. Example: 849204

  • linkVerificationLink | nullrequired

  • verifiedbooleanrequired

    Whether the sender was authenticated (DMARC passed). Treat an unverified code or link with suspicion.

  • unexplainedbooleanrequired

    True once an authenticated verification code or link has waited past the grace window without a recent agent declaration or read to account for it.

  • invitationbooleanrequired

    True 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)required

    Example: 2026-11-05T10:05:00.000Z

  • expiresAtstring (date-time)required

    When this read stops serving it. The service's own expiry may be sooner. Example: 2026-11-05T10:05:00.000Z

  • readAtstring (date-time) | nullrequired

    When a credential first read it here; null until then.

Example

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

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
  • domainstringoptional

    The service's domain or host.

  • clientIdstringoptional

    Or the relying party's id, when the service states one.

Example

{
  "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"required

    ready: open url in the browser that should hold the session at the service, before expiresAt. approval_required: the owner has to allow this service once, at approvalUrl; 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.

  • inboxIdstringrequired

    An inbox identifier. Example: inb_01jc4q7w9k2m5n8p3r6t1v4x7z

  • serviceIdstring | nullrequired

    The service in the inbox's passport, recorded when the sign-in started; null when unsupported.

  • clientSignInClientSummary | nullrequired

    The relying party the sign-in is for; null when unsupported.

  • urlstring | nullrequired

    ready only: 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 | nullrequired

    approval_required only: where the owner allows the service. Tell your user; it needs their own session.

  • expiresAtstring (date-time) | nullrequired

    ready only: when the link stops working.

Example

{
  "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
  • requestIdstringrequired

    A waiting authorization request. Example: aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa

  • clientSignInClientSummaryrequired

  • inboxIdstring | nullrequired

    The 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 | nullrequired

    Example: concierge@doorman.example

  • state"pending" | "allowed" | "blocked" | nullrequired

    What was decided before about this address at this relying party; null when nothing was, or when no address is named yet.

  • shareOwnerbooleanrequired

    Whether this relying party is already told who owns the agent.

  • scopes("openid" | "email" | "profile" | "owner_profile" | "owner_email")[]required

    What the relying party asked to be told.

  • ownerRequestedbooleanrequired

    Whether it asked who owns the agent. The owner answers that separately, with shareOwner.

  • redirectHoststringrequired

    Where the browser goes back to once the owner decides. Example: app.example.net

  • expiresAtstring (date-time)required

    Example: 2026-11-05T10:05:00.000Z

  • csrfstringrequired

    Sent back with the decision. Each read replaces it. Example: aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa

Example

{
  "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"required

  • inboxIdstringoptional

    The address to sign in, when the request named none. Where it named one, leave it out or repeat it. Example: inb_01jc4q7w9k2m5n8p3r6t1v4x7z

  • shareOwnerbooleanoptional

    Whether 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.

  • csrfstringrequired

    A waiting authorization request. Example: aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa

Example

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

Example

{
  "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
  • linkstringrequired

    The secret a sign-in link carries: single use, 5 minutes. Example: dsl_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx

Example

{
  "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
  • inboxAddressstringrequired

    Example: concierge@doorman.example

  • clientSignInClientSummaryrequired

  • expiresAtstring (date-time)required

    Example: 2026-11-05T10:05:00.000Z

Example

{
  "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
  • bindingstringrequired

    What ties one browser to the sign-in it opened. Example: dsb_yyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyy

  • bindingExpiresAtstring (date-time)required

    Example: 2026-11-05T10:05:00.000Z

  • startUrlstringrequired

    Where the browser continues: the relying party's start URL with iss and login_hint, or its own front page when it registered none.

Example

{
  "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
  • requestIdstringrequired

    A waiting authorization request. Example: aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa

  • bindingstringoptional

    From the browser's cookie. Left out when the browser holds none. Example: dsb_yyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyy

Example

{
  "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"required

  • redirectUrlstring | nullrequired

    redirect only: back to the relying party, with a code or with an error.

  • approvalUrlstring | nullrequired

    approval_required only: where the owner decides, in the console.

Example

{
  "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
  • namestringrequired

    What the service calls itself. People are shown the host beside it.

  • hoststringrequired

    The host agents sign in at. A public name the service can prove is its own, or localhost, 127.0.0.1 or [::1] while developing: a relying party on your own machine signs in your own addresses only. Example: app.example.net

  • redirectUrisstring[]required

  • startUrlstringoptional

    Where the service starts a Sign in with Doorman (OpenID Connect's initiate_login_uri). A sign-in link sends the browser there with iss and login_hint. Without one, the browser is sent to the service's front page.

  • tokenEndpointAuthMethod"client_secret_basic" | "client_secret_post" | "none"optional

    Defaults to client_secret_basic. A relying party with a secret may present it either way. none registers a public one, which holds no secret and uses S256 PKCE.

Example

{
  "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
  • namestringoptional

  • redirectUrisstring[]optional

    Every one on the relying party's host.

  • startUrlstring | nulloptional

    On the relying party's host. Null removes it.

Example

{
  "name": "Example Tools Workspace"
}

SignInClient

A relying party a developer registered, without its secret.

Fields: SignInClient
  • idstringrequired

    A registered relying party's identifier. Example: sic_01jc5f1a2b3c4d5e6f7g8h9j0k

  • namestringrequired

  • hoststringrequired

  • redirectUrisstring[]required

  • startUrlstring | nullrequired

  • tokenEndpointAuthMethod"client_secret_basic" | "client_secret_post" | "none"required

  • verifiedbooleanrequired

    Whether 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) | nullrequired

  • proofobject | nullrequired

    How 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.

  • urlstringrequired

    Serve the file here, over HTTPS, without a redirect.

  • bodyobjectrequired

    The file's JSON. Other fields beside these two are ignored.

  • client_idstringrequired

    A registered relying party's identifier. Example: sic_01jc5f1a2b3c4d5e6f7g8h9j0k

  • proofstringrequired

  • status"active" | "deleted"required

  • createdAtstring (date-time)required

    Example: 2026-11-05T10:05:00.000Z

  • updatedAtstring (date-time)required

    Example: 2026-11-05T10:05:00.000Z

Example

{
  "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
  • idstringrequired

    A registered relying party's identifier. Example: sic_01jc5f1a2b3c4d5e6f7g8h9j0k

  • namestringrequired

  • hoststringrequired

  • redirectUrisstring[]required

  • startUrlstring | nullrequired

  • tokenEndpointAuthMethod"client_secret_basic" | "client_secret_post" | "none"required

  • verifiedbooleanrequired

    Whether 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) | nullrequired

  • proofobject | nullrequired

    How 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.

  • urlstringrequired

    Serve the file here, over HTTPS, without a redirect.

  • bodyobjectrequired

    The file's JSON. Other fields beside these two are ignored.

  • client_idstringrequired

    A registered relying party's identifier. Example: sic_01jc5f1a2b3c4d5e6f7g8h9j0k

  • proofstringrequired

  • status"active" | "deleted"required

  • createdAtstring (date-time)required

    Example: 2026-11-05T10:05:00.000Z

  • updatedAtstring (date-time)required

    Example: 2026-11-05T10:05:00.000Z

  • clientSecretstring | nullrequired

SignInClientList

The relying parties the account registered, oldest first.

Fields: SignInClientList

SignInClientSecret

A relying party's new secret, shown once. The one before it stops working at once.

Fields: SignInClientSecret
  • idstringrequired

    A registered relying party's identifier. Example: sic_01jc5f1a2b3c4d5e6f7g8h9j0k

  • clientSecretstringrequired

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

  • codestringrequired

  • redirect_uristringrequired

  • client_idstringoptional

  • client_secretstringoptional

  • code_verifierstringoptional

Example

{
  "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_tokenstringrequired

  • token_type"Bearer"required

  • expires_inintegerrequired

  • id_tokenstringrequired

    An ES256 JWT. Check its signature against the published keys, and its iss, aud, exp and nonce.

  • scopestringrequired

    What 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
  • substringrequired

    The address's subject: the same at every relying party, and a new one if the address is ever given up and issued again. Example: f0Jx2kQp9wLr7TzV3mYb8nHc5dGs1aKe4uWq6oPi0Ag

  • actor_type"agent"required

    Always agent: the one signing in is software acting for its owner.

  • emailstringoptional

    email: the address. Example: concierge@doorman.example

  • email_verifiedtrueoptional

  • namestringoptional

    profile: the address's display name, when it has one.

  • owner_substringoptional

    profile: who owns the agent, as an identifier that is different at every relying party.

  • owner_namestringoptional

    owner_profile, where the owner allowed it: the owner's name.

  • owner_emailstringoptional

    owner_email, where the owner allowed it: the owner's own address.

  • owner_email_verifiedtrueoptional

Example

{
  "sub": "f0Jx2kQp9wLr7TzV3mYb8nHc5dGs1aKe4uWq6oPi0Ag",
  "actor_type": "agent",
  "email": "concierge@doorman.example",
  "email_verified": true
}

SignInDiscovery

OpenID Connect discovery for Sign in with Doorman.

Fields: SignInDiscovery
  • issuerstringrequired

  • authorization_endpointstringrequired

  • token_endpointstringrequired

  • userinfo_endpointstringrequired

  • jwks_uristringrequired

  • response_types_supported"code"[]required

  • response_modes_supported"query"[]required

  • grant_types_supported"authorization_code"[]required

  • subject_types_supported"public"[]required

  • id_token_signing_alg_values_supported"ES256"[]required

  • scopes_supported("openid" | "email" | "profile" | "owner_profile" | "owner_email")[]required

  • 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")[]required

  • token_endpoint_auth_methods_supported("client_secret_basic" | "client_secret_post" | "none")[]required

  • code_challenge_methods_supported"S256"[]required

  • authorization_response_iss_parameter_supportedtruerequired

  • client_id_metadata_document_supportedtruerequired

  • request_parameter_supportedfalserequired

  • request_uri_parameter_supportedfalserequired

  • claims_parameter_supportedfalserequired

Example

{
  "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"required

  • crv"P-256"required

  • xstringrequired

  • ystringrequired

  • kidstringrequired

  • use"sig"required

  • alg"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

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

  • error_descriptionstringoptional

Example

{
  "error": "invalid_grant"
}

ApiKey

An API key as the API lists it. The token itself appears once, when the key is created.

Fields: ApiKey
  • idstringrequired

    An API key identifier. Example: key_01jc5c0z9y8x7w6v5t4t3s2r1q

  • inboxIdstring | nullrequired

    The inbox an inbox-scoped key reaches; null for an account key.

  • namestringrequired

    A label, possibly empty. Example: Orchestrator

  • tokenPrefixstringrequired

    The first ten characters of the token, starting with dm_. Example: dm_9f3abcd

  • last4stringrequired

    The last four characters of the token. Example: m2x8

  • createdAtstring (date-time)required

    Example: 2026-11-05T10:05:00.000Z

  • lastUsedAtstring (date-time) | nullrequired

    When the key last authenticated a request, to the minute; null until then.

  • createdByobject | nulloptional

    The 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.

  • userIdstringrequired

    The identity provider's user id. Example: user_2abcDEF3ghiJKL

  • namestringrequired

    The person's name when the key was minted, or their address when they had no name. Example: Dana Ortiz

Example

{
  "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
  • idstringrequired

    An API key identifier. Example: key_01jc5c0z9y8x7w6v5t4t3s2r1q

  • inboxIdstring | nullrequired

    The inbox an inbox-scoped key reaches; null for an account key.

  • namestringrequired

    A label, possibly empty. Example: Orchestrator

  • tokenPrefixstringrequired

    The first ten characters of the token, starting with dm_. Example: dm_9f3abcd

  • last4stringrequired

    The last four characters of the token. Example: m2x8

  • createdAtstring (date-time)required

    Example: 2026-11-05T10:05:00.000Z

  • lastUsedAtstring (date-time) | nullrequired

    When the key last authenticated a request, to the minute; null until then.

  • createdByobject | nulloptional

    The 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.

  • userIdstringrequired

    The identity provider's user id. Example: user_2abcDEF3ghiJKL

  • namestringrequired

    The person's name when the key was minted, or their address when they had no name. Example: Dana Ortiz

  • inboxAddressstring | nulloptional

    The address of an inbox-scoped key's inbox; null for an account key. Only with scope=all.

Example

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

CreatedApiKey

A freshly minted key with its token, which is shown once and stored only as a hash.

Fields: CreatedApiKey
  • idstringrequired

    An API key identifier. Example: key_01jc5c0z9y8x7w6v5t4t3s2r1q

  • inboxIdstring | nullrequired

    The inbox an inbox-scoped key reaches; null for an account key.

  • namestringrequired

    A label, possibly empty. Example: Orchestrator

  • tokenPrefixstringrequired

    The first ten characters of the token, starting with dm_. Example: dm_9f3abcd

  • last4stringrequired

    The last four characters of the token. Example: m2x8

  • createdAtstring (date-time)required

    Example: 2026-11-05T10:05:00.000Z

  • lastUsedAtstring (date-time) | nullrequired

    When the key last authenticated a request, to the minute; null until then.

  • createdByobject | nulloptional

    The 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.

  • userIdstringrequired

    The identity provider's user id. Example: user_2abcDEF3ghiJKL

  • namestringrequired

    The person's name when the key was minted, or their address when they had no name. Example: Dana Ortiz

  • tokenstringrequired

    The bearer token. Store it now; it cannot be read again. Example: dm_9f3abcdefghjkmnpqrstvwxyz0123456789abcdefghjkmnpm2x8

Example

{
  "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
  • namestringoptional

    A label, at most 100 characters. Example: Orchestrator

Example

{
  "name": "Orchestrator"
}

Health

The service is up.

Fields: Health
  • oktruerequired

  • service"doorman-inbox"required

Example

{
  "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
  • idstringrequired

    An account identifier. Example: acc_01jc4q3x6k9m2n8p4r7t5v1w3y

  • emailstring (email)required

    The person's verified address, or an organization's contact address. Example: sam@example.com

  • namestringrequired

    The person's name, or the organization's. Example: Dana Ortiz

  • plan"free" | "pro" | "enterprise"required

  • kind"personal" | "organization"optional

    personal for one person's account, organization for the account a team shares. Older deployments omit it.

Example

{
  "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
  • idstringrequired

    The identity provider's organization id. Example: org_2abcDEF3ghiJKL

  • namestringrequired

    The organization's name; empty until the identity provider has reported it. Example: Acme

  • slugstring | nullrequired

    The organization's slug at the identity provider, or null when it has none. Example: acme

Example

{
  "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
  • accountIdstringrequired

    An account identifier. Example: acc_01jc4q3x6k9m2n8p4r7t5v1w3y

Example

{
  "accountId": "acc_01jc4q3x6k9m2n8p4r7t5v1w3y"
}

PlanSummary

The account's plan and its limits; null limits mean unlimited.

Fields: PlanSummary
  • name"free" | "pro" | "enterprise"required

  • labelstringrequired

    Example: Free

  • priceUsdnumber | nullrequired

    Per month per account; null means by arrangement.

  • inboxLimitinteger | nullrequired

  • monthlySendLimitinteger | nullrequired

  • domainLimitinteger | nulloptional

    Custom domains allowed; zero on free. Older deployments omit it.

Example

{
  "name": "free",
  "label": "Free",
  "priceUsd": 0,
  "inboxLimit": 3,
  "monthlySendLimit": 3000
}

Usage

This month's usage against the plan.

Fields: Usage
  • inboxesintegerrequired

    Active inboxes.

  • domainsintegeroptional

    Active custom domains. Older deployments omit it.

  • sendsThisMonthintegerrequired

    Successful sends this UTC calendar month, replies included.

  • monthResetsAtstring (date-time)required

    The first instant of the next UTC month. Example: 2026-11-05T10:05:00.000Z

Example

{
  "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"required

  • cancelAtPeriodEndbooleanrequired

    True when the subscription was canceled and the plan lasts until currentPeriodEnd.

  • currentPeriodEndstring (date-time) | nullrequired

    When the paid period ends: the next charge, or the last day of the plan when cancelAtPeriodEnd is true.

Example

{
  "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 | nullrequired

    The seats the organization's subscription pays for; null while it has no Teams subscription.

  • usedintegerrequired

    The seats held: active members and open invitations.

  • limitinteger | nullrequired

    How many people the organization may hold now: purchased for a team that pays, one for an organization that pays nothing, null when nothing limits it.

  • seatPriceUsdnumberrequired

    What one seat costs a month.

  • minSeatsintegerrequired

    The fewest seats a Teams subscription holds.

  • maxSeatsintegerrequired

    The most seats a Teams subscription holds.

Example

{
  "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 | nullrequired

  • seatsSeatsoptional

    Present for an organization's account where the deployment sells the Teams plan, which is paid per seat.

Example

{
  "subscription": null
}

SetSeats

The number of seats the organization's Teams subscription should hold: the whole count, not a difference.

Fields: SetSeats
  • seatsintegerrequired

Example

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

Example

{
  "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"required

  • billingBillingSummaryrequired

Example

{
  "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
  • accountAccountrequired

  • planPlanSummaryrequired

  • usageUsagerequired

  • keyobject | nullrequired

    The API key that made the call; null for a console session.

  • idstringrequired

    An API key identifier. Example: key_01jc5c0z9y8x7w6v5t4t3s2r1q

  • scope"account" | "inbox"required

  • inboxIdstring | nullrequired

  • sessionobject | nullrequired

    The console session that made the call; null for an API key.

  • userIdstringrequired

    The identity provider's user id.

  • rolestring | nulloptional

    The person's role in the organization as the identity provider names it (org:admin or org:member); null in a personal account. What the session may do follows memberRole, not this. Older deployments omit it. Example: org:admin

  • memberRole"owner" | "admin" | "member" | "viewer" | nulloptional

    The role the API keeps for the person in the organization, which decides what the session may do: owner, admin, member or viewer. Null in a personal account. Older deployments omit it. Example: owner

  • permissions("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")[]optional

    What 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 | nulloptional

    In an organization, the account POST /v1/organization/adopt would move, for as long as it can be moved: the person's own personal account, when the session holds account: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 | nulloptional

    The organization the account belongs to, whoever is calling; null for a personal account. Older deployments omit it.

  • oauthobjectoptional

    Present only when a scoped app access token made the call.

  • appIdstringrequired

    An OAuth client identifier. Example: app_01jc5f1a2b3c4d5e6f7g8h9j0k

  • installationIdstringrequired

    An app installation identifier. Example: ins_01jc5f1a2b3c4d5e6f7g8h9j0k

  • scopes("account:read" | "inboxes:read" | "inboxes:write" | "mail:read" | "mail:write" | "mail:send" | "mail:draft" | "events:read" | "webhooks:manage" | "rules:manage")[]required

  • inboxInbox | nullrequired

    The inbox an inbox-scoped key reaches; null otherwise.

  • inboxDomainstringrequired

    Every inbox address is a mailbox name at this domain. Example: doorman.example

  • featuresobjectoptional

    Configured capabilities, independent of the plan. Missing flags mean unavailable.

  • customDomainsbooleanrequired

  • domainConnectbooleanrequired

  • signInbooleanoptional

    Whether Sign in with Doorman is switched on for this deployment.

  • billingbooleanoptional

    Whether an account can pay for a plan here. Where it cannot, plans are set by the operator.

  • healthcarebooleanoptional

    Whether healthcare guardrails and the business associate agreement are switched on for this deployment (ADR-027).

  • draftsbooleanoptional

    Whether an app or a key can write drafts for the owner to send here (ADR-028).

  • billingBillingSummaryoptional

    Present where billing is switched on and the caller is an account key or a console session.

  • healthcareobjectoptional

    Present where healthcare guardrails are switched on and the caller is an account key or a console session.

  • baa"not_signed" | "active" | "reacceptance_required" | "terminated"required

    Where the account stands with the business associate agreement.

  • eligiblebooleanrequired

    Whether the account may sign and change guardrails now.

  • guardrailsbooleanrequired

    Whether guardrails apply to the account's mail now.

Example

{
  "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
  • inboxesobjectrequired

  • activeintegerrequired

  • limitinteger | nullrequired

    The plan's allowance; null means unlimited.

  • keysobjectrequired

  • accountintegerrequired

    Active account keys.

  • inboxintegerrequired

    Active inbox-scoped keys.

  • mailobjectrequired

  • receivedLast7Daysintegerrequired

  • sentLast7Daysintegerrequired

  • unreadThreadsintegerrequired

    Across live inboxes, untrashed threads.

  • lastReceivedAtstring (date-time) | nullrequired

  • lastSentAtstring (date-time) | nullrequired

  • webhooksobjectrequired

  • inboxWebhooksintegerrequired

  • endpointsintegerrequired

  • deliveredLast24Hoursintegerrequired

  • failedLast24Hoursintegerrequired

  • checklistobjectrequired

    What has happened at least once.

  • createdInboxbooleanrequired

  • createdKeybooleanrequired

  • receivedMessagebooleanrequired

  • connectedWebhookbooleanrequired

    True while an inbox webhook or an endpoint exists.

  • sentMessagebooleanrequired

  • servicesobjectoptional

    The account's passport: the outside services its addresses are signed up for. Older deployments omit it.

  • totalintegerrequired

    Services the live inboxes are signed up for, archived ones left out.

  • pendingintegerrequired

    Sign-ups not confirmed yet.

  • paidintegerrequired

    Services that have sent a receipt or an invoice.

  • attentionintegeroptional

    Services with an active warning (an unexplained code, a password reset, or a security notice). Older deployments omit it.

  • signInsPendingintegeroptional

    Sign-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.

  • securityobjectoptional

    Risk assessment counts (ADR-019). Older deployments omit it.

  • heldintegerrequired

    Messages held for review across live inboxes.

  • flaggedLast7Daysintegerrequired

    Inbound messages of the last 7 days assessed high or critical.

  • heldSendsintegeroptional

    Sends that wait for the owner's word across live inboxes. Older deployments omit it.

  • scanningintegeroptional

    Messages 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.

Example

{
  "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
  • receivedintegerrequired

  • sentintegerrequired

  • webhookDeliveredintegerrequired

  • webhookFailedintegerrequired

Example

{
  "received": 140,
  "sent": 38,
  "webhookDelivered": 139,
  "webhookFailed": 1
}

MetricsBucket

One UTC bucket of the series.

Fields: MetricsBucket
  • receivedintegerrequired

  • sentintegerrequired

  • webhookDeliveredintegerrequired

  • webhookFailedintegerrequired

  • atstring (date-time)required

    The bucket's start. Example: 2026-11-05T10:05:00.000Z

Example

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

    Example: 2026-11-05T10:05:00.000Z

  • tostring (date-time)required

    Example: 2026-11-05T10:05:00.000Z

  • interval"hour" | "day"required

  • inboxIdstring | nullrequired

    The inbox the counts are limited to; null for the whole account.

  • seriesMetricsBucket[]required

    One entry per bucket covering [from, to), zeros included.

  • totalsMetricsCountersrequired

  • categoriesobjectrequired

    Inbound messages by category over the range.

  • personalintegerrequired

  • automatedintegerrequired

  • marketingintegerrequired

  • bounceintegerrequired

  • spamintegerrequired

  • maliciousintegerrequired

  • verdictsobjectrequired

    Inbound messages by verdict over the range.

  • cleanintegerrequired

  • unverifiedintegerrequired

  • suspiciousintegerrequired

  • riskobjectoptional

    Assessed inbound messages by risk level over the range, held ones included. Older deployments omit it.

  • lowintegerrequired

  • mediumintegerrequired

  • highintegerrequired

  • criticalintegerrequired

  • heldintegeroptional

    Messages that were held over the range, whatever became of them. Older deployments omit it.

Example

{
  "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"required

  • hoststringrequired

  • typestringrequired

  • valuestringrequired

  • priorityinteger | nullrequired

  • ttlintegerrequired

  • requiredbooleanrequired

  • status"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
  • idstringrequired

    A custom domain identifier. Example: dom_01jc5f1a2b3c4d5e6f7g8h9j0k

  • namestringrequired

  • status"pending" | "verified" | "failed"required

  • transport"resend"required

  • recordsDomainRecord[]required

  • connectobjectrequired

  • availablebooleanrequired

  • setupType"automatic" | "manual" | nullrequired

  • propagationStatus"pending" | "success" | "failed" | nullrequired

  • providerstring | nullrequired

  • inboxesintegerrequired

  • verifiedAtstring (date-time) | nullrequired

  • expiresAtstring (date-time) | nullrequired

    When 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) | nullrequired

  • createdAtstring (date-time)required

    Example: 2026-11-05T10:05:00.000Z

  • updatedAtstring (date-time)required

    Example: 2026-11-05T10:05:00.000Z

Example

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

CreateDomain

A domain to connect. A subdomain avoids replacing an existing apex mailbox service.

Fields: CreateDomain
  • namestringrequired

    Trimmed, lowercased and validated as a domain by the Worker. Example: agents.example.com

Example

{
  "name": "agents.example.com"
}

DomainConnectSession

A short-lived DNS setup token and records, returned to the console only.

Fields: DomainConnectSession
  • applicationIdstringrequired

  • tokenstringrequired

  • prefilledDomainstringrequired

  • userIdstringrequired

  • dnsRecordsobjectrequired

  • domainobject[]optional

  • typestringrequired

  • hoststringrequired

  • valuestringrequired

  • ttlintegerrequired

  • priorityintegeroptional

  • optionalbooleanoptional

  • subDomainobject[]optional

  • typestringrequired

  • hoststringrequired

  • valuestringrequired

  • ttlintegerrequired

  • priorityintegeroptional

  • optionalbooleanoptional

PushSubscription

One browser on one device that the owner switched notifications on for. The address notifications are sent to is never answered.

Fields: PushSubscription
  • idstringrequired

    A push subscription's identifier. Example: psh_01jc5f1a2b3c4d5e6f7g8h9j0k

  • createdAtstring (date-time)required

    Example: 2026-11-05T10:05:00.000Z

  • lastDeliveredAtstring (date-time) | nullrequired

    When a push service last accepted a notification for it; null until the first.

Example

{
  "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
  • availablebooleanrequired

    Whether this deployment has notifications configured. Where it has not, there is no key and nothing can be subscribed.

  • publicKeystring | nullrequired

    The application server key a browser subscribes with: an uncompressed P-256 point in base64url. Null where notifications are not configured. Example: BAa0PjquH4AsQaDVl7stumrfQkF25D5eq5cDI3vLILFFIArx2o3ucteiAy6y5sH5jGLSsn6xjD5aRv4LFNVU9TM

  • subscriptionsPushSubscription[]required

    At most 10.

Example

{
  "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
  • endpointstringrequired

    The 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

Example

{
  "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"required

    The preset the policy equals (relaxed, balanced, strict), or custom when it matches none.

  • warnAtinteger | nullrequired

    Mail scoring at least this is delivered with a warning and is never answered automatically. Null means never. Example: 60

  • holdAtinteger | nullrequired

    Mail scoring at least this is held for the owner and kept from agents. Null means never. Not below warnAt. Example: 85

  • labelsobject of "warn" | "hold"required

    The least that happens to mail carrying a label, whatever its score: warn or hold. Replaced as a whole; {} clears it. Example: {"prompt_injection":"hold"}

  • holdUnauthenticatedNewSendersbooleanrequired

    Hold mail from a sender the inbox has never dealt with when it does not authenticate as its domain.

  • modelAnalysisbooleanrequired

    Let 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.

  • replyGuardbooleanrequired

    Refuse 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"required

    known: an agent may write only to senders the inbox trusts or knows, and to the account's own inboxes (403 risk_blocked otherwise). 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"required

    Whose 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's enforcement, except off, where no record of senders is kept and nothing is held. No preset changes it. An account that never chose starts on apps.

  • allowKeyManagementbooleanrequired

    Let 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.

  • deepScanbooleanrequired

    Run 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).

  • linkSandboxbooleanrequired

    Open 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"required

    The least that happens to mail carrying something that could not be checked (a locked archive, or a scan that did not finish): deliver, warn or hold.

Example

{
  "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"optional

    Apply this preset's thresholds and guards. It also clears the per-label rules, unless labels is given with it.

  • warnAtinteger | nulloptional

    Mail scoring at least this is delivered with a warning and is never answered automatically. Null means never. Example: 60

  • holdAtinteger | nulloptional

    Mail scoring at least this is held for the owner and kept from agents. Null means never. Not below warnAt. Example: 85

  • labelsobject of "warn" | "hold"optional

    The least that happens to mail carrying a label, whatever its score: warn or hold. Replaced as a whole; {} clears it. Example: {"prompt_injection":"hold"}

  • holdUnauthenticatedNewSendersbooleanoptional

    Hold mail from a sender the inbox has never dealt with when it does not authenticate as its domain.

  • modelAnalysisbooleanoptional

    Let 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.

  • replyGuardbooleanoptional

    Refuse 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"optional

    known: an agent may write only to senders the inbox trusts or knows, and to the account's own inboxes (403 risk_blocked otherwise). 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"optional

    Whose 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's enforcement, except off, where no record of senders is kept and nothing is held. No preset changes it. An account that never chose starts on apps.

  • allowKeyManagementbooleanoptional

    Let 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.

  • deepScanbooleanoptional

    Run 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).

  • linkSandboxbooleanoptional

    Open 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"optional

    The least that happens to mail carrying something that could not be checked (a locked archive, or a scan that did not finish): deliver, warn or hold.

Example

{
  "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"required

  • inboxIdstring | nullrequired

    The inbox the settings are for; null for the account's.

  • inheritedbooleanrequired

    Inbox scope: true while the inbox has no policy of its own and follows the account's. Always false for the account.

  • policySecurityPolicyrequired

  • enforcement"off" | "observe" | "enforce"required

    What the deployment does: enforce applies the policy; observe assesses mail and records the result without warning, holding or blocking anything; off does not assess.

  • modelAnalysisAvailablebooleanrequired

    Whether this deployment has a model to read content with. When false, modelAnalysis has no effect.

  • deepScanAvailablebooleanoptional

    Whether this deployment runs the malware engine and the link sandbox. When false, deepScan and linkSandbox have no effect. Older deployments omit it.

  • updatedAtstring (date-time) | nullrequired

    When the policy was last changed; null while it is the default.

Example

{
  "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
  • addressstringrequired

    Example: sam@example.com

  • namestring | nullrequired

    The display name last seen on their mail. Example: Sam Rivera

  • standing"trusted" | "known" | "new" | "blocked"required

    The standing in force: the owner's rule when one matches, otherwise what the sender earned.

  • source"rule" | "learned"required

    rule when a sender rule for the address or its domain decides the standing; learned otherwise.

  • kind"person" | "automated" | "bulk"required

    What their mail has mostly been: from a person, automated, or bulk.

  • receivedintegerrequired

    Messages received from the address.

  • authenticatedintegerrequired

    How many of them passed DMARC.

  • sentintegerrequired

    Messages the inbox sent to the address. One is enough to make the sender known.

  • flaggedintegerrequired

    Messages from the address that were warned about, held or marked unsafe. Any flag keeps a sender from being known.

  • lastRiskLevel"low" | "medium" | "high" | "critical" | nullrequired

  • firstSeenAtstring (date-time)required

    Example: 2026-11-05T10:05:00.000Z

  • lastSeenAtstring (date-time)required

    Example: 2026-11-05T10:05:00.000Z

Example

{
  "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[]required

  • limitintegerrequired

    The page size that was applied.

  • offsetintegerrequired

    The offset that was applied.

  • totalintegerrequired

    How 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
  • matchstringrequired

    An address (sam@example.com) or a domain (example.com, which covers every address at it, not its subdomains). Example: sam@example.com

  • standing"trusted" | "blocked"required

    trusted: 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.

  • inboxIdstringoptional

    Apply to this inbox only. Omit for every inbox of the account. Example: inb_01jc4q7w9k2m5n8p3r6t1v4x7z

  • notestringoptional

    A label for whoever reads the list later, at most 200 characters.

Example

{
  "match": "sam@example.com",
  "standing": "trusted"
}

SenderRule

A sender rule: who it matches, what it says, and where it applies.

Fields: SenderRule
  • idstringrequired

    A sender rule identifier. Example: snr_01jc5f1a2b3c4d5e6f7g8h9j0k

  • kind"address" | "domain"required

  • matchstringrequired

    Example: sam@example.com

  • standing"trusted" | "blocked"required

  • inboxIdstring | nullrequired

    The inbox the rule applies to; null for the whole account.

  • notestring | nullrequired

  • createdAtstring (date-time)required

    Example: 2026-11-05T10:05:00.000Z

  • updatedAtstring (date-time)required

    Example: 2026-11-05T10:05:00.000Z

Example

{
  "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[]required

  • limitintegerrequired

    The page size that was applied.

  • offsetintegerrequired

    The offset that was applied.

  • totalintegerrequired

    How 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
  • idstringrequired

    A message identifier. Example: msg_01jc5a6g7h8j9k0m1n2p3q4r5s

  • inboxIdstringrequired

    An inbox identifier. Example: inb_01jc4q7w9k2m5n8p3r6t1v4x7z

  • fromstringrequired

    The sender's address. Example: billing@example.net

  • subjectstring | nullrequired

    The subject, for a caller that may review held mail (a console session, or an account key the account allows); null for every other caller.

  • attachmentsintegerrequired

    How many attachments the message carries.

  • sizeBytesintegerrequired

  • receivedAtstring (date-time)required

    Example: 2026-11-05T10:05:00.000Z

  • riskRiskAssessmentrequired

Example

{
  "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[]required

  • limitintegerrequired

    The page size that was applied.

  • offsetintegerrequired

    The offset that was applied.

  • totalintegerrequired

    How 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

Example

{
  "verdict": "safe"
}

SecurityAuditEntry

One change to what protects the account: who made it, to what, and when. Entries carry no mail content.

Fields: SecurityAuditEntry
  • idstringrequired

    A security audit entry identifier. Example: sau_01jc5f1a2b3c4d5e6f7g8h9j0k

  • action"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"required

  • actorobjectrequired

  • kind"session" | "key"required

    A person in the console, or an API key.

  • idstring | nullrequired

    The identity provider's user id, or the key's id.

  • inboxIdstring | nullrequired

    The inbox the change was about; null for the account.

  • targetstring | nullrequired

    The address, domain, message id or held send id the change was about.

  • detailstring | nullrequired

    What changed, in a few words: the fields of a policy, or the standing of a rule.

  • atstring (date-time)required

    Example: 2026-11-05T10:05:00.000Z

Example

{
  "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[]required

  • limitintegerrequired

    The page size that was applied.

  • offsetintegerrequired

    The 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
  • inboxIdstringoptional

    Evaluate 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_01jc4q7w9k2m5n8p3r6t1v4x7z

  • messageIdstringoptional

    A stored inbound message of the account that was assessed. A held one needs a caller that may review held mail. Example: msg_01jc5a6g7h8j9k0m1n2p3q4r5s

  • sample"ordinary" | "phishing" | "prompt_injection" | "impersonation"optional

    A built-in message: ordinary mail, a phishing attempt, an injection hidden from the reader, or an impersonation.

  • fromstringoptional

    The sender of your own message. Defaults to a sender the inbox has never seen. Example: stranger@example.net

  • authenticatedbooleanoptional

    Whether 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.

  • subjectstringoptional

  • textstringoptional

    The plain-text body of your own message.

  • htmlstringoptional

    The HTML body of your own message.

  • policyUpdateSecurityPolicyoptional

    A draft to evaluate under, applied over the policy in force. Omit to use the policy in force.

Example

{
  "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
  • riskRiskAssessmentrequired

  • refusedbooleanrequired

    True when the sender is blocked: the message would be refused and never stored, whatever risk.action says the policy would otherwise have done.

  • agentViewstringrequired

    The 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"required

    The deployment's mode, so a caller can say whether this is what happens today.

Example

{
  "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
  • idstringrequired

    A held send's identifier. Example: hsd_01jc5f1a2b3c4d5e6f7g8h9j0k

  • inboxIdstringrequired

    An inbox identifier. Example: inb_01jc4q7w9k2m5n8p3r6t1v4x7z

  • kind"held" | "draft"required

    Why 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"required

    held while it waits. sent once the owner approved it and the mail went out. discarded when the owner said no. expired when nobody decided in time. Only a held send can be decided.

  • threadIdstring | nullrequired

    The thread a reply was written into; null for a new message.

  • tostring[]required

    Who 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[]required

  • bccstring[]required

  • unknownRecipientsstring[]required

    The recipients that made it wait: addresses the inbox neither knows nor trusts. Empty for a draft. Example: ["sam@example.com"]

  • subjectstring | nullrequired

    The 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 | nullrequired

    The 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.

  • attachmentsintegerrequired

    How many attachments it carries.

  • requestedByobjectrequired

  • kind"app" | "key"required

    A connected app, or an API key.

  • namestring | nullrequired

    The app's or the key's name, when it has one. Example: Support agent

  • messageIdstring | nullrequired

    The message it became once it was sent; null otherwise.

  • createdAtstring (date-time)required

    Example: 2026-11-05T10:05:00.000Z

  • expiresAtstring (date-time)required

    When it expires unsent: 7 days after it was made, or 30 for a draft. Example: 2026-11-05T10:05:00.000Z

  • decidedAtstring (date-time) | nullrequired

    When it was sent, discarded or expired; null while it waits.

Example

{
  "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[]required

  • limitintegerrequired

    The page size that was applied.

  • offsetintegerrequired

    The offset that was applied.

  • totalintegerrequired

    How 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.

  • idstringrequired

    A message identifier. Example: msg_01jc5a6g7h8j9k0m1n2p3q4r5s

  • inboxIdstringrequired

    An inbox identifier. Example: inb_01jc4q7w9k2m5n8p3r6t1v4x7z

  • threadIdstringrequired

    A thread identifier. Example: thr_01jc5a1b2c3d4e5f6g7h8j9k0m

  • direction"inbound" | "outbound"required

  • rfcMessageIdstring | nullrequired

    The Message-ID header of inbound mail; null for mail this API sent. Example: <a1b2c3@example.com>

  • inReplyTostring | nullrequired

    The In-Reply-To header, when the message is a reply.

  • referencesstring[]required

    The References chain, oldest first.

  • fromNamedAddressrequired

  • toNamedAddress[]required

  • ccNamedAddress[]required

  • bccNamedAddress[]required

    Only outbound mail carries blind copies.

  • replyTostring | nullrequired

    The Reply-To address, when one was given.

  • deliveryRole"to" | "cc" | "bcc" | nullrequired

    How the inbox received the message: as a to, cc or bcc recipient. Null for outbound mail.

  • subjectstringrequired

    Example: Invoice 2847

  • textstring | nullrequired

    The plain-text body, or text derived from the HTML when there was none.

  • hasHtmlbooleanrequired

    Whether an HTML body is stored; read it at /v1/messages/{messageId}/html.

  • rawUrlstring | nullrequired

    Where to download the original message/rfc822; null for outbound mail.

  • sizeBytesintegerrequired

  • category"personal" | "automated" | "marketing" | "bounce" | "spam" | "malicious"required

    What kind of mail this is; ordinary outbound mail is personal and rule-generated mail is automated.

  • autoReplyablebooleanrequired

    False for anything an agent should not answer on its own.

  • verdict"clean" | "unverified" | "suspicious" | nullrequired

    From the authentication results; null for outbound mail.

  • spamScorenumber | nullrequired

    How likely the message is junk, from 0 to 1, when it was assessed; null otherwise.

  • authenticationAuthenticationResults | nullrequired

  • serviceMessageService | nulloptional

    The 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 | nulloptional

    Doorman's assessment of an inbound message (ADR-019). Null for outbound mail and for mail that was not assessed. Older deployments omit it.

  • redactionRedactionoptional

    What the account's healthcare guardrails found in the message (ADR-027), and whether subject, text and the attachments' parsedText carry placeholders in place of it. Absent where no guardrail applies.

  • occurredAtstring (date-time)required

    When the message arrived or was sent. Example: 2026-11-05T10:05:00.000Z

  • attachmentsAttachment[]required

  • providerMessageIdstring | nullrequired

    The 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).

  • idstringrequired

    A held send's identifier. Example: hsd_01jc5f1a2b3c4d5e6f7g8h9j0k

  • inboxIdstringrequired

    An inbox identifier. Example: inb_01jc4q7w9k2m5n8p3r6t1v4x7z

  • kind"held" | "draft"required

    Why 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"required

    held while it waits. sent once the owner approved it and the mail went out. discarded when the owner said no. expired when nobody decided in time. Only a held send can be decided.

  • threadIdstring | nullrequired

    The thread a reply was written into; null for a new message.

  • tostring[]required

    Who 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[]required

  • bccstring[]required

  • unknownRecipientsstring[]required

    The recipients that made it wait: addresses the inbox neither knows nor trusts. Empty for a draft. Example: ["sam@example.com"]

  • subjectstring | nullrequired

    The 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 | nullrequired

    The 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.

  • attachmentsintegerrequired

    How many attachments it carries.

  • requestedByobjectrequired

  • kind"app" | "key"required

    A connected app, or an API key.

  • namestring | nullrequired

    The app's or the key's name, when it has one. Example: Support agent

  • messageIdstring | nullrequired

    The message it became once it was sent; null otherwise.

  • createdAtstring (date-time)required

    Example: 2026-11-05T10:05:00.000Z

  • expiresAtstring (date-time)required

    When it expires unsent: 7 days after it was made, or 30 for a draft. Example: 2026-11-05T10:05:00.000Z

  • decidedAtstring (date-time) | nullrequired

    When it was sent, discarded or expired; null while it waits.

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

Member

One person in an organization, with the role the API keeps for them.

Fields: Member
  • userIdstringrequired

    The identity provider's id of a person. Example: user_2abcDEF3ghiJKL

  • emailstring (email)required

    The person's verified address, as their last session carried it. Example: sam@example.com

  • namestringrequired

    The person's name as their last session carried it; empty when it carried none. Example: Dana Ortiz

  • role"owner" | "admin" | "member" | "viewer"required

    What the person may do: owner and admin may do everything, member reads, changes and sends mail, viewer reads it.

  • status"active" | "deactivated" | "removed"required

    active, deactivated for a member who is refused until an admin lets them in again, or removed for one who has left.

  • joinedAtstring (date-time)required

    When the person first worked in the organization. Example: 2026-11-05T10:05:00.000Z

  • lastSeenAtstring (date-time) | nullrequired

    About when the person last worked in the organization; null when never.

  • invitedBystring | nullrequired

    Who invited the person, when an invitation brought them in; null otherwise.

  • isSelfbooleanrequired

    True for the signed-in person's own entry.

Example

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

UpdateMember

A member's new role.

Fields: UpdateMember
  • role"owner" | "admin" | "member" | "viewer"required

    The new role: owner and admin may do everything, member reads, changes and sends mail, viewer reads it. Only an owner may make someone an owner or change an owner's role.

Example

{
  "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
  • idstringrequired

    An invitation's identifier. Example: inv_01jc5f1a2b3c4d5e6f7g8h9j0k

  • emailstring (email)required

    The invited address. Example: sam@example.com

  • role"owner" | "admin" | "member" | "viewer"required

    The role the person takes when they come in.

  • status"pending" | "accepted" | "revoked" | "expired"required

  • invitedByobjectrequired

    Who sent it.

  • userIdstringrequired

    The identity provider's id of a person. Example: user_2abcDEF3ghiJKL

  • namestringrequired

    The inviter's name at the time. Example: Dana Ortiz

  • providerInvitationIdstring | nullrequired

    The identity provider's id of the invitation, once the console has had it sent; null until then.

  • createdAtstring (date-time)required

    Example: 2026-11-05T10:05:00.000Z

  • expiresAtstring (date-time)required

    When it stops being open: 30 days after it was made or last sent again. Example: 2026-11-05T10:05:00.000Z

  • acceptedAtstring (date-time) | nullrequired

    When the person came in; null until then.

Example

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

CreateInvitation

Who to invite, and as what.

Fields: CreateInvitation
  • emailstring (email)required

    The address to invite. It is stored in lowercase. Example: sam@example.com

  • role"owner" | "admin" | "member" | "viewer"optional

    The role the person takes when they come in: owner and admin may do everything, member reads, changes and sends mail, viewer reads it. Only an owner may invite an owner. Defaults to member.

Example

{
  "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
  • providerInvitationIdstringrequired

    The identity provider's id of the invitation it sent. Example: orginv_2abcDEF3ghiJKL

Example

{
  "providerInvitationId": "orginv_2abcDEF3ghiJKL"
}

RuleWhen

All supplied conditions must match. At least one condition is required.

Fields: RuleWhen
  • category"personal" | "automated" | "marketing" | "bounce" | "spam" | "malicious"optional

  • senderstring (email)optional

    Exact normalized From address. A match is not proof of sender identity.

  • subjectContainsstringoptional

    Case-insensitive subject substring, not a regular expression.

  • minRiskLevel"low" | "medium" | "high" | "critical"optional

    The message's risk level is this or higher. A message that was not assessed never matches.

  • senderStanding"trusted" | "known" | "new" | "blocked"optional

    The 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

Alternative 2

  • type"auto_reply"required

  • textstringrequired

    Plain text, with optional {{sender}}, {{subject}} and {{inbox}} substitutions. No code, HTML or remote templates.

Alternative 3

  • type"forward"required

  • tostring (email)required

Alternative 4

  • type"trash"required

CreateRule

An inbound rule, enabled by default. Only account credentials may manage rules.

Fields: CreateRule
  • namestringrequired

  • enabledbooleanoptional

  • whenRuleWhenrequired

  • thenRuleAction[]required

    Executed in array order. At most one auto_reply or forward action per rule.

Example

{
  "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
  • namestringoptional

  • enabledbooleanoptional

  • whenRuleWhenoptional

  • thenRuleAction[]optional

    Executed in array order. At most one auto_reply or forward action per rule.

Example

{
  "enabled": false
}

Rule

An inbound rule. Rules run oldest first, with id as the tie-breaker; actions run in array order.

Fields: Rule
  • idstringrequired

    An inbox rule identifier. Example: rul_01jc5f1a2b3c4d5e6f7g8h9j0k

  • installationIdstringoptional

    Present for an installation-owned rule. Revocation stops execution. Example: ins_01jc5f1a2b3c4d5e6f7g8h9j0k

  • inboxIdstringrequired

    An inbox identifier. Example: inb_01jc4q7w9k2m5n8p3r6t1v4x7z

  • namestringrequired

  • enabledbooleanrequired

  • whenRuleWhenrequired

  • thenRuleAction[]required

    Executed in array order. At most one auto_reply or forward action per rule.

  • createdAtstring (date-time)required

    Example: 2026-11-05T10:05:00.000Z

  • updatedAtstring (date-time)required

    Example: 2026-11-05T10:05:00.000Z

Example

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

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
  • idstringrequired

    A rule execution identifier. Example: rrn_01jc5f1a2b3c4d5e6f7g8h9j0k

  • ruleIdstringrequired

    An inbox rule identifier. Example: rul_01jc5f1a2b3c4d5e6f7g8h9j0k

  • eventIdstringrequired

    An event identifier. Example: evt_01jc5e5f6g7h8j9k0m1n2p3q4r

  • status"pending" | "running" | "completed" | "failed" | "skipped" | "uncertain"required

  • completedActionsintegerrequired

  • skippedActionsintegerrequired

  • lastErrorstring | nullrequired

    A content-free reason code, never provider text or message contents.

  • createdAtstring (date-time)required

    Example: 2026-11-05T10:05:00.000Z

  • updatedAtstring (date-time)required

    Example: 2026-11-05T10:05:00.000Z

RuleRunPage

Execution history, newest first.

Fields: RuleRunPage
  • dataRuleRun[]required

  • limitintegerrequired

    The page size that was applied.

  • offsetintegerrequired

    The 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"required

  • contentstringrequired

  • toolCallIdstringoptional

    On a tool message: the proposal it answers.

  • namestringoptional

    On a tool message: the tool's name.

Example

{
  "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[]required

  • idstringrequired

  • labelstringrequired

  • hrefstringrequired

  • needsInboxbooleanrequired

  • landmarksobject[]required

  • idstringrequired

  • routesstring[]required

  • labelstringrequired

AssistantStageCue

A navigation, pointer or progress cue for the console's declared stage.

Fields: AssistantStageCue

One of:

Alternative 1

  • idstringrequired

  • kind"go"required

  • routestringrequired

  • inboxIdstring | nullrequired

Alternative 2

  • idstringrequired

  • kind"point"required

  • landmarkstringrequired

  • notestringrequired

Alternative 3

  • idstringrequired

  • kind"rounds"required

  • stepsstring[]required

  • currentintegerrequired

AssistantChatRequest

One turn of Ask Doorman: the transcript so far and where in the console the person is.

Fields: AssistantChatRequest
  • messagesAssistantMessage[]required

    At most 40 messages; the last one must come from the person or be a tool result.

  • contextobjectrequired

  • pagestringrequired

    The console path the person is on. Example: /console/inboxes

  • inboxIdstringoptional

    The inbox the page is about, when there is one.

  • stageAssistantStageoptional

Example

{
  "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
  • idstringrequired

    Example: prp_0123456789abcdefghjkmnpqrs

  • name"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"required

  • argsobjectrequired

    Validated arguments in the shape the console's server actions take.

  • summarystringrequired

    One sentence saying what confirming does.

Example

{
  "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"required

  • dataobjectrequired

  • deltastringrequired

Alternative 2

  • event"tool"required

  • dataobjectrequired

  • name"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"required

  • summarystringrequired

Alternative 3

Alternative 4

Alternative 5

  • event"done"required

  • dataobjectrequired

Alternative 6

  • event"error"required

  • dataobjectrequired

  • codestringrequired

  • messagestringrequired

Example

{
  "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 | nullrequired

    Null when the inbox has no webhook.

  • secretstring | nullrequired

    The signing secret, masked after creation (whsec_... and the last four characters).

Example

{
  "url": "https://agent.example.com/hooks/doorman",
  "secret": "whsec_...ODk="
}

InboxWebhookSecret

The inbox webhook with its new signing secret, shown once.

Fields: InboxWebhookSecret
  • urlstringrequired

  • secretstringrequired

    A Standard Webhooks secret (whsec_ and base64), shown once. Verify signatures with its decoded bytes. Example: whsec_dGVzdC13ZWJob29rLXNpZ25pbmctc2VjcmV0LTAxMjM0NTY3ODk=

Example

{
  "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
  • urlstringrequired

    An https URL without credentials (http is accepted in local development). Example: https://agent.example.com/hooks/doorman

Example

{
  "url": "https://agent.example.com/hooks/doorman"
}

LastDelivery

The newest delivery to an endpoint.

Fields: LastDelivery
  • status"pending" | "delivered" | "failed"required

  • statusCodeinteger | nullrequired

  • atstring (date-time)required

    Example: 2026-11-05T10:05:00.000Z

Example

{
  "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
  • idstringrequired

    A webhook endpoint identifier. Example: whk_01jc5d1a2b3c4d5e6f7g8h9j0k

  • installationIdstringoptional

    Present for an installation-owned endpoint. Revocation stops delivery. Example: ins_01jc5f1a2b3c4d5e6f7g8h9j0k

  • namestringrequired

    A label, possibly empty. Example: Orchestrator

  • urlstringrequired

    Example: https://agent.example.com/hooks/doorman

  • eventTypes("message.received" | "message.sent" | "thread.updated" | "inbox.created" | "inbox.deleted" | "delivery.failed" | "message.held" | "send.held" | "send.discarded" | "sign_in.requested" | "sign_in.completed")[]required

    The event types it receives; empty means all.

  • inboxIdsstring[]required

    The inboxes it receives for; empty means all.

  • enabledbooleanrequired

    A disabled endpoint receives nothing until it is enabled again.

  • createdAtstring (date-time)required

    Example: 2026-11-05T10:05:00.000Z

  • updatedAtstring (date-time)required

    Example: 2026-11-05T10:05:00.000Z

  • lastDeliveryLastDelivery | nullrequired

Example

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

CreatedEndpoint

A new endpoint with its signing secret, shown once.

Fields: CreatedEndpoint
  • idstringrequired

    A webhook endpoint identifier. Example: whk_01jc5d1a2b3c4d5e6f7g8h9j0k

  • installationIdstringoptional

    Present for an installation-owned endpoint. Revocation stops delivery. Example: ins_01jc5f1a2b3c4d5e6f7g8h9j0k

  • namestringrequired

    A label, possibly empty. Example: Orchestrator

  • urlstringrequired

    Example: https://agent.example.com/hooks/doorman

  • eventTypes("message.received" | "message.sent" | "thread.updated" | "inbox.created" | "inbox.deleted" | "delivery.failed" | "message.held" | "send.held" | "send.discarded" | "sign_in.requested" | "sign_in.completed")[]required

    The event types it receives; empty means all.

  • inboxIdsstring[]required

    The inboxes it receives for; empty means all.

  • enabledbooleanrequired

    A disabled endpoint receives nothing until it is enabled again.

  • createdAtstring (date-time)required

    Example: 2026-11-05T10:05:00.000Z

  • updatedAtstring (date-time)required

    Example: 2026-11-05T10:05:00.000Z

  • lastDeliveryLastDelivery | nullrequired

  • secretstringrequired

    A Standard Webhooks secret (whsec_ and base64), shown once. Verify signatures with its decoded bytes. Example: whsec_dGVzdC13ZWJob29rLXNpZ25pbmctc2VjcmV0LTAxMjM0NTY3ODk=

Example

{
  "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
  • idstringrequired

    A webhook endpoint identifier. Example: whk_01jc5d1a2b3c4d5e6f7g8h9j0k

  • secretstringrequired

    A Standard Webhooks secret (whsec_ and base64), shown once. Verify signatures with its decoded bytes. Example: whsec_dGVzdC13ZWJob29rLXNpZ25pbmctc2VjcmV0LTAxMjM0NTY3ODk=

Example

{
  "id": "whk_01jc5d1a2b3c4d5e6f7g8h9j0k",
  "secret": "whsec_dGVzdC13ZWJob29rLXNpZ25pbmctc2VjcmV0LTAxMjM0NTY3ODk="
}

EndpointTestResult

What happened to one signed test delivery.

Fields: EndpointTestResult
  • okbooleanrequired

    Whether the URL answered 2xx in time.

  • statusCodeinteger | nullrequired

    The HTTP status, or null when the request did not complete.

  • errorstring | nullrequired

    HTTP <status>, timeout or network_error; null on success.

  • durationMsintegerrequired

Example

{
  "ok": true,
  "statusCode": 200,
  "error": null,
  "durationMs": 212
}

CreateEndpoint

A new account endpoint.

Fields: CreateEndpoint
  • namestringoptional

    A label, at most 100 characters. Example: Orchestrator

  • urlstringrequired

    An https URL without credentials (http is accepted in local development). Example: https://agent.example.com/hooks/doorman

  • eventTypes("message.received" | "message.sent" | "thread.updated" | "inbox.created" | "inbox.deleted" | "delivery.failed" | "message.held" | "send.held" | "send.discarded" | "sign_in.requested" | "sign_in.completed")[]optional

    Event types to receive; empty or absent means all.

  • inboxIdsstring[]optional

    Ids of active inboxes of the account to receive for; empty or absent means all. Duplicates are dropped. Example: ["inb_01jc4q7w9k2m5n8p3r6t1v4x7z"]

  • enabledbooleanoptional

    Whether deliveries start right away. Defaults to true.

Example

{
  "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
  • namestringoptional

    A label, at most 100 characters. Example: Orchestrator

  • urlstringoptional

    An https URL without credentials (http is accepted in local development). Example: https://agent.example.com/hooks/doorman

  • eventTypes("message.received" | "message.sent" | "thread.updated" | "inbox.created" | "inbox.deleted" | "delivery.failed" | "message.held" | "send.held" | "send.discarded" | "sign_in.requested" | "sign_in.completed")[]optional

    Event types to receive; empty or absent means all.

  • inboxIdsstring[]optional

    Ids of active inboxes of the account to receive for; empty or absent means all. Duplicates are dropped. Example: ["inb_01jc4q7w9k2m5n8p3r6t1v4x7z"]

  • enabledbooleanoptional

    Whether deliveries start right away. Defaults to true.

Example

{
  "enabled": false
}

Delivery

One event sent to one target, with every attempt's outcome.

Fields: Delivery
  • idstringrequired

    A webhook delivery identifier. Example: whd_01jc5f1a2b3c4d5e6f7g8h9j0k

  • eventIdstringrequired

    An event identifier. Example: evt_01jc5e5f6g7h8j9k0m1n2p3q4r

  • targetobjectrequired

  • kind"inbox" | "endpoint"required

    inbox for the inbox webhook, endpoint for an account endpoint.

  • idstringrequired

    The inbox id or the endpoint id.

  • urlstringrequired

    The URL at the time of delivery.

  • status"pending" | "delivered" | "failed"required

  • attemptsintegerrequired

  • lastStatusCodeinteger | nullrequired

  • lastErrorstring | nullrequired

    HTTP <status>, timeout, network_error or target_unavailable.

  • createdAtstring (date-time)required

    Example: 2026-11-05T10:05:00.000Z

  • updatedAtstring (date-time)required

    Example: 2026-11-05T10:05:00.000Z

Example

{
  "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[]required

  • nextCursorstring | nullrequired

    Pass as cursor for 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"required

  • event_idstringrequired

    Stable across retries; deduplicate on it. Example: evt_01jc5e5f6g7h8j9k0m1n2p3q4r

  • occurred_atstring (date-time)required

    Example: 2026-11-05T10:05:00.000Z

  • inbox_idstringrequired

    An inbox identifier. Example: inb_01jc4q7w9k2m5n8p3r6t1v4x7z

  • thread_idstringrequired

    A thread identifier. Example: thr_01jc5a1b2c3d4e5f6g7h8j9k0m

  • messageobjectrequired

  • idstringrequired

    A message identifier. Example: msg_01jc5a6g7h8j9k0m1n2p3q4r5s

  • rfc_message_idstring | nullrequired

  • fromstringrequired

    The sender's address. Example: sam@example.com

  • tostringrequired

    The inbox's address. Example: concierge@doorman.example

  • header_tostring | nullrequired

    The first To header address, which may differ from the inbox when it was copied.

  • delivery_role"to" | "cc" | "bcc" | nullrequired

  • ccstring[]required

  • address_namesobject of string | nullrequired

    Display names by address, for the addresses that carried one.

  • subjectstringrequired

  • body_textstringrequired

    The plain-text body; empty when there was none.

  • attachmentsAttachment[]required

  • raw_urlstring | nullrequired

  • received_atstring (date-time)required

    Example: 2026-11-05T10:05:00.000Z

  • category"personal" | "automated" | "marketing" | "bounce" | "spam" | "malicious"required

  • auto_replyablebooleanrequired

  • verdict"clean" | "unverified" | "suspicious" | nullrequired

  • spam_scorenumber | nullrequired

  • serviceobject | nulloptional

    The 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 | nullrequired

  • domainstringrequired

  • signal"verification" | "welcome" | "receipt" | "password_reset" | "security" | "trial" | "cancellation" | "other"required

  • verificationobject | nulloptional

    The verification code or sign-in link the inbox read from the message, the same text body_text carries; null when it carries none. Events stored before the passport existed omit it.

  • codestring | nullrequired

    A one-time code read from the message, or null. Example: 849204

  • linkobject | nullrequired

  • urlstringrequired

  • hoststringrequired

  • matches_senderbooleanrequired

    True when the link's registrable domain is the authenticated sender's.

  • verifiedbooleanrequired

    Whether the sender was authenticated (DMARC passed). Treat an unverified code or link with suspicion.

  • invitationbooleanoptional

    True when the link accepts an invitation to join the service. Events stored before invitations were read omit it.

  • expires_atstring (date-time)required

    When the verifications read stops serving it; the service's own expiry may be sooner. Example: 2026-11-05T10:05:00.000Z

  • riskRiskAssessmentoptional

    Doorman'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.

  • redactionRedactionoptional

    What the account's healthcare guardrails found (ADR-027). When present with findings, subject, body_text, the attachments' parsedText and the verification code and link carry placeholders in place of them. Absent where no guardrail applies.

  • testtrueoptional

    Present on the sample a test delivery sends; nothing was received or stored.

Example

{
  "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
  • idstringrequired

    An inbox identifier. Example: inb_01jc4q7w9k2m5n8p3r6t1v4x7z

  • addressstringrequired

    The full address: the mailbox name at the inbox domain. Example: concierge@doorman.example

  • mailboxNamestringrequired

    The part before the @. Example: concierge

  • domainstringrequired

    The inbox domain of this deployment. Example: doorman.example

  • domainIdstring | nulloptional

    The custom domain identifier; null on the shared domain. Older deployments omit it.

  • displayNamestring | nullrequired

    The sender name on outbound mail; null when none is set.

  • signaturestring | nulloptional

    Plain text appended to every message the inbox sends, under a -- line; null when none is set. Older deployments omit it. Example: Acme concierge acme.example

  • signatureHtmlstring | nulloptional

    The 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 | nullrequired

    Your own identifier for the inbox; null when none was given. Example: customer-8841

  • metadataMetadataoptional

  • webhookUrlstring | nullrequired

    The inbox webhook's URL, or null when the inbox has none.

  • status"active" | "suspended" | "deleted"required

    Only active inboxes receive and send; a deleted inbox is never returned.

  • createdAtstring (date-time)required

    Example: 2026-11-05T10:05:00.000Z

  • updatedAtstring (date-time)required

    Example: 2026-11-05T10:05:00.000Z

  • webhookInboxWebhookSecret | nullrequired

    The inbox webhook with its one-time secret, when webhookUrl was given.

  • keyCreatedApiKey | nullrequired

    The inbox-scoped key with its one-time token, when key was given.

Example

{
  "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"required

  • event_idstringrequired

    An event identifier. Example: evt_01jc5e5f6g7h8j9k0m1n2p3q4r

  • occurred_atstring (date-time)required

    Example: 2026-11-05T10:05:00.000Z

  • inbox_idstringrequired

    An inbox identifier. Example: inb_01jc4q7w9k2m5n8p3r6t1v4x7z

  • thread_idstringrequired

    A thread identifier. Example: thr_01jc5a1b2c3d4e5f6g7h8j9k0m

  • messageobjectrequired

  • idstringrequired

    A message identifier. Example: msg_01jc5a6g7h8j9k0m1n2p3q4r5s

  • provider_message_idstring | nullrequired

  • fromstringrequired

  • tostring[]required

  • ccstring[]required

  • bccstring[]required

  • subjectstringrequired

  • body_textstringrequired

  • attachmentsAttachment[]required

  • sent_atstring (date-time)required

    Example: 2026-11-05T10:05:00.000Z

  • redactionRedactionoptional

    What the account's healthcare guardrails found in what was sent (ADR-027). When present with findings, subject, body_text and the attachments' parsedText carry placeholders in place of them. Absent where no guardrail applies.

Example

{
  "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"required

  • event_idstringrequired

    An event identifier. Example: evt_01jc5e5f6g7h8j9k0m1n2p3q4r

  • occurred_atstring (date-time)required

    Example: 2026-11-05T10:05:00.000Z

  • inbox_idstringrequired

    An inbox identifier. Example: inb_01jc4q7w9k2m5n8p3r6t1v4x7z

  • thread_idstringrequired

    A thread identifier. Example: thr_01jc5a1b2c3d4e5f6g7h8j9k0m

  • threadobjectrequired

  • idstringrequired

    A thread identifier. Example: thr_01jc5a1b2c3d4e5f6g7h8j9k0m

  • is_readbooleanrequired

  • trashed_atstring (date-time) | nullrequired

  • metadataMetadatarequired

  • labelsThreadLabelsrequired

  • updated_atstring (date-time)required

    Example: 2026-11-05T10:05:00.000Z

Example

{
  "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"required

  • event_idstringrequired

    An event identifier. Example: evt_01jc5e5f6g7h8j9k0m1n2p3q4r

  • occurred_atstring (date-time)required

    Example: 2026-11-05T10:05:00.000Z

  • inbox_idstringrequired

    An inbox identifier. Example: inb_01jc4q7w9k2m5n8p3r6t1v4x7z

  • inboxobjectrequired

  • idstringrequired

    An inbox identifier. Example: inb_01jc4q7w9k2m5n8p3r6t1v4x7z

  • addressstringrequired

  • display_namestring | nullrequired

  • external_idstring | nullrequired

  • metadataMetadatarequired

Example

{
  "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"required

  • event_idstringrequired

    An event identifier. Example: evt_01jc5e5f6g7h8j9k0m1n2p3q4r

  • occurred_atstring (date-time)required

    Example: 2026-11-05T10:05:00.000Z

  • inbox_idstringrequired

    An inbox identifier. Example: inb_01jc4q7w9k2m5n8p3r6t1v4x7z

  • inboxobjectrequired

  • idstringrequired

    An inbox identifier. Example: inb_01jc4q7w9k2m5n8p3r6t1v4x7z

  • addressstringrequired

  • deleted_atstring (date-time)required

    Example: 2026-11-05T10:05:00.000Z

Example

{
  "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"required

  • event_idstringrequired

    An event identifier. Example: evt_01jc5e5f6g7h8j9k0m1n2p3q4r

  • occurred_atstring (date-time)required

    Example: 2026-11-05T10:05:00.000Z

  • inbox_idstring | nullrequired

  • deliveryobjectrequired

  • idstringrequired

    A webhook delivery identifier. Example: whd_01jc5f1a2b3c4d5e6f7g8h9j0k

  • event_idstringrequired

    An event identifier. Example: evt_01jc5e5f6g7h8j9k0m1n2p3q4r

  • targetobjectrequired

  • kind"inbox" | "endpoint"required

  • idstringrequired

  • attemptsintegerrequired

  • last_status_codeinteger | nullrequired

  • last_errorstringrequired

Example

{
  "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"required

  • event_idstringrequired

    An event identifier. Example: evt_01jc5e5f6g7h8j9k0m1n2p3q4r

  • occurred_atstring (date-time)required

    Example: 2026-11-05T10:05:00.000Z

  • inbox_idstringrequired

    An inbox identifier. Example: inb_01jc4q7w9k2m5n8p3r6t1v4x7z

  • messageobjectrequired

  • idstringrequired

    A message identifier. Example: msg_01jc5a6g7h8j9k0m1n2p3q4r5s

  • fromstringrequired

    The sender's address.

  • held_atstring (date-time)required

    Example: 2026-11-05T10:05:00.000Z

  • riskRiskAssessmentrequired

Example

{
  "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"required

  • event_idstringrequired

    An event identifier. Example: evt_01jc5e5f6g7h8j9k0m1n2p3q4r

  • occurred_atstring (date-time)required

    Example: 2026-11-05T10:05:00.000Z

  • inbox_idstringrequired

    An inbox identifier. Example: inb_01jc4q7w9k2m5n8p3r6t1v4x7z

  • sendobjectrequired

  • idstringrequired

    A held send's identifier. Example: hsd_01jc5f1a2b3c4d5e6f7g8h9j0k

  • thread_idstring | nullrequired

    The thread a reply was written into; null for a new message.

  • tostring[]required

  • ccstring[]required

  • bccstring[]required

  • requested_by"app" | "key"required

  • kind"held" | "draft"required

    Why it waits: held when the security policy kept a send, draft when it was written as a draft for the owner to send.

  • held_atstring (date-time)required

    Example: 2026-11-05T10:05:00.000Z

  • expires_atstring (date-time)required

    Example: 2026-11-05T10:05:00.000Z

Example

{
  "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"required

  • event_idstringrequired

    An event identifier. Example: evt_01jc5e5f6g7h8j9k0m1n2p3q4r

  • occurred_atstring (date-time)required

    Example: 2026-11-05T10:05:00.000Z

  • inbox_idstringrequired

    An inbox identifier. Example: inb_01jc4q7w9k2m5n8p3r6t1v4x7z

  • sendobjectrequired

  • idstringrequired

    A held send's identifier. Example: hsd_01jc5f1a2b3c4d5e6f7g8h9j0k

  • thread_idstring | nullrequired

    The thread a reply was written into; null for a new message.

  • tostring[]required

  • ccstring[]required

  • bccstring[]required

  • requested_by"app" | "key"required

  • kind"held" | "draft"required

    Why it waits: held when the security policy kept a send, draft when it was written as a draft for the owner to send.

  • reason"discarded" | "expired"required

    discarded by the owner, or expired because nobody decided in time.

  • discarded_atstring (date-time)required

    Example: 2026-11-05T10:05:00.000Z

Example

{
  "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"required

  • event_idstringrequired

    An event identifier. Example: evt_01jc5e5f6g7h8j9k0m1n2p3q4r

  • occurred_atstring (date-time)required

    Example: 2026-11-05T10:05:00.000Z

  • inbox_idstringrequired

    An inbox identifier. Example: inb_01jc4q7w9k2m5n8p3r6t1v4x7z

  • sign_inobjectrequired

  • idstringrequired

    The identifier of one address's connection to one relying party. Example: sig_01jc5f1a2b3c4d5e6f7g8h9j0k

  • service_idstringrequired

    The service in the address's passport that the sign-in belongs to. Example: svc_01jc5g2b3c4d5e6f7g8h9j0k1m

  • clientobjectrequired

  • idstringrequired

    The relying party's client id: one this API issued, or the URL of the identity it published.

  • namestringrequired

    What the relying party calls itself. A label, never proof of who it is.

  • hoststringrequired

    The host that identifies the relying party.

  • requested_by"app" | "key" | "owner"required

    Who asked: a connected app, an API key, or the owner in the console.

  • requested_atstring (date-time)required

    Example: 2026-11-05T10:05:00.000Z

Example

{
  "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"required

  • event_idstringrequired

    An event identifier. Example: evt_01jc5e5f6g7h8j9k0m1n2p3q4r

  • occurred_atstring (date-time)required

    Example: 2026-11-05T10:05:00.000Z

  • inbox_idstringrequired

    An inbox identifier. Example: inb_01jc4q7w9k2m5n8p3r6t1v4x7z

  • sign_inobjectrequired

  • idstringrequired

    The identifier of one address's connection to one relying party. Example: sig_01jc5f1a2b3c4d5e6f7g8h9j0k

  • service_idstringrequired

    The service in the address's passport that the sign-in belongs to. Example: svc_01jc5g2b3c4d5e6f7g8h9j0k1m

  • clientobjectrequired

  • idstringrequired

    The relying party's client id: one this API issued, or the URL of the identity it published.

  • namestringrequired

    What the relying party calls itself. A label, never proof of who it is.

  • hoststringrequired

    The host that identifies the relying party.

  • completed_atstring (date-time)required

    Example: 2026-11-05T10:05:00.000Z

Example

{
  "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"required

  • event_idstringrequired

    Stable across retries; deduplicate on it. Example: evt_01jc5e5f6g7h8j9k0m1n2p3q4r

  • occurred_atstring (date-time)required

    Example: 2026-11-05T10:05:00.000Z

  • inbox_idstringrequired

    An inbox identifier. Example: inb_01jc4q7w9k2m5n8p3r6t1v4x7z

  • thread_idstringrequired

    A thread identifier. Example: thr_01jc5a1b2c3d4e5f6g7h8j9k0m

  • messageobjectrequired

  • idstringrequired

    A message identifier. Example: msg_01jc5a6g7h8j9k0m1n2p3q4r5s

  • rfc_message_idstring | nullrequired

  • fromstringrequired

    The sender's address. Example: sam@example.com

  • tostringrequired

    The inbox's address. Example: concierge@doorman.example

  • header_tostring | nullrequired

    The first To header address, which may differ from the inbox when it was copied.

  • delivery_role"to" | "cc" | "bcc" | nullrequired

  • ccstring[]required

  • address_namesobject of string | nullrequired

    Display names by address, for the addresses that carried one.

  • subjectstringrequired

  • body_textstringrequired

    The plain-text body; empty when there was none.

  • attachmentsAttachment[]required

  • raw_urlstring | nullrequired

  • received_atstring (date-time)required

    Example: 2026-11-05T10:05:00.000Z

  • category"personal" | "automated" | "marketing" | "bounce" | "spam" | "malicious"required

  • auto_replyablebooleanrequired

  • verdict"clean" | "unverified" | "suspicious" | nullrequired

  • spam_scorenumber | nullrequired

  • serviceobject | nulloptional

    The 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 | nullrequired

  • domainstringrequired

  • signal"verification" | "welcome" | "receipt" | "password_reset" | "security" | "trial" | "cancellation" | "other"required

  • verificationobject | nulloptional

    The verification code or sign-in link the inbox read from the message, the same text body_text carries; null when it carries none. Events stored before the passport existed omit it.

  • codestring | nullrequired

    A one-time code read from the message, or null. Example: 849204

  • linkobject | nullrequired

  • urlstringrequired

  • hoststringrequired

  • matches_senderbooleanrequired

    True when the link's registrable domain is the authenticated sender's.

  • verifiedbooleanrequired

    Whether the sender was authenticated (DMARC passed). Treat an unverified code or link with suspicion.

  • invitationbooleanoptional

    True when the link accepts an invitation to join the service. Events stored before invitations were read omit it.

  • expires_atstring (date-time)required

    When the verifications read stops serving it; the service's own expiry may be sooner. Example: 2026-11-05T10:05:00.000Z

  • riskRiskAssessmentoptional

    Doorman'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.

  • redactionRedactionoptional

    What the account's healthcare guardrails found (ADR-027). When present with findings, subject, body_text, the attachments' parsedText and the verification code and link carry placeholders in place of them. Absent where no guardrail applies.

  • testtrueoptional

    Present 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"required

  • event_idstringrequired

    An event identifier. Example: evt_01jc5e5f6g7h8j9k0m1n2p3q4r

  • occurred_atstring (date-time)required

    Example: 2026-11-05T10:05:00.000Z

  • inbox_idstringrequired

    An inbox identifier. Example: inb_01jc4q7w9k2m5n8p3r6t1v4x7z

  • thread_idstringrequired

    A thread identifier. Example: thr_01jc5a1b2c3d4e5f6g7h8j9k0m

  • messageobjectrequired

  • idstringrequired

    A message identifier. Example: msg_01jc5a6g7h8j9k0m1n2p3q4r5s

  • provider_message_idstring | nullrequired

  • fromstringrequired

  • tostring[]required

  • ccstring[]required

  • bccstring[]required

  • subjectstringrequired

  • body_textstringrequired

  • attachmentsAttachment[]required

  • sent_atstring (date-time)required

    Example: 2026-11-05T10:05:00.000Z

  • redactionRedactionoptional

    What the account's healthcare guardrails found in what was sent (ADR-027). When present with findings, subject, body_text and the attachments' parsedText carry 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"required

  • event_idstringrequired

    An event identifier. Example: evt_01jc5e5f6g7h8j9k0m1n2p3q4r

  • occurred_atstring (date-time)required

    Example: 2026-11-05T10:05:00.000Z

  • inbox_idstringrequired

    An inbox identifier. Example: inb_01jc4q7w9k2m5n8p3r6t1v4x7z

  • thread_idstringrequired

    A thread identifier. Example: thr_01jc5a1b2c3d4e5f6g7h8j9k0m

  • threadobjectrequired

  • idstringrequired

    A thread identifier. Example: thr_01jc5a1b2c3d4e5f6g7h8j9k0m

  • is_readbooleanrequired

  • trashed_atstring (date-time) | nullrequired

  • metadataMetadatarequired

  • labelsThreadLabelsrequired

  • updated_atstring (date-time)required

    Example: 2026-11-05T10:05:00.000Z

InboxCreatedEvent

An inbox was created. No API key or webhook signing secret is included.

  • event"inbox.created"required

  • event_idstringrequired

    An event identifier. Example: evt_01jc5e5f6g7h8j9k0m1n2p3q4r

  • occurred_atstring (date-time)required

    Example: 2026-11-05T10:05:00.000Z

  • inbox_idstringrequired

    An inbox identifier. Example: inb_01jc4q7w9k2m5n8p3r6t1v4x7z

  • inboxobjectrequired

  • idstringrequired

    An inbox identifier. Example: inb_01jc4q7w9k2m5n8p3r6t1v4x7z

  • addressstringrequired

  • display_namestring | nullrequired

  • external_idstring | nullrequired

  • metadataMetadatarequired

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

  • event_idstringrequired

    An event identifier. Example: evt_01jc5e5f6g7h8j9k0m1n2p3q4r

  • occurred_atstring (date-time)required

    Example: 2026-11-05T10:05:00.000Z

  • inbox_idstringrequired

    An inbox identifier. Example: inb_01jc4q7w9k2m5n8p3r6t1v4x7z

  • inboxobjectrequired

  • idstringrequired

    An inbox identifier. Example: inb_01jc4q7w9k2m5n8p3r6t1v4x7z

  • addressstringrequired

  • deleted_atstring (date-time)required

    Example: 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"required

  • event_idstringrequired

    An event identifier. Example: evt_01jc5e5f6g7h8j9k0m1n2p3q4r

  • occurred_atstring (date-time)required

    Example: 2026-11-05T10:05:00.000Z

  • inbox_idstring | nullrequired

  • deliveryobjectrequired

  • idstringrequired

    A webhook delivery identifier. Example: whd_01jc5f1a2b3c4d5e6f7g8h9j0k

  • event_idstringrequired

    An event identifier. Example: evt_01jc5e5f6g7h8j9k0m1n2p3q4r

  • targetobjectrequired

  • kind"inbox" | "endpoint"required

  • idstringrequired

  • attemptsintegerrequired

  • last_status_codeinteger | nullrequired

  • last_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"required

  • event_idstringrequired

    An event identifier. Example: evt_01jc5e5f6g7h8j9k0m1n2p3q4r

  • occurred_atstring (date-time)required

    Example: 2026-11-05T10:05:00.000Z

  • inbox_idstringrequired

    An inbox identifier. Example: inb_01jc4q7w9k2m5n8p3r6t1v4x7z

  • messageobjectrequired

  • idstringrequired

    A message identifier. Example: msg_01jc5a6g7h8j9k0m1n2p3q4r5s

  • fromstringrequired

    The sender's address.

  • held_atstring (date-time)required

    Example: 2026-11-05T10:05:00.000Z

  • riskRiskAssessmentrequired

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

  • event_idstringrequired

    An event identifier. Example: evt_01jc5e5f6g7h8j9k0m1n2p3q4r

  • occurred_atstring (date-time)required

    Example: 2026-11-05T10:05:00.000Z

  • inbox_idstringrequired

    An inbox identifier. Example: inb_01jc4q7w9k2m5n8p3r6t1v4x7z

  • sendobjectrequired

  • idstringrequired

    A held send's identifier. Example: hsd_01jc5f1a2b3c4d5e6f7g8h9j0k

  • thread_idstring | nullrequired

    The thread a reply was written into; null for a new message.

  • tostring[]required

  • ccstring[]required

  • bccstring[]required

  • requested_by"app" | "key"required

  • kind"held" | "draft"required

    Why it waits: held when the security policy kept a send, draft when it was written as a draft for the owner to send.

  • held_atstring (date-time)required

    Example: 2026-11-05T10:05:00.000Z

  • expires_atstring (date-time)required

    Example: 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"required

  • event_idstringrequired

    An event identifier. Example: evt_01jc5e5f6g7h8j9k0m1n2p3q4r

  • occurred_atstring (date-time)required

    Example: 2026-11-05T10:05:00.000Z

  • inbox_idstringrequired

    An inbox identifier. Example: inb_01jc4q7w9k2m5n8p3r6t1v4x7z

  • sendobjectrequired

  • idstringrequired

    A held send's identifier. Example: hsd_01jc5f1a2b3c4d5e6f7g8h9j0k

  • thread_idstring | nullrequired

    The thread a reply was written into; null for a new message.

  • tostring[]required

  • ccstring[]required

  • bccstring[]required

  • requested_by"app" | "key"required

  • kind"held" | "draft"required

    Why it waits: held when the security policy kept a send, draft when it was written as a draft for the owner to send.

  • reason"discarded" | "expired"required

    discarded by the owner, or expired because nobody decided in time.

  • discarded_atstring (date-time)required

    Example: 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"required

  • event_idstringrequired

    An event identifier. Example: evt_01jc5e5f6g7h8j9k0m1n2p3q4r

  • occurred_atstring (date-time)required

    Example: 2026-11-05T10:05:00.000Z

  • inbox_idstringrequired

    An inbox identifier. Example: inb_01jc4q7w9k2m5n8p3r6t1v4x7z

  • sign_inobjectrequired

  • idstringrequired

    The identifier of one address's connection to one relying party. Example: sig_01jc5f1a2b3c4d5e6f7g8h9j0k

  • service_idstringrequired

    The service in the address's passport that the sign-in belongs to. Example: svc_01jc5g2b3c4d5e6f7g8h9j0k1m

  • clientobjectrequired

  • idstringrequired

    The relying party's client id: one this API issued, or the URL of the identity it published.

  • namestringrequired

    What the relying party calls itself. A label, never proof of who it is.

  • hoststringrequired

    The host that identifies the relying party.

  • requested_by"app" | "key" | "owner"required

    Who asked: a connected app, an API key, or the owner in the console.

  • requested_atstring (date-time)required

    Example: 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"required

  • event_idstringrequired

    An event identifier. Example: evt_01jc5e5f6g7h8j9k0m1n2p3q4r

  • occurred_atstring (date-time)required

    Example: 2026-11-05T10:05:00.000Z

  • inbox_idstringrequired

    An inbox identifier. Example: inb_01jc4q7w9k2m5n8p3r6t1v4x7z

  • sign_inobjectrequired

  • idstringrequired

    The identifier of one address's connection to one relying party. Example: sig_01jc5f1a2b3c4d5e6f7g8h9j0k

  • service_idstringrequired

    The service in the address's passport that the sign-in belongs to. Example: svc_01jc5g2b3c4d5e6f7g8h9j0k1m

  • clientobjectrequired

  • idstringrequired

    The relying party's client id: one this API issued, or the URL of the identity it published.

  • namestringrequired

    What the relying party calls itself. A label, never proof of who it is.

  • hoststringrequired

    The host that identifies the relying party.

  • completed_atstring (date-time)required

    Example: 2026-11-05T10:05:00.000Z

EventSummary

What a list shows without the payload; none of it is body text.

Fields: EventSummary
  • fromstring | nullrequired

  • subjectstring | nullrequired

  • messageIdstring | nullrequired

  • threadIdstring | nullrequired

Example

{
  "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
  • idstringrequired

    An event identifier. Example: evt_01jc5e5f6g7h8j9k0m1n2p3q4r

  • seqintegerrequired

    The position in the account's log: the cursor for paging and polling. Example: 1042

  • type"message.received" | "message.sent" | "thread.updated" | "inbox.created" | "inbox.deleted" | "delivery.failed" | "message.held" | "send.held" | "send.discarded" | "sign_in.requested" | "sign_in.completed"required

  • inboxIdstring | nullrequired

  • occurredAtstring (date-time)required

    Example: 2026-11-05T10:05:00.000Z

  • summaryEventSummaryrequired

Example

{
  "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[]required

  • nextCursorstring | nullrequired

    The seq to pass as cursor for 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[]required

  • latestSeqintegerrequired

    The seq to 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[]required

  • nextCursorstring | nullrequired

    The seq to pass as cursor for the next page, as a string; null on the last page. Example: 1041

EventPoll

Events oldest first, the answer to an after request.

  • dataEvent[]required

  • latestSeqintegerrequired

    The seq to 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
  • eventEventrequired

  • payloadWebhookEvent | objectrequired

    The typed event payload, or an unknown future event object.

  • deliveriesDelivery[]required

    Inbox-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"required

  • inbox_idsstring[]optional

    Up 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")[]optional

    Only these event types; absent or empty means all.

  • last_event_idstringoptional

    Replay every event after this one (up to 100, filtered by the subscription) before live events. Example: evt_01jc5e5f6g7h8j9k0m1n2p3q4r

Example

{
  "type": "subscribe",
  "inbox_ids": [
    "inb_01jc4q7w9k2m5n8p3r6t1v4x7z"
  ]
}

StreamUnsubscribe

Stop receiving events: everything, or specific inboxes.

Fields: StreamUnsubscribe
  • type"unsubscribe"required

  • inbox_idsstring[]optional

    The inboxes to stop receiving for; absent or empty stops everything.

Example

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

Example

{
  "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"required

  • inbox_idsstring[]optional

    Up 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")[]optional

    Only these event types; absent or empty means all.

  • last_event_idstringoptional

    Replay 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"required

  • inbox_idsstring[]optional

    The 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"required

  • inbox_idsstring[]required

  • event_typesstring[]required

Example

{
  "type": "subscribed",
  "inbox_ids": [
    "inb_01jc4q7w9k2m5n8p3r6t1v4x7z"
  ],
  "event_types": []
}

StreamUnsubscribed

The answer to an unsubscribe frame, echoing the inboxes it named.

Fields: StreamUnsubscribed
  • type"unsubscribed"required

  • inbox_idsstring[]required

Example

{
  "type": "unsubscribed",
  "inbox_ids": []
}

StreamPong

The answer to a ping.

Fields: StreamPong
  • type"pong"required

Example

{
  "type": "pong"
}

StreamError

A frame that could not be honoured; the connection stays open.

Fields: StreamError
  • type"error"required

  • messagestringrequired

Example

{
  "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"required

  • event_idstringrequired

    Stable across retries; deduplicate on it. Example: evt_01jc5e5f6g7h8j9k0m1n2p3q4r

  • occurred_atstring (date-time)required

    Example: 2026-11-05T10:05:00.000Z

  • inbox_idstringrequired

    An inbox identifier. Example: inb_01jc4q7w9k2m5n8p3r6t1v4x7z

  • thread_idstringrequired

    A thread identifier. Example: thr_01jc5a1b2c3d4e5f6g7h8j9k0m

  • messageobjectrequired

  • idstringrequired

    A message identifier. Example: msg_01jc5a6g7h8j9k0m1n2p3q4r5s

  • rfc_message_idstring | nullrequired

  • fromstringrequired

    The sender's address. Example: sam@example.com

  • tostringrequired

    The inbox's address. Example: concierge@doorman.example

  • header_tostring | nullrequired

    The first To header address, which may differ from the inbox when it was copied.

  • delivery_role"to" | "cc" | "bcc" | nullrequired

  • ccstring[]required

  • address_namesobject of string | nullrequired

    Display names by address, for the addresses that carried one.

  • subjectstringrequired

  • body_textstringrequired

    The plain-text body; empty when there was none.

  • attachmentsAttachment[]required

  • raw_urlstring | nullrequired

  • received_atstring (date-time)required

    Example: 2026-11-05T10:05:00.000Z

  • category"personal" | "automated" | "marketing" | "bounce" | "spam" | "malicious"required

  • auto_replyablebooleanrequired

  • verdict"clean" | "unverified" | "suspicious" | nullrequired

  • spam_scorenumber | nullrequired

  • serviceobject | nulloptional

    The 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 | nullrequired

  • domainstringrequired

  • signal"verification" | "welcome" | "receipt" | "password_reset" | "security" | "trial" | "cancellation" | "other"required

  • verificationobject | nulloptional

    The verification code or sign-in link the inbox read from the message, the same text body_text carries; null when it carries none. Events stored before the passport existed omit it.

  • codestring | nullrequired

    A one-time code read from the message, or null. Example: 849204

  • linkobject | nullrequired

  • urlstringrequired

  • hoststringrequired

  • matches_senderbooleanrequired

    True when the link's registrable domain is the authenticated sender's.

  • verifiedbooleanrequired

    Whether the sender was authenticated (DMARC passed). Treat an unverified code or link with suspicion.

  • invitationbooleanoptional

    True when the link accepts an invitation to join the service. Events stored before invitations were read omit it.

  • expires_atstring (date-time)required

    When the verifications read stops serving it; the service's own expiry may be sooner. Example: 2026-11-05T10:05:00.000Z

  • riskRiskAssessmentoptional

    Doorman'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.

  • redactionRedactionoptional

    What the account's healthcare guardrails found (ADR-027). When present with findings, subject, body_text, the attachments' parsedText and the verification code and link carry placeholders in place of them. Absent where no guardrail applies.

  • testtrueoptional

    Present on the sample a test delivery sends; nothing was received or stored.

  • delivered_atstring (date-time)required

    Example: 2026-11-05T10:05:00.000Z

  • attempt1required

Alternative 2

  • event"message.sent"required

  • event_idstringrequired

    An event identifier. Example: evt_01jc5e5f6g7h8j9k0m1n2p3q4r

  • occurred_atstring (date-time)required

    Example: 2026-11-05T10:05:00.000Z

  • inbox_idstringrequired

    An inbox identifier. Example: inb_01jc4q7w9k2m5n8p3r6t1v4x7z

  • thread_idstringrequired

    A thread identifier. Example: thr_01jc5a1b2c3d4e5f6g7h8j9k0m

  • messageobjectrequired

  • idstringrequired

    A message identifier. Example: msg_01jc5a6g7h8j9k0m1n2p3q4r5s

  • provider_message_idstring | nullrequired

  • fromstringrequired

  • tostring[]required

  • ccstring[]required

  • bccstring[]required

  • subjectstringrequired

  • body_textstringrequired

  • attachmentsAttachment[]required

  • sent_atstring (date-time)required

    Example: 2026-11-05T10:05:00.000Z

  • redactionRedactionoptional

    What the account's healthcare guardrails found in what was sent (ADR-027). When present with findings, subject, body_text and the attachments' parsedText carry placeholders in place of them. Absent where no guardrail applies.

  • delivered_atstring (date-time)required

    Example: 2026-11-05T10:05:00.000Z

  • attempt1required

Alternative 3

  • event"thread.updated"required

  • event_idstringrequired

    An event identifier. Example: evt_01jc5e5f6g7h8j9k0m1n2p3q4r

  • occurred_atstring (date-time)required

    Example: 2026-11-05T10:05:00.000Z

  • inbox_idstringrequired

    An inbox identifier. Example: inb_01jc4q7w9k2m5n8p3r6t1v4x7z

  • thread_idstringrequired

    A thread identifier. Example: thr_01jc5a1b2c3d4e5f6g7h8j9k0m

  • threadobjectrequired

  • idstringrequired

    A thread identifier. Example: thr_01jc5a1b2c3d4e5f6g7h8j9k0m

  • is_readbooleanrequired

  • trashed_atstring (date-time) | nullrequired

  • metadataMetadatarequired

  • labelsThreadLabelsrequired

  • updated_atstring (date-time)required

    Example: 2026-11-05T10:05:00.000Z

  • delivered_atstring (date-time)required

    Example: 2026-11-05T10:05:00.000Z

  • attempt1required

Alternative 4

  • event"inbox.created"required

  • event_idstringrequired

    An event identifier. Example: evt_01jc5e5f6g7h8j9k0m1n2p3q4r

  • occurred_atstring (date-time)required

    Example: 2026-11-05T10:05:00.000Z

  • inbox_idstringrequired

    An inbox identifier. Example: inb_01jc4q7w9k2m5n8p3r6t1v4x7z

  • inboxobjectrequired

  • idstringrequired

    An inbox identifier. Example: inb_01jc4q7w9k2m5n8p3r6t1v4x7z

  • addressstringrequired

  • display_namestring | nullrequired

  • external_idstring | nullrequired

  • metadataMetadatarequired

  • delivered_atstring (date-time)required

    Example: 2026-11-05T10:05:00.000Z

  • attempt1required

Alternative 5

  • event"inbox.deleted"required

  • event_idstringrequired

    An event identifier. Example: evt_01jc5e5f6g7h8j9k0m1n2p3q4r

  • occurred_atstring (date-time)required

    Example: 2026-11-05T10:05:00.000Z

  • inbox_idstringrequired

    An inbox identifier. Example: inb_01jc4q7w9k2m5n8p3r6t1v4x7z

  • inboxobjectrequired

  • idstringrequired

    An inbox identifier. Example: inb_01jc4q7w9k2m5n8p3r6t1v4x7z

  • addressstringrequired

  • deleted_atstring (date-time)required

    Example: 2026-11-05T10:05:00.000Z

  • delivered_atstring (date-time)required

    Example: 2026-11-05T10:05:00.000Z

  • attempt1required

Alternative 6

  • event"delivery.failed"required

  • event_idstringrequired

    An event identifier. Example: evt_01jc5e5f6g7h8j9k0m1n2p3q4r

  • occurred_atstring (date-time)required

    Example: 2026-11-05T10:05:00.000Z

  • inbox_idstring | nullrequired

  • deliveryobjectrequired

  • idstringrequired

    A webhook delivery identifier. Example: whd_01jc5f1a2b3c4d5e6f7g8h9j0k

  • event_idstringrequired

    An event identifier. Example: evt_01jc5e5f6g7h8j9k0m1n2p3q4r

  • targetobjectrequired

  • kind"inbox" | "endpoint"required

  • idstringrequired

  • attemptsintegerrequired

  • last_status_codeinteger | nullrequired

  • last_errorstringrequired

  • delivered_atstring (date-time)required

    Example: 2026-11-05T10:05:00.000Z

  • attempt1required

Alternative 7

  • event"message.held"required

  • event_idstringrequired

    An event identifier. Example: evt_01jc5e5f6g7h8j9k0m1n2p3q4r

  • occurred_atstring (date-time)required

    Example: 2026-11-05T10:05:00.000Z

  • inbox_idstringrequired

    An inbox identifier. Example: inb_01jc4q7w9k2m5n8p3r6t1v4x7z

  • messageobjectrequired

  • idstringrequired

    A message identifier. Example: msg_01jc5a6g7h8j9k0m1n2p3q4r5s

  • fromstringrequired

    The sender's address.

  • held_atstring (date-time)required

    Example: 2026-11-05T10:05:00.000Z

  • riskRiskAssessmentrequired

  • delivered_atstring (date-time)required

    Example: 2026-11-05T10:05:00.000Z

  • attempt1required

Alternative 8

  • event"send.held"required

  • event_idstringrequired

    An event identifier. Example: evt_01jc5e5f6g7h8j9k0m1n2p3q4r

  • occurred_atstring (date-time)required

    Example: 2026-11-05T10:05:00.000Z

  • inbox_idstringrequired

    An inbox identifier. Example: inb_01jc4q7w9k2m5n8p3r6t1v4x7z

  • sendobjectrequired

  • idstringrequired

    A held send's identifier. Example: hsd_01jc5f1a2b3c4d5e6f7g8h9j0k

  • thread_idstring | nullrequired

    The thread a reply was written into; null for a new message.

  • tostring[]required

  • ccstring[]required

  • bccstring[]required

  • requested_by"app" | "key"required

  • kind"held" | "draft"required

    Why it waits: held when the security policy kept a send, draft when it was written as a draft for the owner to send.

  • held_atstring (date-time)required

    Example: 2026-11-05T10:05:00.000Z

  • expires_atstring (date-time)required

    Example: 2026-11-05T10:05:00.000Z

  • delivered_atstring (date-time)required

    Example: 2026-11-05T10:05:00.000Z

  • attempt1required

Alternative 9

  • event"send.discarded"required

  • event_idstringrequired

    An event identifier. Example: evt_01jc5e5f6g7h8j9k0m1n2p3q4r

  • occurred_atstring (date-time)required

    Example: 2026-11-05T10:05:00.000Z

  • inbox_idstringrequired

    An inbox identifier. Example: inb_01jc4q7w9k2m5n8p3r6t1v4x7z

  • sendobjectrequired

  • idstringrequired

    A held send's identifier. Example: hsd_01jc5f1a2b3c4d5e6f7g8h9j0k

  • thread_idstring | nullrequired

    The thread a reply was written into; null for a new message.

  • tostring[]required

  • ccstring[]required

  • bccstring[]required

  • requested_by"app" | "key"required

  • kind"held" | "draft"required

    Why it waits: held when the security policy kept a send, draft when it was written as a draft for the owner to send.

  • reason"discarded" | "expired"required

    discarded by the owner, or expired because nobody decided in time.

  • discarded_atstring (date-time)required

    Example: 2026-11-05T10:05:00.000Z

  • delivered_atstring (date-time)required

    Example: 2026-11-05T10:05:00.000Z

  • attempt1required

Alternative 10

  • event"sign_in.requested"required

  • event_idstringrequired

    An event identifier. Example: evt_01jc5e5f6g7h8j9k0m1n2p3q4r

  • occurred_atstring (date-time)required

    Example: 2026-11-05T10:05:00.000Z

  • inbox_idstringrequired

    An inbox identifier. Example: inb_01jc4q7w9k2m5n8p3r6t1v4x7z

  • sign_inobjectrequired

  • idstringrequired

    The identifier of one address's connection to one relying party. Example: sig_01jc5f1a2b3c4d5e6f7g8h9j0k

  • service_idstringrequired

    The service in the address's passport that the sign-in belongs to. Example: svc_01jc5g2b3c4d5e6f7g8h9j0k1m

  • clientobjectrequired

  • idstringrequired

    The relying party's client id: one this API issued, or the URL of the identity it published.

  • namestringrequired

    What the relying party calls itself. A label, never proof of who it is.

  • hoststringrequired

    The host that identifies the relying party.

  • requested_by"app" | "key" | "owner"required

    Who asked: a connected app, an API key, or the owner in the console.

  • requested_atstring (date-time)required

    Example: 2026-11-05T10:05:00.000Z

  • delivered_atstring (date-time)required

    Example: 2026-11-05T10:05:00.000Z

  • attempt1required

Alternative 11

  • event"sign_in.completed"required

  • event_idstringrequired

    An event identifier. Example: evt_01jc5e5f6g7h8j9k0m1n2p3q4r

  • occurred_atstring (date-time)required

    Example: 2026-11-05T10:05:00.000Z

  • inbox_idstringrequired

    An inbox identifier. Example: inb_01jc4q7w9k2m5n8p3r6t1v4x7z

  • sign_inobjectrequired

  • idstringrequired

    The identifier of one address's connection to one relying party. Example: sig_01jc5f1a2b3c4d5e6f7g8h9j0k

  • service_idstringrequired

    The service in the address's passport that the sign-in belongs to. Example: svc_01jc5g2b3c4d5e6f7g8h9j0k1m

  • clientobjectrequired

  • idstringrequired

    The relying party's client id: one this API issued, or the URL of the identity it published.

  • namestringrequired

    What the relying party calls itself. A label, never proof of who it is.

  • hoststringrequired

    The host that identifies the relying party.

  • completed_atstring (date-time)required

    Example: 2026-11-05T10:05:00.000Z

  • delivered_atstring (date-time)required

    Example: 2026-11-05T10:05:00.000Z

  • attempt1required

Example

{
  "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"required

  • inbox_idsstring[]required

  • event_typesstring[]required

StreamUnsubscribed

The answer to an unsubscribe frame, echoing the inboxes it named.

  • type"unsubscribed"required

  • inbox_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"required

  • messagestringrequired

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.

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