Documentation
Receiver.email gives your test suites and AI agents inboxes they can program: create any address on the fly, wait for the email, and get the code or link back as JSON.
How It Works
- Create a project: it gets an address suffix, so every address like
[email protected]is one of its inboxes. - Mint an address and use it: your app or your agent signs up, resets a password or places an order with it.
- Wait for the email: get it back with its links and the verification code already extracted.
Pick Your Tool
Everything runs on one REST API. Start from the package made for what you already use:
| You're using | Install | Start here |
|---|---|---|
| Playwright | @receiverdotemail/playwright | Playwright: the inbox fixture |
| pytest or Selenium (Python) | receiverdotemail | pytest: the inbox fixture |
| Jest, Vitest or other JavaScript | @receiverdotemail/sdk | Jest / Vitest: createTestInbox() |
| Cypress | @receiverdotemail/sdk | Cypress: the SDK in cy.task |
| An AI agent with MCP | @receiverdotemail/mcp | MCP Server |
| An agent or script with a shell | @receiverdotemail/cli | CLI |
| Any other language | REST API + OpenAPI | REST API Reference |
Quick Example
TypeScript
import { ReceiverClient } from "@receiverdotemail/sdk";
const receiver = new ReceiverClient(); // reads RECEIVER_API_KEY
const inbox = await receiver.inboxes.create({ prefix: "reset" });
await app.requestPasswordReset(inbox.address);
const email = await receiver.emails.waitFor({
recipient: inbox.address,
since: inbox.createdAt,
});
console.log(email.subject); // "Reset your password"
console.log(email.links[0]); // "https://app.example.com/reset?token=..."Key Concepts
- Projects: own mail and API keys. One per test suite, agent or team.
- Inboxes: any address under a project. Unlimited, nothing to register.
- API keys: scoped to one project. Enough on their own to mint addresses and read mail.
- Since: waits match mail received strictly after this timestamp, so old mail never satisfies a new wait.
Next Steps
- Quick Start: your first email in five minutes, from tests or an agent
- Concepts: the model in detail
- Give your agent an inbox: the agent guide
- CI/CD Guide: GitHub Actions, GitLab CI and more