SpawnMail
Open-source email infrastructure for AI agents. Create disposable inboxes, receive emails via API, and verify workflows — all programmatically.
What is SpawnMail?
SpawnMail gives your AI agents and automated tests real email addresses. Create an inbox, trigger a sign-up flow, and read the verification email — in three lines of code.
const { inbox, email } = await client.capture({ ttl: 300, timeout: 30_000 });
// inbox.address → "abc123@spawnmail.sh"
// email.subject → "Verify your email"
Use Cases
- AI agent email verification — Agents that sign up for services need to verify email addresses
- E2E testing — Test sign-up flows, password resets, and email notifications in CI
- OTP extraction — Receive and parse one-time passwords from emails automatically
- Webhook testing — Receive emails and forward them as webhook payloads
How to Get Started
| Path | Description |
|---|---|
| Cloud Quickstart | Get an API key and start in 2 minutes |
| Self-Hosting | Run the full stack on your own server |
| JavaScript SDK | TypeScript/JavaScript client library |
| Python SDK | Python client library |
| CLI | Command-line interface for shell scripting |