The passport

The outside services an inbox's address is signed up for, the verification codes and sign-in links the inbox reads from its mail, and how an address signs in where a service accepts Sign in with Doorman.

On this page
  1. What an address is signed up for
  2. Signing up and waiting for a code
  3. How mail updates the passport
  4. Unexplained codes and owner alerts
  5. Invitations from a service
  6. Signing in with Doorman
  7. Connected agents and owner upkeep
  8. Deleting an inbox that holds services

What an address is signed up for

When an agent uses its Doorman address to create an account at an outside service, the passport records that service against the inbox and reads verification codes and sign-in links out of arriving mail so your code does not have to maintain regular expressions.

Identity by domain
A service is identified by its registrable domain, such as example.net. Only mail whose sender passed DMARC can record or update one from mail; name is the sender's label, never proof of identity.
Two ways in, plus manual upkeep
Services enter the passport automatically from authenticated lifecycle mail (detected), ahead of time when an agent declares a sign-up (declared), or by hand in Passport (manual).
Built-in code loop
GET /v1/inboxes/{inboxId}/verifications returns codes and links from the last 60 minutes and waits up to 20 seconds for a fresh one.
Available on every plan
Up to 500 live services per inbox (409 limit_reached past that). See Plans, limits and errors.

Signing up and waiting for a code

An agent signing up at an outside service runs three steps so the account is attributed to that agent and the verification code arrives in one call:

  1. Declare the service before submitting its form: POST /v1/inboxes/{inboxId}/services with domain (a host like app.example.net is normalized to example.net). The service starts pending and records the calling key or app installation in acquiredBy.
  2. Submit the outside service's sign-up form using the inbox's address.
  3. Wait for the code or confirmation link: GET /v1/inboxes/{inboxId}/verifications with domain and waitSeconds=20. Reading with domain confirms the pending service to active.
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": "app.example.net",
    "note": "Weekly report"
  }'

curl -s "https://api.doorman.fyi/v1/inboxes/inb_01jc4q7w9k2m5n8p3r6t1v4x7z/verifications?domain=example.net&waitSeconds=20" \
  -H "authorization: Bearer $DOORMAN_API_KEY"

Verification

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

How mail updates the passport

Every inbound message runs deterministic detection inside the storage batch. Each message may carry a lifecycle signal (verification, welcome, receipt, password_reset, security, trial, cancellation, other), exposed on Message as service and on message.received deliveries alongside verification.

  • Only DMARC-passing mail whose verdict is not suspicious can create or update a service. Bounces, spam, malicious mail and the deployment's own domains are ignored.
  • Only an account signal (verification, welcome, receipt, password_reset, security, trial, cancellation) creates a new service; other (newsletters and general notices) updates a service the inbox already holds.
  • Personal mail written by a person rather than a system address records nothing unless it carries a verification code or sign-in link and is not a reply, keeping ordinary correspondence out of the passport.
  • Statuses are pending, active, cancelled, archived. A welcome, receipt or trial confirms a service to active; cancellation moves it to cancelled; archived sets a non-signup aside so future mail from that domain never revives it.
  • The first time an inbox's passport is listed, a background job scans its older stored mail once so existing inboxes populate without re-delivering messages.

Unexplained codes and owner alerts

When an authenticated service sends a password reset, a security notice, or a verification code or sign-in link that no recent agent declaration (15 minutes) or code read (2 minutes) accounts for, Doorman sets attention on the Service (unexplained_code, password_reset or security) and marks the Verification entry unexplained: true.

  • Warnings stay set across later newsletters or receipts from the service and cannot be cleared by a connected agent or an inbox key.
  • A person who signs up by hand does it in Passport: the page waits for the code, and taking it there (Copy the code, or I used it) records the sign-up as theirs (acquiredBy.kind is person) and keeps the warning from being raised, as a declaration does. A code nobody took asks Was this you? there, and yes records the sign-up and clears the unexplained_code warning. The entry's own unexplained says what agents did with a code, so a person's answer does not change it.
  • Once you have checked the account at the outside service, choose Mark checked in Passport or call PATCH /v1/services/{serviceId} with { "attention": null } (requires a console session unless allowKeyManagement is enabled on the account).
  • In Passport, or through GET and PATCH /v1/passport, you can switch on optional alert emails to your account address. Alert emails are rate-limited to one every 60 minutes per service and 20 per UTC day across the account, and never carry verification codes, sign-in links, sender display names or message text.

Invitations from a service

Someone at a service can invite an address to join it, the way a person adds a colleague to a workspace. The passport reads that mail too, so an invitation is not lost among the rest and its link does not have to be dug out of the message.

  • An invitation is mail whose subject says the address was invited and that carries a link that accepts. Without such a link it is ordinary mail, and marketing mail is never one, whatever its words.
  • The service is recorded as pending with invitedAt, and Passport lists it under Waiting for you until someone joins or sets it aside.
  • GET /v1/inboxes/{inboxId}/verifications serves the link with invitation: true for 14 days, where a code is served for 60 minutes. On message.received deliveries, verification.invitation says the same.
  • An invitation is never unexplained and raises no warning or alert email: someone at the service sent it.
  • A wait (waitSeconds) is not ended by an invitation an agent already read, because what the agent waits for then is the code that accepting asks for.

Signing in with Doorman

Where a service accepts Sign in with Doorman, an agent gets in with its address and nothing else: no form, no password and no email code. The passport records how each address gets in, and the owner decides whether it may.

An agent starts with POST /v1/inboxes/{inboxId}/sign-ins, naming the service by domain, or by clientId when the service states one. A connected agent may call it under the mail permissions it already holds. It is the only part of sign-in an agent reaches, and it starts a sign-in only when its user asked it to use that service. The answer's status says what comes next:

ready
Open url at once, in the browser that should hold the session at the service. The link signs this address in to this service, once. Send it to nobody and write it nowhere.
approval_required
The owner has to allow this service for this address first. Tell your user: the request waits for them in Passport, and approvalUrl leads there. Start again once they have allowed it.
blocked
The owner stopped this address signing in there. Do not sign in there another way.
unsupported
The service does not accept Sign in with Doorman. Sign up with its own form and the verification codes, as above.

SignInStart

{
  "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"
}
  • A link is single use and lasts 5 minutes. An inbox holds at most 5 unused links and starts at most 10 sign-ins a minute.
  • The link opens a Doorman page that says which address signs in to which host and waits for a click, so nothing that merely fetches the link spends it. An agent with a browser opens it there and continues. Where an agent has no browser, its user starts at the service in their own browser instead and allows the sign-in in the console.
  • Starting a sign-in records the service in the passport as a declaration does, and never allows anything by itself. A start that answers blocked records nothing.
  • An agent cannot approve a sign-in, its own or one another browser started, and neither can Ask Doorman. A code or a link that arrives in mail is never a reason to sign in.

The owner's side is in Passport:

  • A sign-in an agent asked for is listed under Waiting for you, by the host the service proved is its own. Allow lets that address sign in there from then on; Stop refuses it.
  • Each service says how the address signs in: the host, whether it was verified, the first and last sign-in and their count, each one entry of signIns on the Service. Stop ends the links, codes and tokens that address was given there. The session the service itself keeps is the service's own.
  • PATCH /v1/services/{serviceId} carries the same decision as signIn. Stopping, and no longer telling a service who owns the agent, are open to any key that reaches the service. Allowing, and telling a service who owns the agent, need a console session unless allowKeyManagement is on.
  • Two settings, both off to begin with, are in Passport and in PATCH /v1/passport: agentSignIn lets agents sign in to services the owner has not allowed yet, and shareOwner tells those services who owns the agent when they ask. Switching either on needs a console session unless allowKeyManagement is on.
  • Archiving a service stops its sign-ins. Deleting one removes what was decided, so a later sign-in asks again.

Connected agents and owner upkeep

Connected agents and account owners have deliberately different reach on the passport:

Connected agents (OAuth)
With the default agent permissions, an app may call GET /v1/services and GET /v1/inboxes/{inboxId}/verifications (mail:read), and declare sign-ups with POST /v1/inboxes/{inboxId}/services (mail:write).
Owners and keys only
GET /v1/services/{serviceId}, PATCH /v1/services/{serviceId} and DELETE /v1/services/{serviceId} are not delegated to OAuth apps (403 insufficient_scope), so a connected agent cannot archive or delete the record of what it signed up for. Plan and price details are recorded by the owner with PATCH, or in Passport.
Inbox-scoped keys
An inbox key sees and manages services and verifications for its own inbox only; any other inbox or service answers 404 not_found.
Members of an organization
In an account a team shares, a member's console session is held to the member's role (Organizations). Reading the passport or its codes takes mail:read. Adding a service takes mail:write and mail:read. Changing one takes inboxes:manage and mail:read, and removing one inboxes:manage: what is on record for an address decides whether the address is kept when its inbox is deleted, so it goes with managing inboxes. API keys and connected agents are not held to a member's role.

Deleting an inbox that holds services

Normally a deleted inbox's address is held for your account for 180 days before another account could claim it (Deleting an inbox). When the inbox has live entries in its passport, the address is held for your account permanently instead: whoever held the address next could ask those outside services for a password reset and take over the accounts your agent created.

Your own account may still re-issue the address at once. Deleting an inbox in Doorman never closes the accounts at outside services; cancel or close them at each service first if you no longer want them.

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