Start here
The agent email loop in three calls
- Create the address:
POST /inboxeswith{"domain_id": "…", "name": "agent"}on a verified domain answers the inboxidandfull_email. SDKs:client.inboxes.create(). - Receive the reply: every message to the address reaches your webhook as a signed
email.inbound.receivedevent withemail_id,inbox_id,from_email,subjectandbody_preview.GET /inbound-emails/{email_id}returns the full body. - Answer in the thread:
POST /outbound-emailsfrom the same inbox with the message'sthread_idandin_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
Bavimail vs AgentMail
AgentMail is purpose-built for agents. Bavimail offers the same core capabilities at 80% lower cost with deeper operational tooling.
Learn more
Bavimail vs Resend
Resend is outbound-only. Bavimail adds inbound email and two-way agent workflows at a lower entry price.
Learn more
Bavimail vs SendGrid
SendGrid is an enterprise suite. Bavimail is a focused API-first platform that ships faster for agent use cases.
Learn more
Bavimail vs Postmark
Postmark is transactional-only with a $15 floor. Bavimail handles both transactional and agent workflows starting at $0 with inbound on every paid plan.
Learn more
Bavimail vs Mailgun
Mailgun's free tier caps at 100 emails per day (~3,100/mo). Bavimail's 6,000/mo free tier with 200/day cap covers ~60% more monthly volume for test agents.
Learn more
Bavimail vs Amazon SES
SES inbound goes through Receipt Rules + Lambda/S3/SNS depending on the action wired up. Bavimail receives inbound on a single signed webhook with parsed body, headers, and attachment URLs.
Learn more
Bavimail vs Cloudflare Email Service
Cloudflare ships an Agentic Inbox reference app with an MCP server, but requires Workers Paid and is in public beta. Bavimail provides inbox aliases and signed webhooks at a lower entry price with GA stability.
Learn more
Also for your team
Bavimail for every builder
Bavimail for Founders
Free tier, $5/mo Developer (or $48/yr, $4/mo equivalent), zero infrastructure. Most teams ship their first transactional email in 5 minutes.
Learn more
Bavimail for Developers
TypeScript and Python SDKs. Clean REST API. Full OpenAPI spec. First email under 10 lines.
Learn more
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
Transactional Email API
Send app email with batch sends, scheduling, analytics, and clean domain controls.
Inbound Email Processing
Receive email, parse content, capture attachments, and route inbound traffic to your app.
Email Webhooks
Verify signed webhook events for delivered, opened, clicked, bounced, and complaint workflows.
Domain Verification
Guide teams through SPF, DKIM, DMARC, MAIL FROM, and production-ready domain authentication.
Docs
Docs Overview
Start with the platform model, launch sequence, and production checklist.
API Reference
See the core resources for send, inbound, domains, analytics, and suppressions.
Webhook Docs
Learn the event model, signature verification flow, and retry patterns.
SDK Guides
Install the official TypeScript and Python clients with working examples.
Compare
Bavimail vs Resend
Compare pricing posture, inbound depth, domain tooling, and production workflows.
Bavimail vs SendGrid
See where Bavimail is simpler for modern developer teams and smaller production stacks.
Bavimail vs AgentMail
Compare AI agent email capabilities, pricing, and operational depth.
Bavimail vs Postmark
Strong deliverability without a $15 floor, and inbound included on every paid plan.
Bavimail vs Mailgun
No $15 floor, a higher monthly free allotment, and email validation bundled instead of paid separately.
Bavimail vs Amazon SES
A managed email platform with templates, suppression, and inbound included instead of raw AWS infrastructure plus engineering glue.
Bavimail vs Cloudflare Email Service
A platform-agnostic GA email API instead of a public-beta product that requires Workers Paid as a hard prerequisite.