# mailbot > Email API and MCP server for AI agents. Give an agent an inbox, send email, read replies in threads, and check the state of every message. API base: https://getmail.bot/v1. Auth: `Authorization: Bearer mb_...`. Guide pages are also available as Markdown at `https://getmail.bot/docs/.md`. The full machine-readable API contract is https://getmail.bot/openapi.json and the page index is https://getmail.bot/sitemap.xml. Notes for agents: - Prefer the MCP server (`npx mailbot-mcp`, env `MAILBOT_API_KEY`) when you run inside Claude Code, Cursor or Codex. - Do not report an email as delivered because the API accepted it. Check the message state. - If a call times out, read the message back before sending again. - Email ownership alone does not authorize sending. Recipient approval, trust, key, domain and delivery policy checks still apply. ## Getting Started - [Overview](https://getmail.bot/docs/) - [API Reference](https://getmail.bot/docs/api-reference) - [Audit Log](https://getmail.bot/docs/audit-log) - [Authentication](https://getmail.bot/docs/authentication) - [Compliance](https://getmail.bot/docs/compliance) - [Custom Domain Setup](https://getmail.bot/docs/custom-domain): Configure SPF, DKIM, and DMARC for your sending domain - [Errors](https://getmail.bot/docs/errors) - [Getting Started](https://getmail.bot/docs/getting-started) - [Inboxes API](https://getmail.bot/docs/inboxes-api) - [MCP Server](https://getmail.bot/docs/mcp-server) - [Messages API](https://getmail.bot/docs/messages-api) - [Node.js SDK](https://getmail.bot/docs/nodejs-sdk) - [Python SDK](https://getmail.bot/docs/python-sdk) - [Quick Start](https://getmail.bot/docs/quick-start): Send and receive your first threaded email quickly - [Rate Limits](https://getmail.bot/docs/rate-limits) - [Reliability & Observability](https://getmail.bot/docs/reliability): Standard webhook retries, event delivery and failure visibility - [Remote Connections](https://getmail.bot/docs/remote-connect): Remote MCP consent, grant revocation and unavailable states. - [Response Format](https://getmail.bot/docs/response-format) - [Security & Trust](https://getmail.bot/docs/security): Identity, delivery policy and tenant boundaries in mailbot. - [Thread Management](https://getmail.bot/docs/thread-management): How mailbot automatically threads email conversations - [Threading](https://getmail.bot/docs/threading) - [Webhooks](https://getmail.bot/docs/webhooks): Signed sent, received, delivery and engagement events with standard retries and replay on every plan. ## Concepts - [Reading a Send Failure](https://getmail.bot/docs/concepts/error-language): Every send failure answers the same five questions. What happened, where it stopped, whether a retry is safe, the request ID and one next action. - [Event Delivery Model](https://getmail.bot/docs/concepts/event-delivery-model): Supported webhook events, bounded retries, duplicate handling, and delivery limitations. - [Inboxes](https://getmail.bot/docs/concepts/inboxes-model): How mailbot models an inbox, what it isolates, and how it differs from a plain email address. - [Replay Mechanics](https://getmail.bot/docs/concepts/replay-mechanics): Signed failed-delivery recovery, legacy engagement replay, and recovery limits. - [Send Authorization](https://getmail.bot/docs/concepts/send-authorization): The ordered checks every outbound send passes, and the exact code returned when one of them says no - [Threads and Conversation Context](https://getmail.bot/docs/concepts/threads-conversation-context): How mailbot threads messages, preserves conversation context across replies, and what guarantees you can rely on. ## Guides - [Integrate with Claude Desktop via MCP](https://getmail.bot/docs/guides/claude-desktop-mcp): Wire mailbot to Claude Desktop using the Model Context Protocol so the assistant can send, read, and manage email directly. - [Set Up an Email QA Pipeline](https://getmail.bot/docs/guides/email-qa-pipeline): Create a test inbox, wait for incoming email through the API, and clean up after the test. - [Outbound with Engagement Awareness](https://getmail.bot/docs/guides/outbound-engagement): Send email and inspect recorded engagement through the API, with plan and tracking limitations. - [Build Support Automation](https://getmail.bot/docs/guides/support-automation): Receive a support notification, verify it, retrieve the message, and send an approved reply. ## API Reference - [Approve and dispatch a draft](https://getmail.bot/docs/api/approve-message): Approve and dispatch a draft - [Cancel a scheduled message](https://getmail.bot/docs/api/cancel-scheduled-message): Cancels a pending scheduled send by setting scheduled_error to cancelled. Repeating cancellation returns 200. Cancellation does not recall a message already handed to the provider; cancellation racing an active worker is not guaranteed. - [Cancel a scheduled message](https://getmail.bot/docs/api/cancel-scheduled-message-in-inbox): Cancels a pending scheduled send by setting scheduled_error to cancelled. Repeating cancellation returns 200. Cancellation does not recall a message already handed to the provider; cancellation racing an active worker is not guaranteed. - [Check domain compliance](https://getmail.bot/docs/api/check-compliance): Run a live DNS lookup for SPF, DKIM, DMARC, and MX records on a - [Create API key](https://getmail.bot/docs/api/create-api-key): Create API key - [Create custom domain](https://getmail.bot/docs/api/create-domain): Create custom domain - [Create inbox](https://getmail.bot/docs/api/create-inbox): Provision a new inbox. Sandbox inboxes get an address on `mailbot.id` - [Create webhook](https://getmail.bot/docs/api/create-webhook): Register a webhook destination on an inbox. mailbot will POST events - [Delete current account](https://getmail.bot/docs/api/delete-account): Delete current account - [Delete API key](https://getmail.bot/docs/api/delete-api-key): Delete API key - [Delete domain](https://getmail.bot/docs/api/delete-domain): Delete domain - [Disable inbox](https://getmail.bot/docs/api/delete-inbox): Soft-delete (disable) an inbox. The inbox can no longer send or - [Delete webhook](https://getmail.bot/docs/api/delete-webhook): Delete webhook - [Get current account](https://getmail.bot/docs/api/get-account): Get current account - [Get daily usage breakdown](https://getmail.bot/docs/api/get-daily-usage): Get daily usage breakdown - [Get domain](https://getmail.bot/docs/api/get-domain): Get domain - [Get engagement summary stats](https://getmail.bot/docs/api/get-engagement-stats): Roll-up engagement stats for an inbox: delivery rate, open rate, - [Get inbox](https://getmail.bot/docs/api/get-inbox): Fetch a single inbox by ID. Includes current usage, daily send limit, - [Get message](https://getmail.bot/docs/api/get-message): Get message - [Read an approval draft](https://getmail.bot/docs/api/get-message-approval): Read an approval draft - [Get engagement events for one message](https://getmail.bot/docs/api/get-message-engagement): Per-message engagement timeline: ordered list of every event on a - [Read durable message delivery history](https://getmail.bot/docs/api/get-message-status-history): Read durable message delivery history - [Get the public price and limit manifest](https://getmail.bot/docs/api/get-product-manifest): Get the public price and limit manifest - [Get inbox readiness score](https://getmail.bot/docs/api/get-readiness): Get the readiness score (0–100) for a custom domain. The score rolls - [Get thread](https://getmail.bot/docs/api/get-thread): Fetch a thread with its full ordered message history. Use this when - [Get usage summary](https://getmail.bot/docs/api/get-usage): Get usage summary - [Get webhook](https://getmail.bot/docs/api/get-webhook): Get webhook - [List API keys](https://getmail.bot/docs/api/list-api-keys): List API keys - [List audit log entries](https://getmail.bot/docs/api/list-audit-log): Audit log: every authentication event, inbox lifecycle change, - [List domains](https://getmail.bot/docs/api/list-domains): List domains - [List engagement events](https://getmail.bot/docs/api/list-engagement-events): List delivery and engagement events on an inbox: sent, delivered, - [List inboxes](https://getmail.bot/docs/api/list-inboxes): List inboxes on your account. Returns sandbox and custom-domain inboxes - [List messages awaiting approval](https://getmail.bot/docs/api/list-message-approvals): List messages awaiting approval - [List inbox messages](https://getmail.bot/docs/api/list-messages): List messages in an inbox. Filter by direction (`inbound` / - [List inbox threads](https://getmail.bot/docs/api/list-threads): List conversation threads in an inbox. A thread groups every message - [List webhooks](https://getmail.bot/docs/api/list-webhooks): List webhook destinations registered on an inbox. - [mailbot API](https://getmail.bot/docs/api/mailbot-api): mailbot API provides email API and MCP server for AI agents, including inbox lifecycle management, inbound and outbound messaging, webhook delivery, compliance checks, audit logs, and usage reporting. - [Reject a draft](https://getmail.bot/docs/api/reject-message): Reject a draft - [Reply to message](https://getmail.bot/docs/api/reply-message): Reply to an existing message. mailbot generates a new `Message-ID`, - [Request signup verification code](https://getmail.bot/docs/api/request-signup-code): Request signup verification code - [Reschedule a message](https://getmail.bot/docs/api/reschedule-message): Changes send_at to a future ISO timestamp with timezone offset. Clears the previous scheduled error, including cancelled, and enqueues the message again. A 503 means the new time was saved but queue insertion failed. Concurrent worker dispatch is not protected by a schedule revision in this version. - [Reschedule a message](https://getmail.bot/docs/api/reschedule-message-in-inbox): Changes send_at to a future ISO timestamp with timezone offset. Clears the previous scheduled error, including cancelled, and enqueues the message again. A 503 means the new time was saved but queue insertion failed. Concurrent worker dispatch is not protected by a schedule revision in this version. - [Rotate API key](https://getmail.bot/docs/api/rotate-api-key): Rotate API key - [Search messages](https://getmail.bot/docs/api/search-messages): Search messages - [Send message](https://getmail.bot/docs/api/send-message): Send an outbound message from an inbox. Supports plain text, HTML, - [Test webhook](https://getmail.bot/docs/api/test-webhook): Test webhook - [Update API key](https://getmail.bot/docs/api/update-api-key): Update API key - [Update inbox](https://getmail.bot/docs/api/update-inbox): Update inbox - [Update message labels](https://getmail.bot/docs/api/update-message-labels): Update message labels - [Update webhook](https://getmail.bot/docs/api/update-webhook): Update webhook - [Verify domain DNS](https://getmail.bot/docs/api/verify-domain): Re-run DNS verification for a custom domain. Use after publishing - [Verify signup code and create account](https://getmail.bot/docs/api/verify-signup-code): Verify signup code and create account ## Operations - [Deliverability Monitoring](https://getmail.bot/docs/operations/deliverability-monitoring): Monitor delivery rate, when to worry, and what to do at each threshold. - [Event Replay Troubleshooting](https://getmail.bot/docs/operations/event-replay-troubleshooting): Recover failed webhook deliveries through the API and verify the receiving system. - [Key Safeguards and Approvals](https://getmail.bot/docs/operations/key-safeguards): Per-key recipient lists, hourly and daily budgets, a stop switch and message approval. Available in the current release candidate, not yet deployed. - [Owner Notifications](https://getmail.bot/docs/operations/owner-notifications): Hourly scheduled-send failure digests, current account preferences and which other owner notices have an email template in this release candidate. - [Webhook Reliability](https://getmail.bot/docs/operations/webhook-reliability): Endpoint design, signature verification, retry handling, and how to debug failing deliveries. ## Changelog - [v1.0 Launch](https://getmail.bot/docs/changelog/v1-launch): mailbot v1.0 baseline. Send, receive, thread, track, and audit programmable email.