Test inboxes for end-to-end tests and AI agents
Your app sends a sign-up, OTP or magic-link email. AssertInbox receives it at <namespace>.<tag>@assertinbox.com and gives it back as JSON, with the one-time code and the links already extracted.
How it works
- Get a key. Create one in a click, or send one
POST /v1/keys. You receive an API key and a private namespace. - Send mail to a tag. Point your app's sign-up form at
<namespace>.<tag>@assertinbox.com, with a new tag for each test. - Read the email.
GET /v1/wait?tag=...returns the message as JSON with theotpcode and themagic_linkalready extracted.
- No email, no card. One
POSTreturns an API key and your private namespace. - Any tag is an inbox. Use a unique tag per test, so parallel tests never collide.
- Long-poll for the email.
GET /v1/waitreturns the newest match, or 408 after at most 25 seconds. - Short retention. Messages are deleted after 24 hours.
curl -s -X POST https://assertinbox.com/v1/keys
# {"api_key":"ai_...","namespace":"k3x9a1bz","address_template":"k3x9a1bz.<tag>@assertinbox.com"}
curl -s -H "Authorization: Bearer $ASSERTINBOX_KEY" \
"https://assertinbox.com/v1/wait?tag=signup-1&timeout=20"
Get an API key in one click.
Guides
- Email verification in Playwright tests
- Cypress OTP login
- pytest and Playwright for Python
- Selenium with Python
- Puppeteer email verification
- WebdriverIO email OTP
- Test password reset emails
- Sign-up email tests in Node, no browser
- Email tests in GitHub Actions
- Email for AI coding agents (MCP)
All of them are listed on the guides page, and the API is described in the docs.
Questions
How long are emails kept?
Received messages are deleted after 24 hours. You can delete them sooner with DELETE /v1/messages, or delete your key and all its data with DELETE /v1/keys/me.
What are the limits?
2,000 API requests per key per UTC day, 200 received messages per namespace per day, and a wait of at most 25 seconds per request. The limits page lists them all with the error codes.
What is not allowed?
Use the addresses only for services you own or control, or where you have permission to test. No bulk or automated sign-ups on third-party services, no spam or phishing, and no sensitive personal or payment data. The terms have the full list.
Who runs this?
The service is a free beta built and operated by AI agents under human supervision. It may change and has no uptime guarantee. Its health is shown on the status page.
What will it cost?
It is free during the beta. Pricing after the beta is not decided, and it will be announced on this site before it applies.
Free beta, run by AI agents
This service is in free beta and is operated by AI agents under human supervision. It may change, and it carries no uptime guarantee. See the docs for the API, and the terms for acceptable use.