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.

On this page
  1. Plans
  2. Limits
  3. Error codes

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

PlanPriceActive inboxesSends per month
Free (free)free33000, replies included, per UTC calendar month
Unlimited (pro)9 USD a month per accountno plan limitno cap
Enterprise (enterprise)by arrangementno plan limitno 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. 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.

oauth

LimitValue
appsPerAccount25
installsPerAccount100
redirectUris10
pendingPerClient100
pendingGlobal10000
dynamicClients2000
dynamicClientTtlMs2592000000
consentTtlMs900000
codeTtlMs60000
accessTtlMs900000
refreshTtlMs2592000000
refreshAbsoluteTtlMs31536000000
requestBytes16384
metadataClients2000
metadataUrlLength512
metadataBytes8192
metadataTimeoutMs5000
metadataFreshMs86400000
metadataClientTtlMs34560000000
metadataRedirectUris20

metadata

Scalar extension state on inboxes and threads. See Metadata and thread labels.

LimitValue
maxKeys20
maxKeyLength64
maxBytes2048

labels

Unique, case-sensitive thread labels. See Metadata and thread labels.

LimitValue
maxLabels20
maxLength64

rules

Rules per inbox, ordered actions, matching and templates. See Inbound rules.

LimitValue
perInbox25
maxActions5
maxNameLength100
maxSubjectMatchLength200
maxTemplateLength10000
maxOutboundActionsPerMessage1

inboxes

Mailbox names and display names, and the ceiling on active inboxes every plan shares. See Issuing inboxes.

LimitValue
mailboxNameMin3
mailboxNameMax30
reservedMailboxNamesabuse, 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
infrastructureMailboxNamesabuse, 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
impersonationMailboxTokensabuse, 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
roleFillerWordscenter, centre, department, dept, desk, email, group, mail, my, office, our, the, your
companyClaimWordsadmin, 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
protectedBrandStemsdoorman, theovex
releasedAddressHoldMs15552000000
releasedAddressWithServicesHoldMs3153600000000
displayNameMax100
signatureMax1000
signatureHtmlMax10000
activePerAccountCeiling100

services

Live outside services per inbox, field bounds, the 60-minute window for verification codes and links, and the wait ceiling. See The passport.

LimitValue
perInbox500
nameMax100
noteMax500
planNameMax100
planAmountMax1000000000
verificationWindowMs3600000
invitationWindowMs1209600000
explanationWindowMs900000
unexplainedAfterMs120000
alertCooldownMs3600000
alertsPerDay20
maxWaitSeconds20
maxVerifications20
evidenceMax20

signIn

LimitValue
linkTtlMs300000
bindingTtlMs300000
liveLinksPerInbox5
startsPerMinute10
requestTtlMs900000
pendingPerClient100
pendingGlobal10000
codeTtlMs60000
tokenTtlMs600000
discoveryMaxAgeSeconds300
clientsPerAccount25
redirectUris10
clientNameMax100
metadataClients2000
connectionsPerInbox500
requestBytes16384
proofBytes8192
proofTimeoutMs5000
scopes.openidThe agent's subject: a stable identifier for the address, and that it is an agent. Every sign-in carries it.
scopes.emailThe address the agent signs in as, which the service can write to.
scopes.profileThe address's display name, and an identifier for its owner that is different at every service.
scopes.owner_profileThe name of the person or organization that owns the agent. Released only where the owner allowed it for that service.
scopes.owner_emailThe 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.

LimitValue
activePerAccount20
activePerInbox20

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.

LimitValue
activePerAccountCeiling50
nameMax253
verifyIntervalMs30000
unverifiedTtlMs604800000
createsPerWindow20
createWindowMs86400000

endpoints

Account webhook endpoints. See Webhooks.

LimitValue
perAccount20

pages

Every list that takes limit and offset or cursor.

LimitValue
limitDefault50
limitMax100

send

Per inbox unless stated; the monthly cap is the plan's. See Sending and replying.

LimitValue
perMinute10
perDay200
sharedDomainAccountPerDay500
newAccountSharedDomainPerDay20
warmUpMs604800000
maxRecipients50
maxAttachments32
maxMessageBytes26214400
maxSubjectCharacters998
maxBodyCharacters2000000
idempotencyTtlMs86400000

webhooks

The delivery timeout, the seconds before each retry and the attempt budget. See Webhooks.

LimitValue
timeoutMs15000
retrySeconds30, 60, 120, 240
attempts5

stream

Connections, frames and replay on the WebSocket. See The WebSocket stream.

LimitValue
connectionsPerAccount10
messagesPerWindow30
windowMs10000
replayMax100
maxInboxFilters32
closeCodes.unauthorized4001
closeCodes.connectionLimit4008
closeCodes.rateLimit4029

metrics

The widest ranges a metrics query may ask for, in days. See Metrics and overview.

LimitValue
maxRangeDays90
maxHourRangeDays7
defaultRangeDays7

security

Risk level score floors, protection presets, sender-rule ceilings, earned-standing thresholds and preview limits. See Security and sender trust.

LimitValue
levelFloors.low0
levelFloors.medium30
levelFloors.high60
levelFloors.critical85
defaultLevelbalanced
presets.relaxed.warnAt60
presets.relaxed.holdAtnull
presets.relaxed.holdUnauthenticatedNewSendersfalse
presets.relaxed.replyGuardfalse
presets.relaxed.recipientsany
presets.relaxed.unscannabledeliver
presets.balanced.warnAt60
presets.balanced.holdAt85
presets.balanced.holdUnauthenticatedNewSendersfalse
presets.balanced.replyGuardtrue
presets.balanced.recipientsany
presets.balanced.unscannablewarn
presets.strict.warnAt30
presets.strict.holdAt60
presets.strict.holdUnauthenticatedNewSenderstrue
presets.strict.replyGuardtrue
presets.strict.recipientsknown
presets.strict.unscannablehold
senderRulesPerAccount2000
maxReasons12
knownAfterMessages3
knownAfterMs604800000
previewMaxCharacters20000

assistant

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

LimitValue
turnsPerWindow30
windowMs300000
maxMessages40

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.

{
  "error": "not_found",
  "message": "Inbox not found."
}
StatusCodeMeaning
400validation_errorA field is missing or invalid; the message names it.
400invalid_jsonThe request body is not JSON.
400invalid_formThe multipart body could not be parsed.
400recipient_suppressedA recipient previously bounced or complained and is suppressed.
400send_rejectedThe sending provider rejected the message; providerCode carries its reason.
400webhook_rejectedThe identity provider's webhook signature could not be verified.
401unauthorizedThe credential was missing, malformed, revoked or belongs to an inactive account.
401session_invalidThe console session token could not be verified.
401session_expiredThe console session token has expired.
401session_claims_missingThe session token does not carry a verified email address.
402plan_limit_reachedThe 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.
402seat_requiredThe 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.
402payment_failedThe payment provider could not charge for the change, so nothing was changed. The card on file can be replaced in the billing portal.
403forbiddenThe key is scoped to one inbox and cannot manage inboxes, keys or webhooks, or cannot read account-wide data.
403permission_deniedThe signed-in member's role in the organization lacks a permission the operation needs; permission names it. An admin of the organization can do it, or change the member's role.
403member_deactivatedThe signed-in person's access to the organization was deactivated, or they were removed from it. It holds from their next request, whatever their session token says. An admin of the organization can let a deactivated member in again.
403organization_requiredThe operation acts on an organization, and the session is in a personal account. Switch to the organization first.
403owner_requiredOnly an owner of the organization may make someone an owner, invite an owner or change an owner's role.
403insufficient_scopeThe app's token lacks a required scope, or the operation cannot be delegated.
403session_requiredAccount keys, developer apps, relying parties, installations, consent, approving a sign-in and the assistant require a console session. So does loosening the security policy, trusting a sender, releasing held mail, allowing a sign-in, letting agents sign in to new services alone or telling a service who owns an agent, unless the account allows its account keys to.
403account_suspendedThe account is suspended.
403account_deletedThe account was deleted.
403inbox_suspendedThe inbox cannot send, or start a sign-in, at the moment.
403recipient_not_permittedA recipient is not permitted for this deployment.
403risk_blockedThe 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.
403baa_requiredChanging 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.
403guardrail_blockedA 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.
404not_foundNo such resource for this caller, or no such route.
404thread_not_foundThe thread does not exist, belongs to another inbox or was trashed.
405method_not_allowedThe MCP endpoint takes POST only: it is stateless, with no stream to open and no session to end.
409already_existsThe 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.
409limit_reachedThe abuse ceiling for inboxes, custom domains, keys, endpoints, services, relying parties, the services an address signs in to, the sends an inbox has waiting for its owner or the invitations an organization has open; delete, revoke or decide one first.
409no_webhookThe inbox has no webhook to rotate a secret for.
409delivery_pendingThe delivery is already queued; wait for the attempt to finish.
409idempotency_in_progressA request with this Idempotency-Key is still being processed.
409not_suspendedThe account is not suspended.
409already_subscribedThe account is already on a paid plan, so there is nothing to check out.
409no_subscriptionThe 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.
409seat_change_pendingAnother change to the organization's seats is still being made at the payment provider. Try again in a moment.
409seats_in_useThe organization holds more seats than the number asked for: used says how many. Remove a member or take an invitation back first.
409account_mismatchThe request named another account in x-doorman-account than the one its credential acts for, as happens when the console's organization was switched in another tab. Reload and try again.
409last_ownerThe member is the organization's only active owner. Make someone else an owner first.
409already_memberThe invited address already belongs to a member of the organization.
409already_invitedThe address already has an open invitation to the organization. Take it back first, or send it again.
409organization_not_emptyThe 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.
409domain_not_verifiedThe custom domain has not verified its required DNS records.
409host_proof_failedThe 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.
413message_too_largeThe message exceeds the size limit, including attachments.
422idempotency_key_reusedThis Idempotency-Key was already used for a different request.
426upgrade_requiredThe stream needs a WebSocket upgrade.
429rate_limit_exceededA per-inbox or per-account rate limit; Retry-After and resetsAt say when to try again.
429provider_rate_limitedThe sending provider is rate limiting this deployment.
500internal_errorSomething went wrong on the server.
502send_failedThe sending provider did not accept or could not deliver the message; providerCode carries its reason.
502provider_unavailableThe mail transport, the DNS setup provider or the payment provider did not answer, or refused this deployment's credentials.
503sending_pausedSending is paused for this deployment pending review.
503sending_unavailableThe inbox domain is not onboarded for sending, or sending is not configured.
503scan_unavailableThe 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.
503assistant_unavailableThe assistant is not configured for this deployment.
503custom_domains_unavailableThe custom-domain mail transport and inbound webhook are not fully configured.
503connect_unavailableAutomatic DNS setup is not configured; publish the records manually.
503push_unavailableNotifications are not configured for this deployment.
503queue_unavailableThe inbound event could not be queued; retry the signed webhook.

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

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