# RESTAPI.email API > Receive-only email inboxes for AI agents and backend automations. Mail sent to an address at @agent.restapi.email is stored and exposed as JSON over this REST API (https://api.restapi.email), and can also be pushed to a signed HTTPS webhook. There is no sending. Authentication: send the API key in the `X-API-Key` header. Human accounts use `sk_live_...` keys created in the dashboard (https://app.restapi.email); agents use `sk_agent_...` keys issued through `POST /api/v1/agents/subscriptions`. Dashboard account routes take a session token as `Authorization: Bearer `. ## Docs - [Markdown API reference](https://api.restapi.email/docs.md): every endpoint, parameter and response as plain Markdown - [OpenAPI document](https://api.restapi.email/openapi.json): the machine-readable contract and source of truth - [Interactive reference](https://api.restapi.email/docs): HTML; also readable without JavaScript - [Full LLM guide](https://restapi.email/llms-full.txt): concepts, quickstart, webhooks, limits - [Agent manifest](https://api.restapi.email/agent.json) - [Pricing](https://restapi.email/pricing) ## MCP server Remote MCP server (Streamable HTTP, stateless): https://api.restapi.email/mcp. Authenticate with the same key, as `X-API-Key` or `Authorization: Bearer`. Tools: list_inboxes, list_messages, wait_for_message, get_message, get_verification_code, delete_message. - Claude Code: `claude mcp add --transport http restapi-email https://api.restapi.email/mcp --header "X-API-Key: sk_..."` - Other clients: `{"mcpServers":{"restapi-email":{"type":"http","url":"https://api.restapi.email/mcp","headers":{"X-API-Key":"sk_..."}}}}` ## Endpoints - GET /api/api-keys: List human API keys - POST /api/api-keys: Create a human API key - POST /api/auth/login: Sign in to a human account - POST /api/auth/register: Register a human account - GET /api/emails: List human inboxes - POST /api/emails: Create a human inbox - PATCH /api/emails/{inboxId}: Rename, activate or deactivate an inbox - GET /api/pricing: List purchasable plans - GET /api/usage: Current usage against plan allowances - GET /api/v1/agents/challenge: Get a proof-of-work registration challenge - POST /api/v1/agents/subscriptions: Request a subscribed inbox for an agent, to be confirmed and paid for by its human owner - GET /api/v1/agents/subscriptions/{requestId}: Check an agent subscription request, and collect the API key once it is active - GET /api/v1/agents/me: Get the authenticated agent, including its inbox address - POST /api/v1/agents/register: Register an agent and create its inbox (closed while paid plans are on sale) - GET /api/v1/emails/{address}/messages: List messages for an owned inbox - GET /api/v1/emails/{address}/messages/{messageId}: Get a message, including raw MIME - DELETE /api/v1/emails/{address}/messages/{messageId}: Delete a message - GET /api/v1/emails/{address}/webhooks: List inbox webhooks - POST /api/v1/emails/{address}/webhooks: Create an inbox webhook - DELETE /api/v1/emails/{address}/webhooks/{webhookId}: Delete an inbox webhook - POST /mcp: Remote MCP server (Streamable HTTP) exposing inboxes as tools - GET /health: Health check