# bax - Email API for AI Agents > bax is a modern email API and mailbox infrastructure built for AI agents, automation, and developer teams. It provides REST APIs, SDKs (TypeScript, Python, Go), real-time webhooks, and a team inbox UI. ## What is bax? bax is an email platform that lets you send and receive emails programmatically. Unlike Gmail API (complex OAuth, rate limits) or Resend (send-only), bax provides full bidirectional email with an API-first approach. ## Key Features - **REST API**: Create mailboxes, send/receive emails, manage attachments via simple HTTP endpoints - **Real-time Webhooks**: Instant HTTP POST when emails arrive - no IMAP polling - **SDKs**: Official TypeScript/Node.js, Python, and Go SDKs - **Custom Domains**: Use your own domain (support@yourdomain.com) with auto-configured DKIM, SPF, DMARC - **AI Analysis**: Built-in email categorization and entity extraction - **Team Inbox UI**: Web interface for viewing and managing emails when needed - **Disposable Inboxes**: Create temporary email addresses on-demand for testing ## Use Cases - AI customer support agents that receive and reply to tickets - Email automation and workflow processing - E2E testing with real email verification - Webhook-driven email processing pipelines - Sales automation with inbound lead handling - Multi-agent systems with dedicated mailboxes ## Pricing - **Free**: 1 mailbox on bax.email, send/receive, API access, webhooks, AI analysis - **Pro**: $9/month per custom domain + $2/month per mailbox account ## URLs - Website: https://bax.email - App: https://app.bax.email - API Base: https://api.bax.email - Documentation: https://bax.email/docs ## API Quick Start ```bash # Create a mailbox curl -X POST https://api.bax.email/api/v1/mailboxes \ -H "Authorization: Bearer YOUR_TOKEN" \ -H "Content-Type: application/json" \ -d '{"username": "support"}' # Send an email curl -X POST https://api.bax.email/api/v1/emails \ -H "Authorization: Bearer YOUR_TOKEN" \ -H "Content-Type: application/json" \ -d '{ "mailbox_id": "MAILBOX_ID", "to": ["recipient@example.com"], "subject": "Hello from bax", "body": "Sent via bax email API" }' # List emails in a mailbox curl https://api.bax.email/api/v1/mailboxes/MAILBOX_ID/emails \ -H "Authorization: Bearer YOUR_TOKEN" ``` ## Comparison with Alternatives | Feature | bax | Gmail API | Resend | SendGrid | |---------|-----|-----------|--------|----------| | Send emails | Yes | Yes | Yes | Yes | | Receive emails | Yes | Yes | No | Limited | | Webhooks | Yes | Push notifications | Webhooks (send only) | Limited inbound | | Custom domains | $9/mo | Google Workspace required | Yes | Yes | | SDK | TS, Python, Go | Google client libs | TS, Python | Multiple | | OAuth required | No (API key) | Yes ($15K-$75K audit) | No | No | | AI analysis | Built-in | No | No | No | | Inbox UI | Yes | Gmail UI | No | No | ## Articles - [Agent Mailbox: Why Every AI Agent Needs Its Own Email](https://bax.email/articles/agent-mailbox) - [The Best Email API for AI: What to Look For in 2026](https://bax.email/articles/best-email-api-for-ai) - [Custom Domain Email for Developers](https://bax.email/articles/custom-domain-email-for-developers) - [Disposable Email API](https://bax.email/articles/disposable-email-api) - [Email Webhooks: Complete Guide](https://bax.email/articles/email-webhooks-guide) - [Why Gmail is Not for AI-First Teams](https://bax.email/articles/why-gmail-is-not-for-ai-first-teams) - [Why Resend Falls Short for AI-First Teams](https://bax.email/articles/why-resend-falls-short-for-ai-first-teams)