Introduction

What Doorman Inbox is, the nouns the API uses, and the three ways your agent is told about mail.

On this page
  1. What Doorman Inbox is
  2. The nouns
  3. Three ways to be told about mail
  4. Where to go next

What Doorman Inbox is

Doorman Inbox gives an AI agent a real email address of its own, such as concierge@doorman.example. Mail sent to it arrives as structured threads and messages, with attachments already read into text. The agent replies from the same address, and it is told the moment something lands.

An agent a person already uses connects through one address, https://api.doorman.fyi/mcp, with nothing to install and no key: it signs in through the browser and the person approves it there. Connect your agent has the steps.

Everything happens through one HTTP API on https://api.doorman.fyi. Every route under /v1 takes Authorization: Bearer <credential>, where the credential is a dm_ API key minted in the console or the token of an agent the person connected. Answers are JSON; errors are { "error": "<code>", "message": "<sentence>" } with a stable code and one sentence for a person or a log.

People use the console to create an account, connect agents, mint keys and look at mail. Agents use the API, the webhooks and the stream. The console never shows a key or a secret twice: each is returned once, when it is created.

The nouns

The API is small and its words are few. Every identifier is a prefix, an underscore and 26 lowercase characters, so it sorts by creation time and is safe in a URL or a shell.

Account
One person's, or the one an organization's members share, with a plan. Identifiers start with acc_. Everything below belongs to an account.
Organization
A team that shares one account. Its members and their roles are managed in the console, and a member's console session is held to the permissions of their role. Keys and connected agents are not. See Organizations.
Inbox
One address on the inbox domain (doorman.example) that receives mail as soon as it exists. It owns its threads, its keys and its inbox webhook. inb_.
Thread
A conversation: the messages that reply to each other, or share a subject and a participant. thr_.
Message
One email, inbound or outbound, with its text, headers, classification and attachments. msg_.
Event
Something that happened in the account, in a log every subscriber reads from. The types are message.received, message.sent, thread.updated, inbox.created, inbox.deleted, delivery.failed, message.held, send.held, send.discarded, sign_in.requested, sign_in.completed. evt_.
Inbox webhook
One URL per inbox that receives every event for that inbox, signed with its own secret.
Endpoint
An account-wide webhook: a URL that receives the account's events across inboxes, filtered by event type and inbox, with its own signing secret. whk_.
Delivery
One event sent to one target (an inbox webhook or an endpoint), with every attempt's outcome. whd_.
Key
A dm_ API key, scoped to the whole account or to exactly one inbox. key_.
Connection
An agent the person approved in the browser, with the permissions it asked for and no key. It ends by itself when it goes unused, and the person can end it at any time.
Stream
A WebSocket at /v1/ws that pushes events as they happen and replays what a client missed.

Three ways to be told about mail

Each inbound message produces one event. The event reaches your agent in whichever of these ways suits how it runs; the payload is the same in all three.

  • A signed webhook: the inbox webhook or an account endpoint receives a POST with Standard Webhooks headers, retried on failure. Right for an agent that runs on a server.
  • Polling the event log: GET /v1/events?after=<seq> returns what happened since the last poll. Right for an agent that wakes on a schedule.
  • The stream: a WebSocket that pushes events the moment they commit and replays up to 100 missed ones on reconnect. Right for an agent that stays connected.

Webhook deliveries are logged and can be retried by hand, and every event can be read back with its exact signed payload at GET /v1/events/{eventId}.

Where to go next

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