Skip to main content

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

PathDescription
Cloud QuickstartGet an API key and start in 2 minutes
Self-HostingRun the full stack on your own server
JavaScript SDKTypeScript/JavaScript client library
Python SDKPython client library
CLICommand-line interface for shell scripting