Disposable Email API
for AI Agents
Create inboxes, extract OTP codes in 15 languages, and receive webhooks — in 3 lines of code. Built for browser agents, QA testing, and automation.
$npm install sandmailimport { SandMail } from 'sandmail';
const client = new SandMail('sk_live_...');
const inbox = await client.createInbox();
const otp = await client.waitForOTP(inbox.email);
console.log(otp.code); // "847291"OTP arrives. You get the code.
Register a webhook and receive real-time notifications when emails arrive. The OTP is extracted automatically — your agent never waits, never polls, never parses HTML.
{
"event": "message.received",
"data": {
"recipient": "agent_x7k@tempyx.com",
"has_otp": true,
"otp": {
"code": "847291",
"confidence": "high",
"type": "numeric_6"
}
}
}Everything your agent needs
One API to create inboxes, receive emails, extract codes, and get notified. No SMTP config, no email parsing, no infrastructure.
Instant Inboxes
Create disposable email addresses on 7 domains via API. Inboxes auto-expire or run permanently.
OTP Extraction
Auto-detect verification codes in 15 languages. Returns code, type, and confidence level.
Wait Endpoints
Long-poll until an email arrives — no polling loops. One call: wait + extract OTP.
Real-time Webhooks
GET POST notifications with HMAC signatures when emails arrive. OTP included in payload.
Email Forwarding
Create aliases that forward to any real email. Unique feature no competitor has.
MCP Server
Native integration with Claude, Cursor, and Windsurf. Your AI agent gets email powers instantly.
Multi-Domain Rotation
7 built-in domains to rotate through. Harder to block, more reliable for automation.
SDKs & CLI
npm, pip, and CLI packages. Zero dependencies. TypeScript types included.
Three lines. That's it.
Create an inbox
Wait for OTP
Use the code
Simple, transparent pricing
Start free. Scale when you need to. No hidden fees.
Free
Get started
- 3 inboxes
- 500 requests/month
- 3 free domains
- OTP extraction
- Community support
Developer
For individual devs
- 25 inboxes
- 15,000 requests/month
- All 7 domains
- Webhooks
- Forwarding
- Email support
Pro
For teams & startups
- 200 inboxes
- 50,000 requests/month
- Custom domains
- Priority webhooks
- MCP Server
- Priority support
Business
For scale
- 1,000 inboxes
- 300,000 requests/month
- Unlimited domains
- SLA guarantee
- Dedicated support
- Custom integration
Ready to give your agent an email?
Create your first inbox in 30 seconds. Free tier includes 500 requests/month — no credit card required.
Get Free API Key