---
title: "Documentation"
description: "Everything for building on Doorman Inbox: connect the agent you use, call the API, or write an agent that answers mail. Every page is also plain Markdown, for the agent you work with."
url: https://doorman.fyi/docs
markdown: https://doorman.fyi/docs.md
area: "Guides"
section: "Get started"
---

# Documentation

Everything for building on Doorman Inbox: connect the agent you use, call the API, or write an agent that answers mail. Every page is also plain Markdown, for the agent you work with.

Source: https://doorman.fyi/docs

## Start here

- [Connect the agent you use](https://doorman.fyi/docs/connect.md): Give your agent one address, https://api.doorman.fyi/mcp, and approve it in the browser. Nothing to install and no key.
- [Call the API yourself](https://doorman.fyi/docs/quickstart.md): A key, an inbox, a message read and a reply sent, with curl. The same calls in TypeScript and Python are one page on.
- [Build an agent that answers mail](https://doorman.fyi/docs/agent.md): Handlers that run when mail arrives, over a webhook, the stream or a poll, with replies that do not loop.

New to the product? [Introduction](https://doorman.fyi/docs/introduction.md) has what Doorman Inbox is and the few nouns the API uses.

## Guides

- [Inboxes, receiving and sending](https://doorman.fyi/docs/inboxes.md): Issue an address, read threads and attachments, send and reply.
- [Webhooks, events and the stream](https://doorman.fyi/docs/webhooks.md): Three ways to learn that something arrived, with the same payload in each.
- [Rules, security and the passport](https://doorman.fyi/docs/rules.md): What acts on mail without your code, what is held back, and how an address signs up and signs in.
- [Keys, apps and OAuth](https://doorman.fyi/docs/authentication.md): API keys for your own code, and consent for an app that acts for someone else.
- [Pagination, idempotency and errors](https://doorman.fyi/docs/errors.md): What holds on every surface: how lists page, how a retry stays safe, how a failure is reported.
- [Limits and versioning](https://doorman.fyi/docs/limits.md): The plans, every limit the API enforces, and what may change without notice.

Working with a team? [Organizations](https://doorman.fyi/docs/organizations.md) has how an account is shared among its members, the roles, and what each may do.

## SDKs and tools

Each has a guide and a reference of every method, tool or command, linked to the operation it sends.

- [TypeScript SDK](https://doorman.fyi/docs/sdk.md): One typed client that mirrors the operation ids, with page iterators, the stream and webhook verification.
- [Python SDK](https://doorman.fyi/docs/python.md): The generated synchronous client for Python 3.11 and later, with typed dictionaries.
- [MCP server](https://doorman.fyi/docs/mcp.md): 78 tools derived from the contract, at one address or embedded in your own server.
- [Command line](https://doorman.fyi/docs/cli.md): The doorman command: sign in through the browser, run any operation, tail events.
- [Agent runtime](https://doorman.fyi/docs/agent.md): Typed event handlers with deduplication, guarded replies and mail fenced for a model.
- [Sample integration](https://doorman.fyi/docs/sample.md): Three complete programs: a front desk agent, an app a person connects, and a Python digest.

## API reference

- [Every operation](https://doorman.fyi/docs/reference.md): All 84 operations of the public surface and the console's, with parameters, schemas, errors and samples.
- [Schemas](https://doorman.fyi/docs/reference/schemas.md): Every object the operations send or receive, with its fields, types and an example.
- [Methods, tools and commands](https://doorman.fyi/docs/sdk/reference.md): The same operations as the TypeScript client, the Python client, MCP tools and commands.

## For the agent you work with

These pages are written to be read by a program as well as a person. Nothing here needs a browser.

- Any page as Markdown: Add `.md` to a page's address, or ask for it with the header `Accept: text/markdown`. The `Copy page` button at the top of every page copies the same text. Links inside a Markdown page lead to other Markdown pages.
- An index of every page: [llms.txt](https://doorman.fyi/llms.txt) lists every page by area and topic with one line each. `/docs/index.json` is the same list for a program, down to the sections of each page.
- Search without a browser: `/docs/search.json` is the data the search on this site runs on: every page, section, operation, tool, command, method and schema, each with its address.
- Everything at once: [llms-full.txt](https://doorman.fyi/llms-full.txt) is the whole documentation in one file. `/llms/guides.txt`, `/llms/tools.txt` and `/llms/reference.txt` are one area each, for when the whole is more than is needed.
- The contract itself: The API serves its own OpenAPI 3.1 document at `https://api.doorman.fyi/openapi.json`, with its limits and its error catalogue.
