Skip to main content

Cloud Quickstart

Get started with SpawnMail's hosted service 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 fm_.

3. Install an SDK

bun add @spawnmail/sdk

4. Capture Your First Email

import SpawnMail from "@spawnmail/sdk";

const client = new SpawnMail("fm_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