---
title: "Issuing inboxes"
description: "Addresses on the inbox domain: names, random names, display names, the one-call issue with a webhook and a key, your own externalId, plan limits, and deletion."
url: https://doorman.fyi/docs/inboxes
markdown: https://doorman.fyi/docs/inboxes.md
area: "Guides"
section: "Mail"
---

# Issuing inboxes

Addresses on the inbox domain: names, random names, display names, the one-call issue with a webhook and a key, your own externalId, plan limits, and deletion.

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

## Issuing an address

[`POST /v1/inboxes`](https://doorman.fyi/docs/reference/inboxes.md#inboxes-create) issues an address on `doorman.example` that receives mail as soon as the call returns. There are no DNS records to set and nothing to verify: the domain is the deployment's. Every field of the body is optional, so an empty body issues a random address.

curl:
```sh
curl -s -X POST "https://api.doorman.fyi/v1/inboxes" \
  -H "authorization: Bearer $DOORMAN_API_KEY" \
  -H "content-type: application/json" \
  -d '{
    "mailboxName": "concierge",
    "displayName": "Acme concierge"
  }'
```

The answer is `201` with the inbox: its `id`, the full `address`, the `mailboxName` and `domain` it is made of, the `displayName`, the `externalId`, the `webhookUrl` (null until one is set) and its `status`.

An address can also live on a domain you own: pass `domainId` with one of the account's verified domains. [Custom domains](https://doorman.fyi/docs/custom-domains.md) covers adding a domain, its DNS records and what differs for the inboxes on it.

In an [organization](https://doorman.fyi/docs/organizations.md#operations), issuing, changing and deleting an inbox from the console takes the member's `inboxes:manage`, and the [one-call issue](https://doorman.fyi/docs/inboxes.md#one-call) takes what a key and a webhook take as well. An account key is not held to a member's role.

## Mailbox names

A mailbox name is the part before the @. It is trimmed and lowercased before anything else, so `Concierge` and `concierge` name the same mailbox. It must be 3 to 30 characters of lowercase letters, digits, dots and hyphens, starting and ending with a letter or a digit, with no doubled dots. The exact pattern is `^[a-z0-9](?:[a-z0-9-]|\.(?=[a-z0-9]))*[a-z0-9]$`.

A name that does not fit answers `400 validation_error` and the message names the field. A name somebody else holds, or released in the last 180 days, answers `409 already_exists` with `field: "mailboxName"`. The shared domain is also the company's domain, so a customer inbox can never read as the company: these names are reserved and refused with `400 validation_error`.

Mail infrastructure, reserved everywhere:
```text
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
```

Role, company and provider accounts, reserved on the shared domain:
```text
account, accounts, alerts, auth, billing, bugs, careers, ceo, cfo, clerk, cloudflare, community, compliance, contact, cto, customers, demo, dev, developers, devops, dns, docs, email, engineering, enterprise, entri, feedback, finance, founder, founders, help, helpdesk, hello, hi, hr, identity, inbox, inboxes, info, infra, investors, invoice, invoices, jobs, legal, login, mail, mailer, marketing, media, news, newsletter, notification, notifications, notify, oauth, official, onboarding, ops, owner, partners, partnerships, password, pay, payment, payments, payroll, press, pricing, privacy, product, register, registration, resend, reset, sales, service, services, signin, signup, sso, staff, status, support, system, team, terms, test, testing, theovex, trust, unsubscribe, update, updates, upgrade, user, users, vercel, verification, verified, verify, webhook, webhooks, welcome
```

A name is also refused when one of its dot- or hyphen-separated labels is a role (`acme-support`, `billing.team`, `security-alerts`; the labels are 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), and when it carries the doorman or theovex brand or a lookalike of it (`doorman-bot`, `d00rman`, `the-o-vex`: separators, repeated letters and the usual digit substitutions are folded before the comparison).

A role is recognized however it is written: with digits before or after it or in place of its letters (`support1`, `supp0rt`), split over two labels (`no-reply`) or run together with other role words (`supportteam`). A word that only begins with a role, such as `supportive`, is a name like any other.

Leave `mailboxName` out and the API picks a random name that is free. That is the right choice for an inbox per job or per customer, where the address only has to be unique and the agent is told what it is.

## The display name

`displayName` is the sender name on outbound mail: a recipient sees `Acme concierge <concierge@doorman.example>`. It is at most 100 characters, needs at least one letter or digit, and may not contain `@`, `<`, `>`, a URL, control or invisible characters, or Latin mixed with Cyrillic or Greek letters, so an agent cannot be named like somebody else's address. It may not carry the doorman or theovex brand, and it may not be a bare role such as `Support`, `Billing team` or `IT help desk`: it has to say who the sender is (`Acme support` is fine). Change it with [`PATCH /v1/inboxes/{inboxId}`](https://doorman.fyi/docs/reference/inboxes.md#inboxes-update); null clears it. The address itself never changes.

## A ready-to-use inbox in one call

Pass `webhookUrl` and `key` with the body and the inbox comes back ready to use: the inbox webhook is set, an inbox-scoped key is minted, and the answer carries the webhook's signing secret and the key's token. Both are shown once; store them with the agent that will use them.

curl:
```sh
curl -s -X POST "https://api.doorman.fyi/v1/inboxes" \
  -H "authorization: Bearer $DOORMAN_API_KEY" \
  -H "content-type: application/json" \
  -d '{
    "externalId": "customer-8841",
    "webhookUrl": "https://agent.example.com/hooks/doorman",
    "key": {
      "name": "Acme concierge"
    }
  }'
```

201 Created:
```json
{
  "id": "inb_01jc4q7w9k2m5n8p3r6t1v4x7z",
  "address": "concierge@doorman.example",
  "mailboxName": "concierge",
  "domain": "doorman.example",
  "displayName": "Acme concierge",
  "externalId": "customer-8841",
  "metadata": {},
  "webhookUrl": "https://agent.example.com/hooks/doorman",
  "status": "active",
  "createdAt": "2026-11-05T10:05:00.000Z",
  "updatedAt": "2026-11-05T10:05:00.000Z",
  "webhook": {
    "url": "https://agent.example.com/hooks/doorman",
    "secret": "whsec_dGVzdC13ZWJob29rLXNpZ25pbmctc2VjcmV0LTAxMjM0NTY3ODk="
  },
  "key": {
    "id": "key_01jc5c0z9y8x7w6v5t4t3s2r1q",
    "inboxId": "inb_01jc4q7w9k2m5n8p3r6t1v4x7z",
    "name": "Acme concierge",
    "tokenPrefix": "dm_9f3abcd",
    "last4": "m2x8",
    "createdAt": "2026-11-05T10:05:00.000Z",
    "lastUsedAt": null,
    "token": "dm_9f3abcdefghjkmnpqrstvwxyz0123456789abcdefghjkmnpm2x8"
  }
}
```

`webhook.secret` verifies the deliveries to that URL ([Webhooks](https://doorman.fyi/docs/webhooks.md)); `key.token` is the credential the agent uses for everything about this inbox and nothing else ([Authentication and keys](https://doorman.fyi/docs/authentication.md)). An account that provisions an inbox per customer or per job needs no second call.

> Note: `webhookUrl` must be an https URL without credentials. Setting it again later with `PUT /v1/inboxes/{inboxId}/webhook` replaces the URL and mints a new secret.

## Your own identifier

`externalId` tags an inbox with an identifier of yours: a user id, a job, a tenant. It is at most 200 characters and unique among the account's active inboxes, so a second active inbox with the same value answers `409 already_exists`. A deleted inbox releases its `externalId` along with its address.

Find the inbox again with [`GET /v1/inboxes?externalId=`](https://doorman.fyi/docs/reference/inboxes.md#inboxes-list), which answers a page of at most one inbox:

curl:
```sh
curl -s "https://api.doorman.fyi/v1/inboxes?externalId=customer-8841" \
  -H "authorization: Bearer $DOORMAN_API_KEY"
```

Change or clear it with `PATCH /v1/inboxes/{inboxId}` and `{ "externalId": "..." }` or `{ "externalId": null }`.

## Listing and reading

[`GET /v1/inboxes`](https://doorman.fyi/docs/reference/inboxes.md#inboxes-list) lists the account's active inboxes, oldest first, with `limit` (50 by default, at most 100) and `offset`, and `total` across every page. `q` keeps the inboxes whose address or display name contains the text, case-insensitively. Each item adds `unreadThreads` and `lastMessageAt`, which the console shows beside the address. An inbox-scoped key sees its own inbox only.

[`GET /v1/inboxes/{inboxId}`](https://doorman.fyi/docs/reference/inboxes.md#inboxes-get) reads one inbox. An inbox key asking for another inbox gets `404 not_found`, not `403`: it is not told that the other inbox exists.

## Metadata and inbound rules

Use `metadata` on creation or update for bounded scalar-valued extension state, such as a customer id or review flag. Omission preserves it, a supplied object replaces it and `{}` clears it. Metadata is visible to readers of the inbox and is not a place for secrets. Threads have the same metadata plus exact-match labels; see [Metadata and thread labels](https://doorman.fyi/docs/sdk.md#metadata).

[`POST /v1/inboxes/{inboxId}/rules`](https://doorman.fyi/docs/reference/inboxes.md#inboxes-rules-create) creates an account-managed rule for inbound mail. The API supports label, auto-reply, plain-text forward and trash actions, with durable execution history and loop guards. [Inbound rules](https://doorman.fyi/docs/rules.md) explains matching, ordering, limits and uncertain sends.

## Plan limits and the ceiling

- Free plan: 3 active inboxes. Creating one more answers `402 plan_limit_reached` with `scope: "inboxes"`, the plan, the limit and how much of it is used. Delete an inbox to free its slot, or upgrade.
- Unlimited plan: No plan limit on inboxes, for 9 USD a month per account.
- Every plan: A ceiling of 100 active inboxes per account, so one account cannot hoard names on the shared domain; past it the call answers `409 limit_reached`. It is raised by hand on request.

A plan limit is `402`, not `429`, on purpose: an agent can tell "upgrade" from "wait". [Plans, limits and errors](https://doorman.fyi/docs/limits.md) has the whole picture.

## Deleting an inbox

[`DELETE /v1/inboxes/{inboxId}`](https://doorman.fyi/docs/reference/inboxes.md#inboxes-delete) answers `204` and does several things at once:

- releases the address and the `externalId`. The address stays held for your account for 180 days, or permanently when its [passport](https://doorman.fyi/docs/passport.md#address-hold) has live services: you may issue it again at once, anyone else asking for it gets `409 already_exists` while the hold lasts, so mail still arriving for it cannot be picked up by a stranger and outside accounts cannot be reset;
- revokes the inbox's keys and closes the stream connections they opened;
- removes the inbox webhook and stops every delivery for the inbox;
- records `inbox.deleted` for matching account endpoints and prevents remaining rule actions;
- frees the inbox's slot against the plan's allowance.

> Warning: Mail that arrives for a deleted address is rejected at the mail server as unknown, and a deleted inbox is never returned again. Its threads and messages stay stored until the retention sweep exists.

The example identifiers on this page, such as `inb_01jc4q7w9k2m5n8p3r6t1v4x7z`, are the contract's own and belong to no real inbox.
