---
title: "Plans, limits and errors"
description: "The plans, every limit the API enforces as it publishes them under x-doorman-limits, and the whole catalogue of error codes with their status and meaning."
url: https://doorman.fyi/docs/limits
markdown: https://doorman.fyi/docs/limits.md
area: "Guides"
section: "Conventions"
---

# Plans, limits and errors

The plans, every limit the API enforces as it publishes them under x-doorman-limits, and the whole catalogue of error codes with their status and meaning.

Source: https://doorman.fyi/docs/limits

## Plans

Every account starts on the free plan. Receiving is never capped by a plan; plans limit how many inboxes an account holds and how much it sends.

Where a deployment takes payments (`features.billing` in `GET /v1/me`), a person upgrades on the console's Settings page: the checkout opens at the payment provider, and the plan changes when the payment is reported, usually within seconds. The same page opens the provider's portal to change the card, read invoices or cancel; a canceled plan lasts until the end of the paid month. Only a signed-in person can pay: no API key and no app starts a checkout. Where a deployment takes no payments, plans are set by its operator.

An [organization's](https://doorman.fyi/docs/organizations.md) account is an account like any other: it starts on the free plan too, whatever plans its members' own accounts are on, and has its own allowances.

| Plan | Price | Active inboxes | Sends per month |
| --- | --- | --- | --- |
| Free (`free`) | free | 3 | 3000, replies included, per UTC calendar month |
| Unlimited (`pro`) | 9 USD a month per account | no plan limit | no cap |
| Enterprise (`enterprise`) | by arrangement | no plan limit | no cap |

A plan limit answers `402 plan_limit_reached` with `scope` (`inboxes`, `account` or `domains`), `plan`, `limit` and `used`; the monthly cap's refusal adds `resetsAt`, the first instant of the next UTC month. It is `402` rather than `429` so an agent can tell "upgrade" from "wait". A downgrade keeps the account's inboxes receiving, stops new ones being created and applies the monthly cap to the month's real usage.

`GET /v1/me` carries the account's plan and this month's usage, so an agent can see how close it is before a send is refused. For an account key or a console session it also carries `billing`, where the deployment takes payments: the subscription's status, whether it was canceled, and when the paid period ends.

## Limits

The limits below are the ones the API publishes about itself, under `x-doorman-limits` in [its OpenAPI document](https://api.doorman.fyi/openapi.json). The Worker enforces exactly these values; its tests fail when the two disagree. Sizes are in bytes and durations in milliseconds unless the name says otherwise.

> Note: Where a limit is reached, the API says so with a stable code rather than a bare status: `409 limit_reached` for the abuse ceilings (inboxes, custom domains, keys, endpoints, rules), `429 rate_limit_exceeded` with `Retry-After` for the send and assistant rate limits, `402 plan_limit_reached` for the plan's allowance, and `413 message_too_large` for a message over the size limit.

### oauth

| Limit | Value |
| --- | --- |
| `appsPerAccount` | `25` |
| `installsPerAccount` | `100` |
| `redirectUris` | `10` |
| `pendingPerClient` | `100` |
| `pendingGlobal` | `10000` |
| `dynamicClients` | `2000` |
| `dynamicClientTtlMs` | `2592000000` |
| `consentTtlMs` | `900000` |
| `codeTtlMs` | `60000` |
| `accessTtlMs` | `900000` |
| `refreshTtlMs` | `2592000000` |
| `refreshAbsoluteTtlMs` | `31536000000` |
| `requestBytes` | `16384` |
| `metadataClients` | `2000` |
| `metadataUrlLength` | `512` |
| `metadataBytes` | `8192` |
| `metadataTimeoutMs` | `5000` |
| `metadataFreshMs` | `86400000` |
| `metadataClientTtlMs` | `34560000000` |
| `metadataRedirectUris` | `20` |

### metadata

Scalar extension state on inboxes and threads. See [Metadata and thread labels](https://doorman.fyi/docs/sdk.md#metadata).

| Limit | Value |
| --- | --- |
| `maxKeys` | `20` |
| `maxKeyLength` | `64` |
| `maxBytes` | `2048` |

### labels

Unique, case-sensitive thread labels. See [Metadata and thread labels](https://doorman.fyi/docs/sdk.md#metadata).

| Limit | Value |
| --- | --- |
| `maxLabels` | `20` |
| `maxLength` | `64` |

### rules

Rules per inbox, ordered actions, matching and templates. See [Inbound rules](https://doorman.fyi/docs/rules.md).

| Limit | Value |
| --- | --- |
| `perInbox` | `25` |
| `maxActions` | `5` |
| `maxNameLength` | `100` |
| `maxSubjectMatchLength` | `200` |
| `maxTemplateLength` | `10000` |
| `maxOutboundActionsPerMessage` | `1` |

### inboxes

Mailbox names and display names, and the ceiling on active inboxes every plan shares. See [Issuing inboxes](https://doorman.fyi/docs/inboxes.md).

| Limit | Value |
| --- | --- |
| `mailboxNameMin` | `3` |
| `mailboxNameMax` | `30` |
| `reservedMailboxNames` | `abuse, account, accounts, admin, administrator, alerts, api, auth, billing, bounce, bounces, bugs, careers, ceo, cfo, clerk, cloudflare, community, compliance, contact, cto, customers, demo, dev, developers, devops, dkim, dmarc, dns, do-not-reply, docs, donotreply, doorman, email, engineering, enterprise, entri, feedback, finance, founder, founders, hello, help, helpdesk, hi, hostmaster, hr, identity, inbox, inboxes, info, infra, investors, invoice, invoices, jobs, legal, login, mail, mailer, mailer-daemon, marketing, mcp, media, news, newsletter, no-reply, noreply, notification, notifications, notify, oauth, official, onboarding, ops, owner, partners, partnerships, password, pay, payment, payments, payroll, postmaster, press, pricing, privacy, product, register, registration, resend, reset, root, sales, security, service, services, signin, signup, spf, sso, staff, status, support, sysadmin, system, team, terms, test, testing, theovex, trust, unsubscribe, update, updates, upgrade, user, users, vercel, verification, verified, verify, webhook, webhooks, webmaster, welcome, www` |
| `infrastructureMailboxNames` | `abuse, admin, administrator, api, bounce, bounces, dkim, dmarc, do-not-reply, donotreply, doorman, hostmaster, mailer-daemon, mcp, no-reply, noreply, postmaster, root, security, spf, sysadmin, webmaster, www` |
| `impersonationMailboxTokens` | `abuse, account, accounts, admin, administrator, alert, alerts, billing, bounce, bounces, care, ceo, cfo, compliance, contact, cto, daemon, finance, founder, founders, fraud, help, helpdesk, hr, info, invoice, invoices, legal, login, mailer, noreply, notification, notifications, notify, official, onboarding, password, payment, payments, payroll, postmaster, press, privacy, recovery, refund, refunds, sales, security, service, signin, staff, success, support, system, team, trust, update, updates, verification, verified, verify, welcome` |
| `roleFillerWords` | `center, centre, department, dept, desk, email, group, mail, my, office, our, the, your` |
| `companyClaimWords` | `admin, administrator, alerts, billing, ceo, cfo, compliance, cto, department, dept, employee, founder, founders, helpdesk, hr, legal, notifications, official, payroll, representative, safety, security, staff, support, team, trust, verification` |
| `protectedBrandStems` | `doorman, theovex` |
| `releasedAddressHoldMs` | `15552000000` |
| `releasedAddressWithServicesHoldMs` | `3153600000000` |
| `displayNameMax` | `100` |
| `signatureMax` | `1000` |
| `signatureHtmlMax` | `10000` |
| `activePerAccountCeiling` | `100` |

### services

Live outside services per inbox, field bounds, the 60-minute window for verification codes and links, and the wait ceiling. See [The passport](https://doorman.fyi/docs/passport.md).

| Limit | Value |
| --- | --- |
| `perInbox` | `500` |
| `nameMax` | `100` |
| `noteMax` | `500` |
| `planNameMax` | `100` |
| `planAmountMax` | `1000000000` |
| `verificationWindowMs` | `3600000` |
| `invitationWindowMs` | `1209600000` |
| `explanationWindowMs` | `900000` |
| `unexplainedAfterMs` | `120000` |
| `alertCooldownMs` | `3600000` |
| `alertsPerDay` | `20` |
| `maxWaitSeconds` | `20` |
| `maxVerifications` | `20` |
| `evidenceMax` | `20` |

### signIn

| Limit | Value |
| --- | --- |
| `linkTtlMs` | `300000` |
| `bindingTtlMs` | `300000` |
| `liveLinksPerInbox` | `5` |
| `startsPerMinute` | `10` |
| `requestTtlMs` | `900000` |
| `pendingPerClient` | `100` |
| `pendingGlobal` | `10000` |
| `codeTtlMs` | `60000` |
| `tokenTtlMs` | `600000` |
| `discoveryMaxAgeSeconds` | `300` |
| `clientsPerAccount` | `25` |
| `redirectUris` | `10` |
| `clientNameMax` | `100` |
| `metadataClients` | `2000` |
| `connectionsPerInbox` | `500` |
| `requestBytes` | `16384` |
| `proofBytes` | `8192` |
| `proofTimeoutMs` | `5000` |
| `scopes.openid` | `The agent's subject: a stable identifier for the address, and that it is an agent. Every sign-in carries it.` |
| `scopes.email` | `The address the agent signs in as, which the service can write to.` |
| `scopes.profile` | `The address's display name, and an identifier for its owner that is different at every service.` |
| `scopes.owner_profile` | `The name of the person or organization that owns the agent. Released only where the owner allowed it for that service.` |
| `scopes.owner_email` | `The owner's own email address. Released only where the owner allowed it for that service.` |

### keys

Active API keys per account and per inbox. See [Authentication and keys](https://doorman.fyi/docs/authentication.md).

| Limit | Value |
| --- | --- |
| `activePerAccount` | `20` |
| `activePerInbox` | `20` |

### domains

Custom domains per account, the least time between two verification checks, how long a domain that never verifies is kept, and how many may be added per window. See [Custom domains](https://doorman.fyi/docs/custom-domains.md).

| Limit | Value |
| --- | --- |
| `activePerAccountCeiling` | `50` |
| `nameMax` | `253` |
| `verifyIntervalMs` | `30000` |
| `unverifiedTtlMs` | `604800000` |
| `createsPerWindow` | `20` |
| `createWindowMs` | `86400000` |

### endpoints

Account webhook endpoints. See [Webhooks](https://doorman.fyi/docs/webhooks.md).

| Limit | Value |
| --- | --- |
| `perAccount` | `20` |

### pages

Every list that takes `limit` and `offset` or `cursor`.

| Limit | Value |
| --- | --- |
| `limitDefault` | `50` |
| `limitMax` | `100` |

### send

Per inbox unless stated; the monthly cap is the plan's. See [Sending and replying](https://doorman.fyi/docs/sending.md).

| Limit | Value |
| --- | --- |
| `perMinute` | `10` |
| `perDay` | `200` |
| `sharedDomainAccountPerDay` | `500` |
| `newAccountSharedDomainPerDay` | `20` |
| `warmUpMs` | `604800000` |
| `maxRecipients` | `50` |
| `maxAttachments` | `32` |
| `maxMessageBytes` | `26214400` |
| `maxSubjectCharacters` | `998` |
| `maxBodyCharacters` | `2000000` |
| `idempotencyTtlMs` | `86400000` |

### webhooks

The delivery timeout, the seconds before each retry and the attempt budget. See [Webhooks](https://doorman.fyi/docs/webhooks.md).

| Limit | Value |
| --- | --- |
| `timeoutMs` | `15000` |
| `retrySeconds` | `30, 60, 120, 240` |
| `attempts` | `5` |

### stream

Connections, frames and replay on the WebSocket. See [The WebSocket stream](https://doorman.fyi/docs/stream.md).

| Limit | Value |
| --- | --- |
| `connectionsPerAccount` | `10` |
| `messagesPerWindow` | `30` |
| `windowMs` | `10000` |
| `replayMax` | `100` |
| `maxInboxFilters` | `32` |
| `closeCodes.unauthorized` | `4001` |
| `closeCodes.connectionLimit` | `4008` |
| `closeCodes.rateLimit` | `4029` |

### metrics

The widest ranges a metrics query may ask for, in days. See [Metrics and overview](https://doorman.fyi/docs/metrics.md).

| Limit | Value |
| --- | --- |
| `maxRangeDays` | `90` |
| `maxHourRangeDays` | `7` |
| `defaultRangeDays` | `7` |

### security

Risk level score floors, protection presets, sender-rule ceilings, earned-standing thresholds and preview limits. See [Security and sender trust](https://doorman.fyi/docs/security.md).

| Limit | Value |
| --- | --- |
| `levelFloors.low` | `0` |
| `levelFloors.medium` | `30` |
| `levelFloors.high` | `60` |
| `levelFloors.critical` | `85` |
| `defaultLevel` | `balanced` |
| `presets.relaxed.warnAt` | `60` |
| `presets.relaxed.holdAt` | `null` |
| `presets.relaxed.holdUnauthenticatedNewSenders` | `false` |
| `presets.relaxed.replyGuard` | `false` |
| `presets.relaxed.recipients` | `any` |
| `presets.relaxed.unscannable` | `deliver` |
| `presets.balanced.warnAt` | `60` |
| `presets.balanced.holdAt` | `85` |
| `presets.balanced.holdUnauthenticatedNewSenders` | `false` |
| `presets.balanced.replyGuard` | `true` |
| `presets.balanced.recipients` | `any` |
| `presets.balanced.unscannable` | `warn` |
| `presets.strict.warnAt` | `30` |
| `presets.strict.holdAt` | `60` |
| `presets.strict.holdUnauthenticatedNewSenders` | `true` |
| `presets.strict.replyGuard` | `true` |
| `presets.strict.recipients` | `known` |
| `presets.strict.unscannable` | `hold` |
| `senderRulesPerAccount` | `2000` |
| `maxReasons` | `12` |
| `knownAfterMessages` | `3` |
| `knownAfterMs` | `604800000` |
| `previewMaxCharacters` | `20000` |

### assistant

Ask Doorman, the console's assistant, which API keys cannot call.

| Limit | Value |
| --- | --- |
| `turnsPerWindow` | `30` |
| `windowMs` | `300000` |
| `maxMessages` | `40` |

## Error codes

Every error answer is JSON with a stable `error` code and a `message` sentence for a person or a log. Some codes add fields: `scope`, `plan`, `limit`, `used` and `resetsAt` on the plan and rate limits, `providerCode` on a send the provider refused, `permission` on a refusal for a member's role in an organization. A code keeps its meaning everywhere it appears; the reference lists the codes each operation can answer.

not_found:
```json
{
  "error": "not_found",
  "message": "Inbox not found."
}
```

plan_limit_reached:
```json
{
  "error": "plan_limit_reached",
  "message": "The Free plan includes 3 inboxes. Upgrade to create more.",
  "scope": "inboxes",
  "plan": "free",
  "limit": 3,
  "used": 3
}
```

rate_limit_exceeded:
```json
{
  "error": "rate_limit_exceeded",
  "message": "Max 10 sends per minute per inbox.",
  "scope": "inbox",
  "limit": 10,
  "resetsAt": "2026-11-05T10:06:00.000Z"
}
```

permission_denied:
```json
{
  "error": "permission_denied",
  "message": "Your role in this organization cannot mint or revoke API keys. Ask one of its admins.",
  "permission": "keys:manage"
}
```

| Status | Code | Meaning |
| --- | --- | --- |
| 400 | `validation_error` | A field is missing or invalid; the message names it. |
| 400 | `invalid_json` | The request body is not JSON. |
| 400 | `invalid_form` | The multipart body could not be parsed. |
| 400 | `recipient_suppressed` | A recipient previously bounced or complained and is suppressed. |
| 400 | `send_rejected` | The sending provider rejected the message; `providerCode` carries its reason. |
| 400 | `webhook_rejected` | The identity provider's webhook signature could not be verified. |
| 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. |
| 402 | `plan_limit_reached` | The plan's allowance is used up; `scope` says whether it is the inbox count, the monthly sends or the custom domains. Upgrade rather than wait. |
| 402 | `seat_required` | The organization has no seat free for another person. `seats` is how many its subscription pays for, or null when it has no Teams subscription yet; `used` is how many are held by members and open invitations; `seatPriceUsd` is what one more costs a month. Someone who may manage billing can start the Teams plan or add a seat. |
| 402 | `payment_failed` | The payment provider could not charge for the change, so nothing was changed. The card on file can be replaced in the billing portal. |
| 403 | `forbidden` | The key is scoped to one inbox and cannot manage inboxes, keys or webhooks, or cannot read account-wide data. |
| 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. |
| 403 | `organization_required` | The operation acts on an organization, and the session is in a personal account. Switch to the organization first. |
| 403 | `owner_required` | Only an owner of the organization may make someone an owner, invite an owner or change an owner's role. |
| 403 | `insufficient_scope` | The app's token lacks a required scope, or the operation cannot be delegated. |
| 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 | `account_suspended` | The account is suspended. |
| 403 | `account_deleted` | The account was deleted. |
| 403 | `inbox_suspended` | The inbox cannot send, or start a sign-in, at the moment. |
| 403 | `recipient_not_permitted` | A recipient is not permitted for this deployment. |
| 403 | `risk_blocked` | The send or the download was refused; `guard` says why: `reply` when the thread holds a flagged message whose sender is not trusted, `recipient` when a recipient is not one the inbox knows, `content` when an attachment did not pass the check of its bytes (`reasons` lists what was found), `guardrail` when a healthcare guardrail found what may not be sent (`entities` lists the kinds). For `reply` and `recipient` a person can send from the console, mark the message safe or trust the sender. For `content`, a program or a file dressed as another kind is refused for every caller; a locked or damaged file, a script, or a document with macros, is refused for keys and app tokens only. A link that delivered harmful software when it was opened in isolation is refused for every caller. |
| 403 | `baa_required` | Changing healthcare guardrails needs a business associate agreement in force. `baa` says what is missing: `plan_required` when the account is not an organization on the Teams plan or on the enterprise plan, `not_signed` when nobody signed, `reacceptance_required` when the agreement's text changed since. Someone who may manage compliance signs it in the console. |
| 403 | `guardrail_blocked` | A healthcare guardrail keeps this content from keys and apps: the original message, its HTML body or an attachment's bytes carry what the account's guardrails redact, and bytes cannot be redacted. `entities` lists the kinds that were found, never the text. The message's text is available with the findings replaced; a person with `phi:read` reads the original in the console. |
| 404 | `not_found` | No such resource for this caller, or no such route. |
| 404 | `thread_not_found` | The thread does not exist, belongs to another inbox or was trashed. |
| 405 | `method_not_allowed` | The MCP endpoint takes POST only: it is stateless, with no stream to open and no session to end. |
| 409 | `already_exists` | The mailbox name or the `externalId` is already in use (`field` says which), or another account holds the custom domain, here or at the mail transport. |
| 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 | `no_webhook` | The inbox has no webhook to rotate a secret for. |
| 409 | `delivery_pending` | The delivery is already queued; wait for the attempt to finish. |
| 409 | `idempotency_in_progress` | A request with this Idempotency-Key is still being processed. |
| 409 | `not_suspended` | The account is not suspended. |
| 409 | `already_subscribed` | The account is already on a paid plan, so there is nothing to check out. |
| 409 | `no_subscription` | The account has never paid through the payment provider, so there is no billing to manage; or, where seats are changed, it has no Teams subscription that is active. |
| 409 | `seat_change_pending` | Another change to the organization's seats is still being made at the payment provider. Try again in a moment. |
| 409 | `seats_in_use` | The organization holds more seats than the number asked for: `used` says how many. Remove a member or take an invitation back 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. |
| 409 | `last_owner` | The member is the organization's only active owner. Make someone else an owner first. |
| 409 | `already_member` | The invited address already belongs to a member of the organization. |
| 409 | `already_invited` | The address already has an open invitation to the organization. Take it back first, or send it again. |
| 409 | `organization_not_empty` | The organization's account has been used, or an account was already moved into the organization, so another account cannot be moved in. Used means that an inbox, key, domain or app was created in it, even one since deleted, that it has a webhook endpoint, or that the operator changed it. |
| 409 | `domain_not_verified` | The custom domain has not verified its required DNS records. |
| 409 | `host_proof_failed` | The relying party's host did not serve the proof file it was given; the message says what was found instead. Publish the file and verify again. |
| 413 | `message_too_large` | The message exceeds the size limit, including attachments. |
| 422 | `idempotency_key_reused` | This Idempotency-Key was already used for a different request. |
| 426 | `upgrade_required` | The stream needs a WebSocket upgrade. |
| 429 | `rate_limit_exceeded` | A per-inbox or per-account rate limit; `Retry-After` and `resetsAt` say when to try again. |
| 429 | `provider_rate_limited` | The sending provider is rate limiting this deployment. |
| 500 | `internal_error` | Something went wrong on the server. |
| 502 | `send_failed` | The sending provider did not accept or could not deliver the message; `providerCode` carries its reason. |
| 502 | `provider_unavailable` | The mail transport, the DNS setup provider or the payment provider did not answer, or refused this deployment's credentials. |
| 503 | `sending_paused` | Sending is paused for this deployment pending review. |
| 503 | `sending_unavailable` | The inbox domain is not onboarded for sending, or sending is not configured. |
| 503 | `scan_unavailable` | The malware engine did not answer in time, so an attachment could not be checked and nothing was sent. Try again after `Retry-After`; an `Idempotency-Key` makes the retry safe. |
| 503 | `assistant_unavailable` | The assistant is not configured for this deployment. |
| 503 | `custom_domains_unavailable` | The custom-domain mail transport and inbound webhook are not fully configured. |
| 503 | `connect_unavailable` | Automatic DNS setup is not configured; publish the records manually. |
| 503 | `push_unavailable` | Notifications are not configured for this deployment. |
| 503 | `queue_unavailable` | The inbound event could not be queued; retry the signed webhook. |

[Errors](https://doorman.fyi/docs/errors.md) has what to do about each status, what is safe to send again, and how each SDK, the command line and the MCP server report an error.

The universal codes an operation can answer whatever it does: `401` for a credential problem, `403 account_suspended` and `account_deleted` for an account that is no longer active, and `500 internal_error` when something went wrong on the server. A `500` is safe to retry; a `4xx` is not until the request changes.

Two more come with [organizations](https://doorman.fyi/docs/organizations.md#errors). A console session acting in an organization is answered `403 permission_denied` when the member's role does not cover the operation. A request that names an account in `x-doorman-account` is answered `409 account_mismatch` when its credential acts for another one.

- `401 unauthorized`, `session_invalid`, `session_expired`, `session_claims_missing`: fix the credential.
- `403 forbidden` and `session_required`: the credential is fine, its scope is not.
- `403 permission_denied`: the member's role is not enough; `permission` names what is missing. `403 organization_required`: the session has to be working in an organization.
- `409`: the state is in the way (a taken name, a ceiling, a delivery already queued, a key still in flight, an account other than the one the request named).
- `429`: wait `Retry-After` seconds. `402`: upgrade.
- `5xx`: the server or the sending provider; retry with the same `Idempotency-Key`.
