Passport

The outside services an inbox's address is signed up for, the verification codes and sign-in links they send, and how the address signs in to the ones that accept Sign in with Doorman.

Read passport settings

GET/v1/passport

Access account: an account-scoped key or a console session; an inbox-scoped key gets 403 forbidden.

Whether the account emails its owner 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, with the owner address and whether email sending is available. And what the account's agents may do alone when they sign in with Doorman: sign in to a service the owner has not allowed yet, and tell such a service who owns them.

OAuth: not available to delegated app tokens.

Also available as client.passport.get in TypeScript, client.passport.get in Python, the passport_get tool and doorman passport get on the command line.

Organizations: every member's console session may call it. See Roles and permissions.

Answers 200: The account's passport settings.

Response 200: PassportSettings

How the account's passport alerts and briefs its owner, and what its agents may do alone when they sign in with Doorman.

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

Errors
StatusErrorMeaning
401unauthorizedThe credential was missing, malformed, revoked or belongs to an inactive account.
401session_invalidThe console session token could not be verified.
401session_expiredThe console session token has expired.
401session_claims_missingThe session token does not carry a verified email address.
403forbiddenThe key is scoped to one inbox and cannot manage inboxes, keys or webhooks, or cannot read account-wide data.
403insufficient_scopeThe app's token lacks a required scope, or the operation cannot be delegated.
403account_suspendedThe account is suspended.
403account_deletedThe account was deleted.
403member_deactivatedThe signed-in person's access to the organization was deactivated, or they were removed from it. It holds from their next request, whatever their session token says. An admin of the organization can let a deactivated member in again.
409account_mismatchThe request named another account in x-doorman-account than the one its credential acts for, as happens when the console's organization was switched in another tab. Reload and try again.
500internal_errorSomething went wrong on the server.

Example 200 response

{
  "alertEmails": false,
  "alertEmail": "dana@example.com",
  "emailAvailable": true,
  "signInAvailable": true,
  "agentSignIn": false,
  "shareOwner": false,
  "briefingEmails": false,
  "briefingHour": 8,
  "timeZone": "UTC",
  "updatedAt": null
}
curl -s "https://api.doorman.fyi/v1/passport" \
  -H "authorization: Bearer $DOORMAN_API_KEY"

Update passport settings

PATCH/v1/passport

Access account: an account-scoped key or a console session; an inbox-scoped key gets 403 forbidden.

Changes the settings given; the ones left out stay as they are. Each change that loosens something needs a console session unless the account allows its account keys to (403 session_required): switching owner alert emails off, letting agents sign in to services the owner has not allowed yet, and telling those services who owns the agent.

OAuth: not available to delegated app tokens.

Also available as client.passport.update in TypeScript, client.passport.update in Python, the passport_update tool and doorman passport update on the command line.

Organizations: a member's console session needs security:manage. API keys and app tokens are not held to member permissions. See Roles and permissions.

Request body (application/json): 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.

  • 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

Answers 200: The settings as they are now.

Response 200: PassportSettings

How the account's passport alerts and briefs its owner, and what its agents may do alone when they sign in with Doorman.

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

Errors
StatusErrorMeaning
400validation_errorA field is missing or invalid; the message names it.
400invalid_jsonThe request body is not JSON.
401unauthorizedThe credential was missing, malformed, revoked or belongs to an inactive account.
401session_invalidThe console session token could not be verified.
401session_expiredThe console session token has expired.
401session_claims_missingThe session token does not carry a verified email address.
403forbiddenThe key is scoped to one inbox and cannot manage inboxes, keys or webhooks, or cannot read account-wide data.
403session_requiredAccount keys, developer apps, relying parties, installations, consent, approving a sign-in and the assistant require a console session. So does loosening the security policy, trusting a sender, releasing held mail, allowing a sign-in, letting agents sign in to new services alone or telling a service who owns an agent, unless the account allows its account keys to.
403insufficient_scopeThe app's token lacks a required scope, or the operation cannot be delegated.
403account_suspendedThe account is suspended.
403account_deletedThe account was deleted.
403permission_deniedThe signed-in member's role in the organization lacks a permission the operation needs; permission names it. An admin of the organization can do it, or change the member's role.
403member_deactivatedThe signed-in person's access to the organization was deactivated, or they were removed from it. It holds from their next request, whatever their session token says. An admin of the organization can let a deactivated member in again.
409account_mismatchThe request named another account in x-doorman-account than the one its credential acts for, as happens when the console's organization was switched in another tab. Reload and try again.
500internal_errorSomething went wrong on the server.

Example 200 response

{
  "alertEmails": false,
  "alertEmail": "dana@example.com",
  "emailAvailable": true,
  "signInAvailable": true,
  "agentSignIn": false,
  "shareOwner": false,
  "briefingEmails": false,
  "briefingHour": 8,
  "timeZone": "UTC",
  "updatedAt": null
}
curl -s -X PATCH "https://api.doorman.fyi/v1/passport" \
  -H "authorization: Bearer $DOORMAN_API_KEY" \
  -H "content-type: application/json" \
  -d '{
    "alertEmails": true
  }'

List services

GET/v1/services

Access any: any API key, or a console session.

The outside services the account's addresses are signed up for, newest activity first: found in authenticated mail, declared by an agent, or added by a person. Without status, archived ones are left out. Inbox-scoped keys see their own inbox's only.

OAuth: allowed with all of mail:read. App permissions apply in addition to account and resource checks.

Also available as client.services.list in TypeScript, client.services.list in Python, the services_list tool and doorman services list on the command line.

Organizations: a member's console session needs mail:read. API keys and app tokens are not held to member permissions. See Roles and permissions.

Parameters
  • inboxIdstring, in queryoptional

    Only this inbox's services. Example: inb_01jc4q7w9k2m5n8p3r6t1v4x7z.

  • status"pending" | "active" | "cancelled" | "archived", in queryoptional

    Only services with this status. Without it, every status but archived.

  • attention"true" | "false", in queryoptional

    Only services with (true) or without (false) an active warning.

  • qstring, in queryoptional

    Keep the services whose domain or name contains this text, case-insensitively.

  • limitinteger, in queryoptional

    Page size, 1 to 100. Defaults to 50.

  • offsetinteger, in queryoptional

    Rows to skip. Defaults to 0.

Answers 200: A page of services.

Response 200: ServicePage

A page of services, newest activity first.

  • dataService[]required

  • limitintegerrequired

    The page size that was applied.

  • offsetintegerrequired

    The offset that was applied.

  • totalintegerrequired

    How many services match, across every page.

Errors
StatusErrorMeaning
400validation_errorA field is missing or invalid; the message names it.
401unauthorizedThe credential was missing, malformed, revoked or belongs to an inactive account.
401session_invalidThe console session token could not be verified.
401session_expiredThe console session token has expired.
401session_claims_missingThe session token does not carry a verified email address.
403insufficient_scopeThe app's token lacks a required scope, or the operation cannot be delegated.
403account_suspendedThe account is suspended.
403account_deletedThe account was deleted.
403permission_deniedThe signed-in member's role in the organization lacks a permission the operation needs; permission names it. An admin of the organization can do it, or change the member's role.
403member_deactivatedThe signed-in person's access to the organization was deactivated, or they were removed from it. It holds from their next request, whatever their session token says. An admin of the organization can let a deactivated member in again.
404not_foundNo such resource for this caller, or no such route.
409account_mismatchThe request named another account in x-doorman-account than the one its credential acts for, as happens when the console's organization was switched in another tab. Reload and try again.
500internal_errorSomething went wrong on the server.
curl -s "https://api.doorman.fyi/v1/services" \
  -H "authorization: Bearer $DOORMAN_API_KEY"

Read a service

GET/v1/services/{serviceId}

Access any: any API key, or a console session.

One service with the newest messages that tied it to the address, at most 20: their subjects, what each was about and where to read it, never their text.

OAuth: not available to delegated app tokens.

Also available as client.services.get in TypeScript, client.services.get in Python, the services_get tool and doorman services get on the command line.

Organizations: a member's console session needs mail:read. API keys and app tokens are not held to member permissions. See Roles and permissions.

Parameters
  • serviceIdstring, in pathrequired

    The service. Example: svc_01jc5g2b3c4d5e6f7g8h9j0k1m.

Answers 200: The service and its evidence.

Response 200: ServiceDetail

A service with the newest messages that tied it to the address.

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

Errors
StatusErrorMeaning
401unauthorizedThe credential was missing, malformed, revoked or belongs to an inactive account.
401session_invalidThe console session token could not be verified.
401session_expiredThe console session token has expired.
401session_claims_missingThe session token does not carry a verified email address.
403insufficient_scopeThe app's token lacks a required scope, or the operation cannot be delegated.
403account_suspendedThe account is suspended.
403account_deletedThe account was deleted.
403permission_deniedThe signed-in member's role in the organization lacks a permission the operation needs; permission names it. An admin of the organization can do it, or change the member's role.
403member_deactivatedThe signed-in person's access to the organization was deactivated, or they were removed from it. It holds from their next request, whatever their session token says. An admin of the organization can let a deactivated member in again.
404not_foundNo such resource for this caller, or no such route.
409account_mismatchThe request named another account in x-doorman-account than the one its credential acts for, as happens when the console's organization was switched in another tab. Reload and try again.
500internal_errorSomething went wrong on the server.

Example 200 response

{
  "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"
    }
  ]
}
curl -s "https://api.doorman.fyi/v1/services/svc_01jc5g2b3c4d5e6f7g8h9j0k1m" \
  -H "authorization: Bearer $DOORMAN_API_KEY"

Declare or add a service

POST/v1/inboxes/{inboxId}/services

Access any: any API key, or a console session.

Records that the inbox's address is about to be signed up for a service, or already is. An agent calls it before it signs up: the service is recorded as pending and attributed to the agent, and the codes and links the domain sends are tied to it. A person's is recorded as active. A domain the inbox already has answers 200 with that service, and takes a cancelled or archived one up again. What it costs is recorded with services.update. An inbox holds at most 500 services (409 limit_reached).

OAuth: allowed with all of mail:write, mail:read. App permissions apply in addition to account and resource checks.

Also available as client.inboxes.services.create in TypeScript, client.inboxes.services.create in Python, the inboxes_services_create tool and doorman inboxes services create on the command line.

Organizations: a member's console session needs mail:write and mail:read. API keys and app tokens are not held to member permissions. See Roles and permissions.

Parameters
  • inboxIdstring, in pathrequired

    The inbox. Example: inb_01jc4q7w9k2m5n8p3r6t1v4x7z.

Request body (application/json): 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.

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

Answers 201: The service, newly recorded.

Response 201: 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.

  • 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

Answers 200: The service the inbox already had for this domain, as it is now.

Response 200: 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.

  • 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

Errors
StatusErrorMeaning
400validation_errorA field is missing or invalid; the message names it.
400invalid_jsonThe request body is not JSON.
401unauthorizedThe credential was missing, malformed, revoked or belongs to an inactive account.
401session_invalidThe console session token could not be verified.
401session_expiredThe console session token has expired.
401session_claims_missingThe session token does not carry a verified email address.
403insufficient_scopeThe app's token lacks a required scope, or the operation cannot be delegated.
403account_suspendedThe account is suspended.
403account_deletedThe account was deleted.
403permission_deniedThe signed-in member's role in the organization lacks a permission the operation needs; permission names it. An admin of the organization can do it, or change the member's role.
403member_deactivatedThe signed-in person's access to the organization was deactivated, or they were removed from it. It holds from their next request, whatever their session token says. An admin of the organization can let a deactivated member in again.
404not_foundNo such resource for this caller, or no such route.
409limit_reachedThe abuse ceiling for inboxes, custom domains, keys, endpoints, services, relying parties, the services an address signs in to, the sends an inbox has waiting for its owner or the invitations an organization has open; delete, revoke or decide one first.
409account_mismatchThe request named another account in x-doorman-account than the one its credential acts for, as happens when the console's organization was switched in another tab. Reload and try again.
500internal_errorSomething went wrong on the server.

Example 201 response

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

Example 200 response

{
  "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": []
}
curl -s -X POST "https://api.doorman.fyi/v1/inboxes/inb_01jc4q7w9k2m5n8p3r6t1v4x7z/services" \
  -H "authorization: Bearer $DOORMAN_API_KEY" \
  -H "content-type: application/json" \
  -d '{
    "domain": "example.net",
    "name": "Example Tools",
    "note": "Sign-up for the weekly report"
  }'

Update a service

PATCH/v1/services/{serviceId}

Access any: any API key, or a console session.

Renames the service, changes its status, replaces its note or plan, clears an active attention warning (attention: null), or decides about one of its sign-ins (signIn). Fields left out stay as they are; null clears the note, the plan, or attention. Clearing attention, allowing a sign-in and telling a relying party who owns the agent need a console session unless the account allows its account keys to (403 session_required); stopping a sign-in never does. archived sets a service aside as not a sign-up: mail from its domain still points at it, but never makes it pending again, and its sign-ins are stopped.

OAuth: not available to delegated app tokens.

Also available as client.services.update in TypeScript, client.services.update in Python, the services_update tool and doorman services update on the command line.

Organizations: a member's console session needs inboxes:manage and mail:read. API keys and app tokens are not held to member permissions. See Roles and permissions.

Parameters
  • serviceIdstring, in pathrequired

    The service. Example: svc_01jc5g2b3c4d5e6f7g8h9j0k1m.

Request body (application/json): UpdateService

Changes to a service. Fields left out stay as they are; null clears the note, the plan, or an active warning.

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

Answers 200: The service as it is now.

Response 200: 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.

  • 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

Errors
StatusErrorMeaning
400validation_errorA field is missing or invalid; the message names it.
400invalid_jsonThe request body is not JSON.
401unauthorizedThe credential was missing, malformed, revoked or belongs to an inactive account.
401session_invalidThe console session token could not be verified.
401session_expiredThe console session token has expired.
401session_claims_missingThe session token does not carry a verified email address.
403session_requiredAccount keys, developer apps, relying parties, installations, consent, approving a sign-in and the assistant require a console session. So does loosening the security policy, trusting a sender, releasing held mail, allowing a sign-in, letting agents sign in to new services alone or telling a service who owns an agent, unless the account allows its account keys to.
403insufficient_scopeThe app's token lacks a required scope, or the operation cannot be delegated.
403account_suspendedThe account is suspended.
403account_deletedThe account was deleted.
403permission_deniedThe signed-in member's role in the organization lacks a permission the operation needs; permission names it. An admin of the organization can do it, or change the member's role.
403member_deactivatedThe signed-in person's access to the organization was deactivated, or they were removed from it. It holds from their next request, whatever their session token says. An admin of the organization can let a deactivated member in again.
404not_foundNo such resource for this caller, or no such route.
409account_mismatchThe request named another account in x-doorman-account than the one its credential acts for, as happens when the console's organization was switched in another tab. Reload and try again.
500internal_errorSomething went wrong on the server.

Example 200 response

{
  "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": []
}
curl -s -X PATCH "https://api.doorman.fyi/v1/services/svc_01jc5g2b3c4d5e6f7g8h9j0k1m" \
  -H "authorization: Bearer $DOORMAN_API_KEY" \
  -H "content-type: application/json" \
  -d '{
    "status": "cancelled"
  }'

Delete a service

DELETE/v1/services/{serviceId}

Access any: any API key, or a console session.

Removes the service from the passport, with what was decided about its sign-ins. Its messages stay. A later message from the domain that concerns an account there records it again, and a later sign-in asks the owner again; archive it instead to keep it set aside.

OAuth: not available to delegated app tokens.

Also available as client.services.delete in TypeScript, client.services.delete in Python, the services_delete tool and doorman services delete on the command line.

Organizations: a member's console session needs inboxes:manage. API keys and app tokens are not held to member permissions. See Roles and permissions.

Parameters
  • serviceIdstring, in pathrequired

    The service. Example: svc_01jc5g2b3c4d5e6f7g8h9j0k1m.

Answers 204: Deleted.

Errors
StatusErrorMeaning
401unauthorizedThe credential was missing, malformed, revoked or belongs to an inactive account.
401session_invalidThe console session token could not be verified.
401session_expiredThe console session token has expired.
401session_claims_missingThe session token does not carry a verified email address.
403insufficient_scopeThe app's token lacks a required scope, or the operation cannot be delegated.
403account_suspendedThe account is suspended.
403account_deletedThe account was deleted.
403permission_deniedThe signed-in member's role in the organization lacks a permission the operation needs; permission names it. An admin of the organization can do it, or change the member's role.
403member_deactivatedThe signed-in person's access to the organization was deactivated, or they were removed from it. It holds from their next request, whatever their session token says. An admin of the organization can let a deactivated member in again.
404not_foundNo such resource for this caller, or no such route.
409account_mismatchThe request named another account in x-doorman-account than the one its credential acts for, as happens when the console's organization was switched in another tab. Reload and try again.
500internal_errorSomething went wrong on the server.
curl -s -X DELETE "https://api.doorman.fyi/v1/services/svc_01jc5g2b3c4d5e6f7g8h9j0k1m" \
  -H "authorization: Bearer $DOORMAN_API_KEY"

Read verification codes

GET/v1/inboxes/{inboxId}/verifications

Access any: any API key, or a console session.

The verification codes and sign-in links the inbox read from its mail in the last 60 minutes, newest first. After signing up, call it with domain and waitSeconds to be handed the code as soon as it arrives. Each says whether its sender was authenticated (verified), and a link whether it points at the sender's own domain (matchesSender): treat anything else with suspicion. An agent's read is recorded on what it was handed, and a read with domain confirms the pending sign-up and attributes it to the agent when no agent has. A service's invitation to join is served for 14 days with invitation true: accept one only when your user asked.

OAuth: allowed with all of mail:read. App permissions apply in addition to account and resource checks.

Also available as client.inboxes.verifications.list in TypeScript, client.inboxes.verifications.list in Python, the inboxes_verifications_list tool and doorman inboxes verifications list on the command line.

Organizations: a member's console session needs mail:read. API keys and app tokens are not held to member permissions. See Roles and permissions.

Parameters
  • inboxIdstring, in pathrequired

    The inbox. Example: inb_01jc4q7w9k2m5n8p3r6t1v4x7z.

  • domainstring, in queryoptional

    Only codes and links from this service's domain, or a host under it.

  • sincestring (date-time), in queryoptional

    Only those that arrived after this instant.

  • waitSecondsinteger, in queryoptional

    When none has arrived yet, wait up to this many seconds for one. Defaults to 0.

Answers 200: The codes and links, newest first.

Response 200: VerificationList

The verification codes and sign-in links of the last hour and the invitations of the last 14 days, newest first.

Errors
StatusErrorMeaning
400validation_errorA field is missing or invalid; the message names it.
401unauthorizedThe credential was missing, malformed, revoked or belongs to an inactive account.
401session_invalidThe console session token could not be verified.
401session_expiredThe console session token has expired.
401session_claims_missingThe session token does not carry a verified email address.
403insufficient_scopeThe app's token lacks a required scope, or the operation cannot be delegated.
403account_suspendedThe account is suspended.
403account_deletedThe account was deleted.
403permission_deniedThe signed-in member's role in the organization lacks a permission the operation needs; permission names it. An admin of the organization can do it, or change the member's role.
403member_deactivatedThe signed-in person's access to the organization was deactivated, or they were removed from it. It holds from their next request, whatever their session token says. An admin of the organization can let a deactivated member in again.
404not_foundNo such resource for this caller, or no such route.
409account_mismatchThe request named another account in x-doorman-account than the one its credential acts for, as happens when the console's organization was switched in another tab. Reload and try again.
500internal_errorSomething went wrong on the server.
curl -s "https://api.doorman.fyi/v1/inboxes/inb_01jc4q7w9k2m5n8p3r6t1v4x7z/verifications" \
  -H "authorization: Bearer $DOORMAN_API_KEY"

Start a sign-in

POST/v1/inboxes/{inboxId}/sign-ins

Access any: any API key, or a console session.

Signs the inbox's address in to a service that accepts Sign in with Doorman, with no password and no email code. Call it only when your user asked you to use that service. status says what comes next. ready: open url, a single-use link good for 5 minutes, in the browser that should hold the session, and show it to nobody. approval_required: the owner has to allow the service once, at approvalUrl; tell your user, then call again. blocked: the owner stopped it, so do not sign in there another way. unsupported: sign up with the service's own form and the verification codes.

OAuth: allowed with all of mail:write, mail:read. App permissions apply in addition to account and resource checks.

Part of Sign in with Doorman, which a deployment switches on. Where it is off this route answers 404 not_found, and features.signIn of GET /v1/me is false.

Also available as client.inboxes.signIns.create in TypeScript, client.inboxes.sign_ins.create in Python, the inboxes_signIns_create tool and doorman inboxes sign-ins create on the command line.

Organizations: a member's console session needs mail:write and mail:read. API keys and app tokens are not held to member permissions. See Roles and permissions.

Parameters
  • inboxIdstring, in pathrequired

    The inbox. Example: inb_01jc4q7w9k2m5n8p3r6t1v4x7z.

Request body (application/json): 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.

  • domainstringoptional

    The service's domain or host.

  • clientIdstringoptional

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

Answers 200: What the sign-in needs next.

Response 200: SignInStart

What starting a sign-in answered. Only ready carries a link, and the link is a secret.

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

Errors
StatusErrorMeaning
400validation_errorA field is missing or invalid; the message names it.
400invalid_jsonThe request body is not JSON.
401unauthorizedThe credential was missing, malformed, revoked or belongs to an inactive account.
401session_invalidThe console session token could not be verified.
401session_expiredThe console session token has expired.
401session_claims_missingThe session token does not carry a verified email address.
403inbox_suspendedThe inbox cannot send, or start a sign-in, at the moment.
403insufficient_scopeThe app's token lacks a required scope, or the operation cannot be delegated.
403account_suspendedThe account is suspended.
403account_deletedThe account was deleted.
403permission_deniedThe signed-in member's role in the organization lacks a permission the operation needs; permission names it. An admin of the organization can do it, or change the member's role.
403member_deactivatedThe signed-in person's access to the organization was deactivated, or they were removed from it. It holds from their next request, whatever their session token says. An admin of the organization can let a deactivated member in again.
404not_foundNo such resource for this caller, or no such route.
409limit_reachedThe abuse ceiling for inboxes, custom domains, keys, endpoints, services, relying parties, the services an address signs in to, the sends an inbox has waiting for its owner or the invitations an organization has open; delete, revoke or decide one first.
409account_mismatchThe request named another account in x-doorman-account than the one its credential acts for, as happens when the console's organization was switched in another tab. Reload and try again.
429rate_limit_exceededA per-inbox or per-account rate limit; Retry-After and resetsAt say when to try again.
500internal_errorSomething went wrong on the server.

Example 200 response

{
  "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"
}
curl -s -X POST "https://api.doorman.fyi/v1/inboxes/inb_01jc4q7w9k2m5n8p3r6t1v4x7z/sign-ins" \
  -H "authorization: Bearer $DOORMAN_API_KEY" \
  -H "content-type: application/json" \
  -d '{
    "domain": "app.example.net"
  }'

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