2026-03-28
How to Give Your AI Agent Its Own Email Address [2026]
Why Your Agent Needs Its Own Email
When AI agents need to register for services, verify accounts, or communicate via email, sharing your personal inbox creates security risks and doesn’t scale. Your agent needs its own disposable, programmable email address.
Step 1: Get Your API Key
Visit agentsbase.net/login and create an account. You’ll receive an API key that looks like ak_xxx.... This key manages all your mailboxes.
Step 2: Create a Mailbox
curl -X POST https://agentsbase.net/api/register \
-H "Authorization: Bearer $AGENTSBASE_API_KEY" \
-H "Content-Type: application/json" -d '{}'
This creates a random address like swift-fox-1234@agentsbase.net and returns a mailbox token for sending and receiving.
Step 3: Send Your First Email
curl -X POST https://agentsbase.net/api/send \
-H "Authorization: Bearer $MAILBOX_TOKEN" \
-H "Content-Type: application/json" \
-d '{"from":"swift-fox-1234@agentsbase.net","to":["user@example.com"],"subject":"Hello from my agent","text":"This email was sent by an AI agent."}'
Step 4: Check the Inbox
curl -H "Authorization: Bearer $MAILBOX_TOKEN" \
"https://agentsbase.net/api/inbox?to=swift-fox-1234@agentsbase.net"
For Claude Code Users
The fastest integration is via MCP. Run this one command:
claude mcp add agentsbase-mcp -e AGENTSBASE_API_KEY=ak_xxx -- npx -y agentsbase-mcp
Now your Claude Code agent can create mailboxes, send emails, and extract verification codes natively.
Frequently Asked Questions
Do I need my own domain to give an agent an email?
No. agentsbase provides addresses on the agentsbase.net domain automatically, like swift-fox-1234@agentsbase.net. No DNS setup or domain purchase required.
Is it free to give my AI agent an email address?
Yes. The free tier includes 3 mailboxes, 500 sends, and 1,000 receives per month. No credit card required to get started.
Which AI agents are supported?
Any agent that can make HTTP requests works with the REST API. For Claude Code and Cursor, use the MCP server for native integration. LangChain, CrewAI, and AutoGen agents work via the SDK or API.