---
title: "Passport"
description: "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."
url: https://doorman.fyi/docs/reference/passport
markdown: https://doorman.fyi/docs/reference/passport.md
area: "API reference"
section: "API reference"
---

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

Source: https://doorman.fyi/docs/reference/passport

## 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`](https://doorman.fyi/docs/sdk/reference/passport.md#passport-get) in TypeScript, [`client.passport.get`](https://doorman.fyi/docs/python/reference/passport.md#passport-get) in Python, the [`passport_get`](https://doorman.fyi/docs/mcp/tools/passport.md#passport-get) tool and [`doorman passport get`](https://doorman.fyi/docs/cli/commands/passport.md#passport-get) on the command line.

Organizations: every member's console session may call it. See [Roles and permissions](https://doorman.fyi/docs/organizations.md#roles).

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.
- `alertEmails` (boolean): 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.
- `alertEmail` (string (email)): Where alert emails are sent: the account owner's address. Example: `sam@example.com`
- `emailAvailable` (boolean): Whether this deployment has email sending configured for owner alerts.
- `signInAvailable` (boolean): Whether this deployment has Sign in with Doorman switched on. Where it has not, the two settings below change nothing.
- `agentSignIn` (boolean): 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.
- `shareOwner` (boolean): 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.
- `briefingEmails` (boolean): 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.
- `briefingHour` (integer): The hour of the day, in `timeZone`, at which the briefing is sent.
- `timeZone` (string): The IANA time zone `briefingHour` is read in. Example: `America/Guayaquil`
- `updatedAt` (string (date-time) | null): When these settings were last changed; null while they are the default.

Example 200 response:
```json
{
  "alertEmails": false,
  "alertEmail": "dana@example.com",
  "emailAvailable": true,
  "signInAvailable": true,
  "agentSignIn": false,
  "shareOwner": false,
  "briefingEmails": false,
  "briefingHour": 8,
  "timeZone": "UTC",
  "updatedAt": null
}
```

**Errors**

| Status | Error | Meaning |
| --- | --- | --- |
| 401 | `unauthorized` | The credential was missing, malformed, revoked or belongs to an inactive account. |
| 401 | `session_invalid` | The console session token could not be verified. |
| 401 | `session_expired` | The console session token has expired. |
| 401 | `session_claims_missing` | The session token does not carry a verified email address. |
| 403 | `forbidden` | The key is scoped to one inbox and cannot manage inboxes, keys or webhooks, or cannot read account-wide data. |
| 403 | `insufficient_scope` | The app's token lacks a required scope, or the operation cannot be delegated. |
| 403 | `account_suspended` | The account is suspended. |
| 403 | `account_deleted` | The account was deleted. |
| 403 | `member_deactivated` | The 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. |
| 409 | `account_mismatch` | The 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. |
| 500 | `internal_error` | Something went wrong on the server. |

curl:
```sh
curl -s "https://api.doorman.fyi/v1/passport" \
  -H "authorization: Bearer $DOORMAN_API_KEY"
```

TypeScript:
```ts
const response = await fetch("https://api.doorman.fyi/v1/passport", {
  headers: {
    authorization: `Bearer ${process.env.DOORMAN_API_KEY}`,
  },
  redirect: "manual", credentials: "omit",
});
if (!response.ok) throw new Error(`The API answered ${response.status}.`);
const result = await response.json();
```

Python:
```python
import os
import requests

response = requests.get(
    "https://api.doorman.fyi/v1/passport",
    headers={"authorization": f"Bearer {os.environ['DOORMAN_API_KEY']}"},
    allow_redirects=False, timeout=30,
)
response.raise_for_status()
result = response.json()
```

## 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`](https://doorman.fyi/docs/sdk/reference/passport.md#passport-update) in TypeScript, [`client.passport.update`](https://doorman.fyi/docs/python/reference/passport.md#passport-update) in Python, the [`passport_update`](https://doorman.fyi/docs/mcp/tools/passport.md#passport-update) tool and [`doorman passport update`](https://doorman.fyi/docs/cli/commands/passport.md#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](https://doorman.fyi/docs/organizations.md#roles).

**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.
- `alertEmails` (boolean, optional): Whether to email the account owner when a service receives an unexplained code or link, a password reset, or a security notice.
- `agentSignIn` (boolean, optional): Whether an agent may sign in to a service the owner has not allowed yet.
- `shareOwner` (boolean, optional): Whether a service an agent signed in to alone is told who owns the agent, when it asks.
- `briefingEmails` (boolean, optional): 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.
- `briefingHour` (integer, optional): The hour of the day, in `timeZone`, at which the briefing is sent.
- `timeZone` (string, optional): 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.
- `alertEmails` (boolean): 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.
- `alertEmail` (string (email)): Where alert emails are sent: the account owner's address. Example: `sam@example.com`
- `emailAvailable` (boolean): Whether this deployment has email sending configured for owner alerts.
- `signInAvailable` (boolean): Whether this deployment has Sign in with Doorman switched on. Where it has not, the two settings below change nothing.
- `agentSignIn` (boolean): 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.
- `shareOwner` (boolean): 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.
- `briefingEmails` (boolean): 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.
- `briefingHour` (integer): The hour of the day, in `timeZone`, at which the briefing is sent.
- `timeZone` (string): The IANA time zone `briefingHour` is read in. Example: `America/Guayaquil`
- `updatedAt` (string (date-time) | null): When these settings were last changed; null while they are the default.

Example 200 response:
```json
{
  "alertEmails": false,
  "alertEmail": "dana@example.com",
  "emailAvailable": true,
  "signInAvailable": true,
  "agentSignIn": false,
  "shareOwner": false,
  "briefingEmails": false,
  "briefingHour": 8,
  "timeZone": "UTC",
  "updatedAt": null
}
```

**Errors**

| Status | Error | Meaning |
| --- | --- | --- |
| 400 | `validation_error` | A field is missing or invalid; the message names it. |
| 400 | `invalid_json` | The request body is not JSON. |
| 401 | `unauthorized` | The credential was missing, malformed, revoked or belongs to an inactive account. |
| 401 | `session_invalid` | The console session token could not be verified. |
| 401 | `session_expired` | The console session token has expired. |
| 401 | `session_claims_missing` | The session token does not carry a verified email address. |
| 403 | `forbidden` | The key is scoped to one inbox and cannot manage inboxes, keys or webhooks, or cannot read account-wide data. |
| 403 | `session_required` | Account 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. |
| 403 | `insufficient_scope` | The app's token lacks a required scope, or the operation cannot be delegated. |
| 403 | `account_suspended` | The account is suspended. |
| 403 | `account_deleted` | The account was deleted. |
| 403 | `permission_denied` | The 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. |
| 403 | `member_deactivated` | The 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. |
| 409 | `account_mismatch` | The 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. |
| 500 | `internal_error` | Something went wrong on the server. |

curl:
```sh
curl -s -X PATCH "https://api.doorman.fyi/v1/passport" \
  -H "authorization: Bearer $DOORMAN_API_KEY" \
  -H "content-type: application/json" \
  -d '{
    "alertEmails": true
  }'
```

TypeScript:
```ts
const response = await fetch("https://api.doorman.fyi/v1/passport", {
  method: "PATCH",
  headers: {
    authorization: `Bearer ${process.env.DOORMAN_API_KEY}`,
    "content-type": "application/json",
  },
  redirect: "manual", credentials: "omit",
  body: JSON.stringify({
    "alertEmails": true
  }),
});
if (!response.ok) throw new Error(`The API answered ${response.status}.`);
const result = await response.json();
```

Python:
```python
import os
import requests

response = requests.patch(
    "https://api.doorman.fyi/v1/passport",
    headers={"authorization": f"Bearer {os.environ['DOORMAN_API_KEY']}"},
    json={
        "alertEmails": True,
    },
    allow_redirects=False, timeout=30,
)
response.raise_for_status()
result = response.json()
```

## 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](https://doorman.fyi/docs/oauth.md#scopes) apply in addition to account and resource checks.

Also available as [`client.services.list`](https://doorman.fyi/docs/sdk/reference/passport.md#services-list) in TypeScript, [`client.services.list`](https://doorman.fyi/docs/python/reference/passport.md#services-list) in Python, the [`services_list`](https://doorman.fyi/docs/mcp/tools/passport.md#services-list) tool and [`doorman services list`](https://doorman.fyi/docs/cli/commands/passport.md#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](https://doorman.fyi/docs/organizations.md#roles).

**Parameters**

| Name | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `inboxId` | query | `string` | no | Only this inbox's services. Example: `inb_01jc4q7w9k2m5n8p3r6t1v4x7z`. |
| `status` | query | `"pending" \| "active" \| "cancelled" \| "archived"` | no | Only services with this status. Without it, every status but archived. |
| `attention` | query | `"true" \| "false"` | no | Only services with (`true`) or without (`false`) an active warning. |
| `q` | query | `string` | no | Keep the services whose domain or name contains this text, case-insensitively. |
| `limit` | query | `integer` | no | Page size, 1 to 100. Defaults to 50. |
| `offset` | query | `integer` | no | Rows to skip. Defaults to 0. |

Answers `200`: A page of services.

**Response 200: ServicePage**
A page of services, newest activity first.
- `data` (Service[])
- `limit` (integer): The page size that was applied.
- `offset` (integer): The offset that was applied.
- `total` (integer): How many services match, across every page.

**Errors**

| Status | Error | Meaning |
| --- | --- | --- |
| 400 | `validation_error` | A field is missing or invalid; the message names it. |
| 401 | `unauthorized` | The credential was missing, malformed, revoked or belongs to an inactive account. |
| 401 | `session_invalid` | The console session token could not be verified. |
| 401 | `session_expired` | The console session token has expired. |
| 401 | `session_claims_missing` | The session token does not carry a verified email address. |
| 403 | `insufficient_scope` | The app's token lacks a required scope, or the operation cannot be delegated. |
| 403 | `account_suspended` | The account is suspended. |
| 403 | `account_deleted` | The account was deleted. |
| 403 | `permission_denied` | The 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. |
| 403 | `member_deactivated` | The 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. |
| 404 | `not_found` | No such resource for this caller, or no such route. |
| 409 | `account_mismatch` | The 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. |
| 500 | `internal_error` | Something went wrong on the server. |

curl:
```sh
curl -s "https://api.doorman.fyi/v1/services" \
  -H "authorization: Bearer $DOORMAN_API_KEY"
```

TypeScript:
```ts
const response = await fetch("https://api.doorman.fyi/v1/services", {
  headers: {
    authorization: `Bearer ${process.env.DOORMAN_API_KEY}`,
  },
  redirect: "manual", credentials: "omit",
});
if (!response.ok) throw new Error(`The API answered ${response.status}.`);
const result = await response.json();
```

Python:
```python
import os
import requests

response = requests.get(
    "https://api.doorman.fyi/v1/services",
    headers={"authorization": f"Bearer {os.environ['DOORMAN_API_KEY']}"},
    allow_redirects=False, timeout=30,
)
response.raise_for_status()
result = response.json()
```

## 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`](https://doorman.fyi/docs/sdk/reference/passport.md#services-get) in TypeScript, [`client.services.get`](https://doorman.fyi/docs/python/reference/passport.md#services-get) in Python, the [`services_get`](https://doorman.fyi/docs/mcp/tools/passport.md#services-get) tool and [`doorman services get`](https://doorman.fyi/docs/cli/commands/passport.md#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](https://doorman.fyi/docs/organizations.md#roles).

**Parameters**

| Name | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `serviceId` | path | `string` | yes | 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.
- `id` (string): A passport service identifier. Example: `svc_01jc5g2b3c4d5e6f7g8h9j0k1m`
- `inboxId` (string): An inbox identifier. Example: `inb_01jc4q7w9k2m5n8p3r6t1v4x7z`
- `inboxAddress` (string): The address the service knows the agent by. Example: `concierge@doorman.example`
- `domain` (string): 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`
- `name` (string): 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"): `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"): `detected` from mail, `declared` by an agent, or `manual` when a person added it.
- `acquiredBy` (ServiceActorRef | null): 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.
- `note` (string | null): A note a person or an agent left.
- `plan` (ServicePlan | null): What the service costs, when someone recorded it.
- `attention` (ServiceAttention | null): 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.
- `invitedAt` (string (date-time) | null): 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.
- `signIns` (ServiceSignIn[]): 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" | null): What the newest mail from the service was about.
- `lastSignalAt` (string (date-time) | null)
- `lastReceiptAt` (string (date-time) | null): When the newest receipt or invoice arrived: a sign that the service is paid.
- `lastSecurityAt` (string (date-time) | null): When the newest password reset or security notice arrived.
- `messageCount` (integer): Messages tied to the service.
- `firstSeenAt` (string (date-time) | null): When the first mail from the service arrived; null until one does.
- `lastSeenAt` (string (date-time) | null): When the newest mail from the service arrived.
- `createdAt` (string (date-time)) Example: `2026-11-05T10:05:00.000Z`
- `updatedAt` (string (date-time)) Example: `2026-11-05T10:05:00.000Z`
- `evidence` (ServiceEvidence[]): Newest first, at most 20. Messages in trashed threads are left out.

Example 200 response:
```json
{
  "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"
    }
  ]
}
```

**Errors**

| Status | Error | Meaning |
| --- | --- | --- |
| 401 | `unauthorized` | The credential was missing, malformed, revoked or belongs to an inactive account. |
| 401 | `session_invalid` | The console session token could not be verified. |
| 401 | `session_expired` | The console session token has expired. |
| 401 | `session_claims_missing` | The session token does not carry a verified email address. |
| 403 | `insufficient_scope` | The app's token lacks a required scope, or the operation cannot be delegated. |
| 403 | `account_suspended` | The account is suspended. |
| 403 | `account_deleted` | The account was deleted. |
| 403 | `permission_denied` | The 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. |
| 403 | `member_deactivated` | The 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. |
| 404 | `not_found` | No such resource for this caller, or no such route. |
| 409 | `account_mismatch` | The 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. |
| 500 | `internal_error` | Something went wrong on the server. |

curl:
```sh
curl -s "https://api.doorman.fyi/v1/services/svc_01jc5g2b3c4d5e6f7g8h9j0k1m" \
  -H "authorization: Bearer $DOORMAN_API_KEY"
```

TypeScript:
```ts
const response = await fetch("https://api.doorman.fyi/v1/services/svc_01jc5g2b3c4d5e6f7g8h9j0k1m", {
  headers: {
    authorization: `Bearer ${process.env.DOORMAN_API_KEY}`,
  },
  redirect: "manual", credentials: "omit",
});
if (!response.ok) throw new Error(`The API answered ${response.status}.`);
const result = await response.json();
```

Python:
```python
import os
import requests

response = requests.get(
    "https://api.doorman.fyi/v1/services/svc_01jc5g2b3c4d5e6f7g8h9j0k1m",
    headers={"authorization": f"Bearer {os.environ['DOORMAN_API_KEY']}"},
    allow_redirects=False, timeout=30,
)
response.raise_for_status()
result = response.json()
```

## 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](https://doorman.fyi/docs/oauth.md#scopes) apply in addition to account and resource checks.

Also available as [`client.inboxes.services.create`](https://doorman.fyi/docs/sdk/reference/passport.md#inboxes-services-create) in TypeScript, [`client.inboxes.services.create`](https://doorman.fyi/docs/python/reference/passport.md#inboxes-services-create) in Python, the [`inboxes_services_create`](https://doorman.fyi/docs/mcp/tools/passport.md#inboxes-services-create) tool and [`doorman inboxes services create`](https://doorman.fyi/docs/cli/commands/passport.md#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](https://doorman.fyi/docs/organizations.md#roles).

**Parameters**

| Name | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `inboxId` | path | `string` | yes | 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.
- `domain` (string): The service's domain, or a host under it: `app.example.net` is recorded as `example.net`. Example: `example.net`
- `name` (string, optional): A label, at most 100 characters. Defaults to the domain.
- `note` (string | null, optional): 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.
- `id` (string): A passport service identifier. Example: `svc_01jc5g2b3c4d5e6f7g8h9j0k1m`
- `inboxId` (string): An inbox identifier. Example: `inb_01jc4q7w9k2m5n8p3r6t1v4x7z`
- `inboxAddress` (string): The address the service knows the agent by. Example: `concierge@doorman.example`
- `domain` (string): 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`
- `name` (string): 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"): `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"): `detected` from mail, `declared` by an agent, or `manual` when a person added it.
- `acquiredBy` (ServiceActorRef | null): 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.
- `note` (string | null): A note a person or an agent left.
- `plan` (ServicePlan | null): What the service costs, when someone recorded it.
- `attention` (ServiceAttention | null): 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.
- `invitedAt` (string (date-time) | null): 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.
- `signIns` (ServiceSignIn[]): 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" | null): What the newest mail from the service was about.
- `lastSignalAt` (string (date-time) | null)
- `lastReceiptAt` (string (date-time) | null): When the newest receipt or invoice arrived: a sign that the service is paid.
- `lastSecurityAt` (string (date-time) | null): When the newest password reset or security notice arrived.
- `messageCount` (integer): Messages tied to the service.
- `firstSeenAt` (string (date-time) | null): When the first mail from the service arrived; null until one does.
- `lastSeenAt` (string (date-time) | null): When the newest mail from the service arrived.
- `createdAt` (string (date-time)) Example: `2026-11-05T10:05:00.000Z`
- `updatedAt` (string (date-time)) Example: `2026-11-05T10:05:00.000Z`

Example 201 response:
```json
{
  "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": []
}
```

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.
- `id` (string): A passport service identifier. Example: `svc_01jc5g2b3c4d5e6f7g8h9j0k1m`
- `inboxId` (string): An inbox identifier. Example: `inb_01jc4q7w9k2m5n8p3r6t1v4x7z`
- `inboxAddress` (string): The address the service knows the agent by. Example: `concierge@doorman.example`
- `domain` (string): 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`
- `name` (string): 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"): `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"): `detected` from mail, `declared` by an agent, or `manual` when a person added it.
- `acquiredBy` (ServiceActorRef | null): 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.
- `note` (string | null): A note a person or an agent left.
- `plan` (ServicePlan | null): What the service costs, when someone recorded it.
- `attention` (ServiceAttention | null): 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.
- `invitedAt` (string (date-time) | null): 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.
- `signIns` (ServiceSignIn[]): 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" | null): What the newest mail from the service was about.
- `lastSignalAt` (string (date-time) | null)
- `lastReceiptAt` (string (date-time) | null): When the newest receipt or invoice arrived: a sign that the service is paid.
- `lastSecurityAt` (string (date-time) | null): When the newest password reset or security notice arrived.
- `messageCount` (integer): Messages tied to the service.
- `firstSeenAt` (string (date-time) | null): When the first mail from the service arrived; null until one does.
- `lastSeenAt` (string (date-time) | null): When the newest mail from the service arrived.
- `createdAt` (string (date-time)) Example: `2026-11-05T10:05:00.000Z`
- `updatedAt` (string (date-time)) Example: `2026-11-05T10:05:00.000Z`

Example 200 response:
```json
{
  "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": []
}
```

**Errors**

| Status | Error | Meaning |
| --- | --- | --- |
| 400 | `validation_error` | A field is missing or invalid; the message names it. |
| 400 | `invalid_json` | The request body is not JSON. |
| 401 | `unauthorized` | The credential was missing, malformed, revoked or belongs to an inactive account. |
| 401 | `session_invalid` | The console session token could not be verified. |
| 401 | `session_expired` | The console session token has expired. |
| 401 | `session_claims_missing` | The session token does not carry a verified email address. |
| 403 | `insufficient_scope` | The app's token lacks a required scope, or the operation cannot be delegated. |
| 403 | `account_suspended` | The account is suspended. |
| 403 | `account_deleted` | The account was deleted. |
| 403 | `permission_denied` | The 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. |
| 403 | `member_deactivated` | The 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. |
| 404 | `not_found` | No such resource for this caller, or no such route. |
| 409 | `limit_reached` | The 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. |
| 409 | `account_mismatch` | The 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. |
| 500 | `internal_error` | Something went wrong on the server. |

curl:
```sh
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"
  }'
```

TypeScript:
```ts
const response = await fetch("https://api.doorman.fyi/v1/inboxes/inb_01jc4q7w9k2m5n8p3r6t1v4x7z/services", {
  method: "POST",
  headers: {
    authorization: `Bearer ${process.env.DOORMAN_API_KEY}`,
    "content-type": "application/json",
  },
  redirect: "manual", credentials: "omit",
  body: JSON.stringify({
    "domain": "example.net",
    "name": "Example Tools",
    "note": "Sign-up for the weekly report"
  }),
});
if (!response.ok) throw new Error(`The API answered ${response.status}.`);
const result = await response.json();
```

Python:
```python
import os
import requests

response = requests.post(
    "https://api.doorman.fyi/v1/inboxes/inb_01jc4q7w9k2m5n8p3r6t1v4x7z/services",
    headers={"authorization": f"Bearer {os.environ['DOORMAN_API_KEY']}"},
    json={
        "domain": "example.net",
        "name": "Example Tools",
        "note": "Sign-up for the weekly report",
    },
    allow_redirects=False, timeout=30,
)
response.raise_for_status()
result = response.json()
```

## 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`](https://doorman.fyi/docs/sdk/reference/passport.md#services-update) in TypeScript, [`client.services.update`](https://doorman.fyi/docs/python/reference/passport.md#services-update) in Python, the [`services_update`](https://doorman.fyi/docs/mcp/tools/passport.md#services-update) tool and [`doorman services update`](https://doorman.fyi/docs/cli/commands/passport.md#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](https://doorman.fyi/docs/organizations.md#roles).

**Parameters**

| Name | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `serviceId` | path | `string` | yes | 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.
- `name` (string, optional)
- `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`.
- `note` (string | null, optional)
- `plan` (ServicePlanInput | null, optional)
- `attention` (any, optional): 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`).
- `signIn` (object, optional): 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`).
  - `id` (string): 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.
  - `shareOwner` (boolean, optional): 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.
- `id` (string): A passport service identifier. Example: `svc_01jc5g2b3c4d5e6f7g8h9j0k1m`
- `inboxId` (string): An inbox identifier. Example: `inb_01jc4q7w9k2m5n8p3r6t1v4x7z`
- `inboxAddress` (string): The address the service knows the agent by. Example: `concierge@doorman.example`
- `domain` (string): 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`
- `name` (string): 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"): `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"): `detected` from mail, `declared` by an agent, or `manual` when a person added it.
- `acquiredBy` (ServiceActorRef | null): 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.
- `note` (string | null): A note a person or an agent left.
- `plan` (ServicePlan | null): What the service costs, when someone recorded it.
- `attention` (ServiceAttention | null): 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.
- `invitedAt` (string (date-time) | null): 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.
- `signIns` (ServiceSignIn[]): 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" | null): What the newest mail from the service was about.
- `lastSignalAt` (string (date-time) | null)
- `lastReceiptAt` (string (date-time) | null): When the newest receipt or invoice arrived: a sign that the service is paid.
- `lastSecurityAt` (string (date-time) | null): When the newest password reset or security notice arrived.
- `messageCount` (integer): Messages tied to the service.
- `firstSeenAt` (string (date-time) | null): When the first mail from the service arrived; null until one does.
- `lastSeenAt` (string (date-time) | null): When the newest mail from the service arrived.
- `createdAt` (string (date-time)) Example: `2026-11-05T10:05:00.000Z`
- `updatedAt` (string (date-time)) Example: `2026-11-05T10:05:00.000Z`

Example 200 response:
```json
{
  "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": []
}
```

**Errors**

| Status | Error | Meaning |
| --- | --- | --- |
| 400 | `validation_error` | A field is missing or invalid; the message names it. |
| 400 | `invalid_json` | The request body is not JSON. |
| 401 | `unauthorized` | The credential was missing, malformed, revoked or belongs to an inactive account. |
| 401 | `session_invalid` | The console session token could not be verified. |
| 401 | `session_expired` | The console session token has expired. |
| 401 | `session_claims_missing` | The session token does not carry a verified email address. |
| 403 | `session_required` | Account 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. |
| 403 | `insufficient_scope` | The app's token lacks a required scope, or the operation cannot be delegated. |
| 403 | `account_suspended` | The account is suspended. |
| 403 | `account_deleted` | The account was deleted. |
| 403 | `permission_denied` | The 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. |
| 403 | `member_deactivated` | The 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. |
| 404 | `not_found` | No such resource for this caller, or no such route. |
| 409 | `account_mismatch` | The 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. |
| 500 | `internal_error` | Something went wrong on the server. |

curl:
```sh
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"
  }'
```

TypeScript:
```ts
const response = await fetch("https://api.doorman.fyi/v1/services/svc_01jc5g2b3c4d5e6f7g8h9j0k1m", {
  method: "PATCH",
  headers: {
    authorization: `Bearer ${process.env.DOORMAN_API_KEY}`,
    "content-type": "application/json",
  },
  redirect: "manual", credentials: "omit",
  body: JSON.stringify({
    "status": "cancelled"
  }),
});
if (!response.ok) throw new Error(`The API answered ${response.status}.`);
const result = await response.json();
```

Python:
```python
import os
import requests

response = requests.patch(
    "https://api.doorman.fyi/v1/services/svc_01jc5g2b3c4d5e6f7g8h9j0k1m",
    headers={"authorization": f"Bearer {os.environ['DOORMAN_API_KEY']}"},
    json={
        "status": "cancelled",
    },
    allow_redirects=False, timeout=30,
)
response.raise_for_status()
result = response.json()
```

## 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`](https://doorman.fyi/docs/sdk/reference/passport.md#services-delete) in TypeScript, [`client.services.delete`](https://doorman.fyi/docs/python/reference/passport.md#services-delete) in Python, the [`services_delete`](https://doorman.fyi/docs/mcp/tools/passport.md#services-delete) tool and [`doorman services delete`](https://doorman.fyi/docs/cli/commands/passport.md#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](https://doorman.fyi/docs/organizations.md#roles).

**Parameters**

| Name | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `serviceId` | path | `string` | yes | The service. Example: `svc_01jc5g2b3c4d5e6f7g8h9j0k1m`. |

Answers `204`: Deleted.

**Errors**

| Status | Error | Meaning |
| --- | --- | --- |
| 401 | `unauthorized` | The credential was missing, malformed, revoked or belongs to an inactive account. |
| 401 | `session_invalid` | The console session token could not be verified. |
| 401 | `session_expired` | The console session token has expired. |
| 401 | `session_claims_missing` | The session token does not carry a verified email address. |
| 403 | `insufficient_scope` | The app's token lacks a required scope, or the operation cannot be delegated. |
| 403 | `account_suspended` | The account is suspended. |
| 403 | `account_deleted` | The account was deleted. |
| 403 | `permission_denied` | The 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. |
| 403 | `member_deactivated` | The 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. |
| 404 | `not_found` | No such resource for this caller, or no such route. |
| 409 | `account_mismatch` | The 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. |
| 500 | `internal_error` | Something went wrong on the server. |

curl:
```sh
curl -s -X DELETE "https://api.doorman.fyi/v1/services/svc_01jc5g2b3c4d5e6f7g8h9j0k1m" \
  -H "authorization: Bearer $DOORMAN_API_KEY"
```

TypeScript:
```ts
const response = await fetch("https://api.doorman.fyi/v1/services/svc_01jc5g2b3c4d5e6f7g8h9j0k1m", {
  method: "DELETE",
  headers: {
    authorization: `Bearer ${process.env.DOORMAN_API_KEY}`,
  },
  redirect: "manual", credentials: "omit",
});
if (!response.ok) throw new Error(`The API answered ${response.status}.`);
// 204: nothing to read.
```

Python:
```python
import os
import requests

response = requests.delete(
    "https://api.doorman.fyi/v1/services/svc_01jc5g2b3c4d5e6f7g8h9j0k1m",
    headers={"authorization": f"Bearer {os.environ['DOORMAN_API_KEY']}"},
    allow_redirects=False, timeout=30,
)
response.raise_for_status()
# 204: nothing to read.
```

## 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](https://doorman.fyi/docs/oauth.md#scopes) apply in addition to account and resource checks.

Also available as [`client.inboxes.verifications.list`](https://doorman.fyi/docs/sdk/reference/passport.md#inboxes-verifications-list) in TypeScript, [`client.inboxes.verifications.list`](https://doorman.fyi/docs/python/reference/passport.md#inboxes-verifications-list) in Python, the [`inboxes_verifications_list`](https://doorman.fyi/docs/mcp/tools/passport.md#inboxes-verifications-list) tool and [`doorman inboxes verifications list`](https://doorman.fyi/docs/cli/commands/passport.md#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](https://doorman.fyi/docs/organizations.md#roles).

**Parameters**

| Name | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `inboxId` | path | `string` | yes | The inbox. Example: `inb_01jc4q7w9k2m5n8p3r6t1v4x7z`. |
| `domain` | query | `string` | no | Only codes and links from this service's domain, or a host under it. |
| `since` | query | `string (date-time)` | no | Only those that arrived after this instant. |
| `waitSeconds` | query | `integer` | no | 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.
- `data` (Verification[]): At most 20.

**Errors**

| Status | Error | Meaning |
| --- | --- | --- |
| 400 | `validation_error` | A field is missing or invalid; the message names it. |
| 401 | `unauthorized` | The credential was missing, malformed, revoked or belongs to an inactive account. |
| 401 | `session_invalid` | The console session token could not be verified. |
| 401 | `session_expired` | The console session token has expired. |
| 401 | `session_claims_missing` | The session token does not carry a verified email address. |
| 403 | `insufficient_scope` | The app's token lacks a required scope, or the operation cannot be delegated. |
| 403 | `account_suspended` | The account is suspended. |
| 403 | `account_deleted` | The account was deleted. |
| 403 | `permission_denied` | The 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. |
| 403 | `member_deactivated` | The 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. |
| 404 | `not_found` | No such resource for this caller, or no such route. |
| 409 | `account_mismatch` | The 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. |
| 500 | `internal_error` | Something went wrong on the server. |

curl:
```sh
curl -s "https://api.doorman.fyi/v1/inboxes/inb_01jc4q7w9k2m5n8p3r6t1v4x7z/verifications" \
  -H "authorization: Bearer $DOORMAN_API_KEY"
```

TypeScript:
```ts
const response = await fetch("https://api.doorman.fyi/v1/inboxes/inb_01jc4q7w9k2m5n8p3r6t1v4x7z/verifications", {
  headers: {
    authorization: `Bearer ${process.env.DOORMAN_API_KEY}`,
  },
  redirect: "manual", credentials: "omit",
});
if (!response.ok) throw new Error(`The API answered ${response.status}.`);
const result = await response.json();
```

Python:
```python
import os
import requests

response = requests.get(
    "https://api.doorman.fyi/v1/inboxes/inb_01jc4q7w9k2m5n8p3r6t1v4x7z/verifications",
    headers={"authorization": f"Bearer {os.environ['DOORMAN_API_KEY']}"},
    allow_redirects=False, timeout=30,
)
response.raise_for_status()
result = response.json()
```

## 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](https://doorman.fyi/docs/oauth.md#scopes) 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`](https://doorman.fyi/docs/sdk/reference/passport.md#inboxes-signIns-create) in TypeScript, [`client.inboxes.sign_ins.create`](https://doorman.fyi/docs/python/reference/passport.md#inboxes-signIns-create) in Python, the [`inboxes_signIns_create`](https://doorman.fyi/docs/mcp/tools/passport.md#inboxes-signIns-create) tool and [`doorman inboxes sign-ins create`](https://doorman.fyi/docs/cli/commands/passport.md#inboxes-signIns-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](https://doorman.fyi/docs/organizations.md#roles).

**Parameters**

| Name | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `inboxId` | path | `string` | yes | 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.
- `domain` (string, optional): The service's domain or host.
- `clientId` (string, optional): 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"): `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.
- `inboxId` (string): An inbox identifier. Example: `inb_01jc4q7w9k2m5n8p3r6t1v4x7z`
- `serviceId` (string | null): The service in the inbox's passport, recorded when the sign-in started; null when `unsupported`.
- `client` (SignInClientSummary | null): The relying party the sign-in is for; null when `unsupported`.
- `url` (string | null): `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.
- `approvalUrl` (string | null): `approval_required` only: where the owner allows the service. Tell your user; it needs their own session.
- `expiresAt` (string (date-time) | null): `ready` only: when the link stops working.

Example 200 response:
```json
{
  "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"
}
```

**Errors**

| Status | Error | Meaning |
| --- | --- | --- |
| 400 | `validation_error` | A field is missing or invalid; the message names it. |
| 400 | `invalid_json` | The request body is not JSON. |
| 401 | `unauthorized` | The credential was missing, malformed, revoked or belongs to an inactive account. |
| 401 | `session_invalid` | The console session token could not be verified. |
| 401 | `session_expired` | The console session token has expired. |
| 401 | `session_claims_missing` | The session token does not carry a verified email address. |
| 403 | `inbox_suspended` | The inbox cannot send, or start a sign-in, at the moment. |
| 403 | `insufficient_scope` | The app's token lacks a required scope, or the operation cannot be delegated. |
| 403 | `account_suspended` | The account is suspended. |
| 403 | `account_deleted` | The account was deleted. |
| 403 | `permission_denied` | The 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. |
| 403 | `member_deactivated` | The 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. |
| 404 | `not_found` | No such resource for this caller, or no such route. |
| 409 | `limit_reached` | The 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. |
| 409 | `account_mismatch` | The 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. |
| 429 | `rate_limit_exceeded` | A per-inbox or per-account rate limit; `Retry-After` and `resetsAt` say when to try again. |
| 500 | `internal_error` | Something went wrong on the server. |

curl:
```sh
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"
  }'
```

TypeScript:
```ts
const response = await fetch("https://api.doorman.fyi/v1/inboxes/inb_01jc4q7w9k2m5n8p3r6t1v4x7z/sign-ins", {
  method: "POST",
  headers: {
    authorization: `Bearer ${process.env.DOORMAN_API_KEY}`,
    "content-type": "application/json",
  },
  redirect: "manual", credentials: "omit",
  body: JSON.stringify({
    "domain": "app.example.net"
  }),
});
if (!response.ok) throw new Error(`The API answered ${response.status}.`);
const result = await response.json();
```

Python:
```python
import os
import requests

response = requests.post(
    "https://api.doorman.fyi/v1/inboxes/inb_01jc4q7w9k2m5n8p3r6t1v4x7z/sign-ins",
    headers={"authorization": f"Bearer {os.environ['DOORMAN_API_KEY']}"},
    json={
        "domain": "app.example.net",
    },
    allow_redirects=False, timeout=30,
)
response.raise_for_status()
result = response.json()
```
