# 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

1. **Create a project**: it gets an address suffix, so every address like `[email protected]` is one of its inboxes.
2. **Mint an address and use it**: your app or your agent signs up, resets a password or places an order with it.
3. **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](https://www.receiver.email/docs/api-reference). Start from the package made for what you already use:

| You're using | Install | Start here |
| --- | --- | --- |
| Playwright | `@receiverdotemail/playwright` | [Playwright: the inbox fixture](https://www.receiver.email/docs/guides/playwright) |
| pytest or Selenium (Python) | `receiverdotemail` | [pytest: the inbox fixture](https://www.receiver.email/docs/guides/pytest) |
| Jest, Vitest or other JavaScript | `@receiverdotemail/sdk` | [Jest / Vitest: createTestInbox()](https://www.receiver.email/docs/guides/jest) |
| Cypress | `@receiverdotemail/sdk` | [Cypress: the SDK in cy.task](https://www.receiver.email/docs/guides/cypress) |
| An AI agent with MCP | `@receiverdotemail/mcp` | [MCP Server](https://www.receiver.email/docs/mcp) |
| An agent or script with a shell | `@receiverdotemail/cli` | [CLI](https://www.receiver.email/docs/cli) |
| Any other language | REST API + OpenAPI | [REST API Reference](https://www.receiver.email/docs/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](https://www.receiver.email/docs/quickstart): your first email in five minutes, from tests or an agent
- [Concepts](https://www.receiver.email/docs/concepts): the model in detail
- [Give your agent an inbox](https://www.receiver.email/docs/guides/agent-inbox): the agent guide
- [CI/CD Guide](https://www.receiver.email/docs/guides/ci-cd): GitHub Actions, GitLab CI and more

---

Source: https://www.receiver.email/docs
