Now with MCP Server for AI Agents

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 sandmail
import { 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"
7 email domains15 languages OTPHMAC-signed webhooksnpm + pip + MCP< 2s OTP extraction

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.

Auto OTP extraction in 15 languages
HMAC-SHA256 signed payloads
Verification links detected automatically
Raw body fallback when OTP not found
Live Webhook Response
{
  "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.

01

Create an inbox

const inbox = await client.createInbox();
// inbox.email = "agent_k7x@tempyx.com"
02

Wait for OTP

const otp = await client.waitForOTP(inbox.email);
// Blocks until email arrives — no polling
03

Use the code

console.log(otp.code); // "847291"
// confidence: "high", type: "numeric_6"

Simple, transparent pricing

Start free. Scale when you need to. No hidden fees.

Free

Get started

Free
  • 3 inboxes
  • 500 requests/month
  • 3 free domains
  • OTP extraction
  • Community support
POPULAR

Developer

For individual devs

$19/month
  • 25 inboxes
  • 15,000 requests/month
  • All 7 domains
  • Webhooks
  • Forwarding
  • Email support

Pro

For teams & startups

$49/month
  • 200 inboxes
  • 50,000 requests/month
  • Custom domains
  • Priority webhooks
  • MCP Server
  • Priority support

Business

For scale

$199/month
  • 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