Skip to content

For AI Agents

Email API for AI agents: give every agent its own inbox

Create each agent's address on your own domain with one POST /inboxes call, receive every reply as a signed email.inbound.received webhook event, and answer in the same thread with POST /outbound-emails. One REST API, TypeScript and Python SDKs, and a hosted MCP server. Free plan: 6,000 emails a month.

Last updated November 25, 2026

Start here

The agent email loop in three calls

  • Create the address: POST /inboxes with {"domain_id": "…", "name": "agent"} on a verified domain answers the inbox id and full_email. SDKs: client.inboxes.create().
  • Receive the reply: every message to the address reaches your webhook as a signed email.inbound.received event with email_id, inbox_id, from_email, subject and body_preview. GET /inbound-emails/{email_id} returns the full body.
  • Answer in the thread: POST /outbound-emails from the same inbox with the message's thread_id and in_reply_to.

Price. The Free plan includes 6,000 emails a month (200 a day) with no card; the catalog lists no custom-domain allowance on Free. Developer: $5 a month ($48 a year) for 10 domains with 10 inboxes each and 50,000 emails a month. About 1,000 inboxes fit on Startup at $50 a month (300 domains, 300 inboxes per domain, 300,000 emails a month); no plan charges per inbox. Live numbers are on pricing. Receive-and-reply handlers: Python (FastAPI) and Node.js (Express).

Built for agents

Everything a working AI agent needs for email

Two-way email primitives

Send outbound email and receive inbound email through a single API. The inbound event tells your agent a message arrived; GET /inbound-emails/{email_id} returns the parsed text and HTML bodies, headers, and attachments with signed download URLs, ready to process without MIME parsing.

An inbox per agent

Each agent gets its own inbox on your verified domain, created with one POST /inboxes call, so its address, sent mail, replies and threads stay separate from every other agent's.

Signed webhook events

14 event types delivered to your endpoint, each signed with HMAC-SHA256 in the X-Webhook-Signature header. Your agent can verify and act on delivery, open, click, bounce, complaint, and email.inbound.received events without polling.

Programmatic domain verification

Agents can provision new sending domains and verify them via API. SPF, DKIM, DMARC, and MAIL FROM records returned as structured data. No manual DNS copy-paste.

Framework-agnostic

Works with LangChain, CrewAI, AutoGen, Claude Agent SDK, and any agent framework that can make HTTP requests. TypeScript and Python SDKs map directly to tool-calling patterns.

MCP-compatible

Bavimail runs a hosted MCP server at https://mcp.bavimail.com/ (OAuth or API key) with tools for inboxes, sending, inbound mail and threads. A local @bavimail/mcp-server npm package covers stdio-only hosts.

Compare

See how Bavimail compares

Also for your team

Bavimail for every builder

FAQ

Common questions about agent email

Can AI agents send and receive email through Bavimail?

Yes. Bavimail is designed for two-way programmatic email. Agents send with POST /outbound-emails or the SDK, and each reply reaches a signed webhook as an email.inbound.received event; GET /inbound-emails/{email_id} returns the parsed text and HTML bodies, headers, and attachments with signed download URLs.

Does Bavimail work with MCP (Model Context Protocol)?

Yes. Bavimail runs a hosted MCP server at https://mcp.bavimail.com/ that MCP hosts connect to with OAuth or an API key, with tools for inboxes, sending, inbound mail and threads. A local @bavimail/mcp-server npm package covers hosts that only launch local processes. See /docs/mcp.

Can each AI agent have its own dedicated email identity?

Yes. Each agent gets its own inbox on a verified domain, created with one POST /inboxes call, with its own address, sent mail and threads. Plans cap inboxes per domain: 10 on Developer, 300 on Startup and 1,000 on Scale; the catalog lists no custom-domain allowance on Free.

How does Bavimail handle email that an agent needs to act on?

Bavimail posts a signed email.inbound.received event to your webhook with the sender, subject, a body preview and the attachment count. Your agent fetches GET /inbound-emails/{email_id} for the parsed bodies, headers and signed attachment URLs, then answers in the same thread with POST /outbound-emails and the message's thread_id. No IMAP polling, no mail parsing library required.

How does Bavimail compare to AgentMail for AI agent workflows?

Both platforms support programmatic send and receive for AI agents. Bavimail is significantly cheaper at most volume tiers and includes deeper operational tooling (suppression lists, deliverability dashboard, domain reputation). See the full comparison at /compare/agentmail.

More

Keep exploring

Features

Docs

Compare