Skip to main content

Quickstart

Get started with SpawnMail in under 2 minutes.

1. Create an Account

Sign up at app.spawnmail.sh to get your dashboard.

2. Get an API Key

Navigate to API Keys in the dashboard and create a new key. Your key starts with sk_.

3. Install an SDK

bun add @spawnmailhq/sdk

4. Capture Your First Email

import SpawnMail from "@spawnmailhq/sdk";

const client = new SpawnMail("sk_your_api_key");
const { inbox, email } = await client.capture({ ttl: 300, timeout: 30_000 });

console.log(`Inbox: ${inbox.address}`);
console.log(`Email from: ${email.sender}`);
console.log(`Subject: ${email.subject}`);

Next Steps