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
Works with: Test frameworks · Auth providers and frameworks · Languages and APIs · CI · AI agents · Patterns.
- Email verification in Playwright tests
- Cypress OTP login
- pytest and Playwright for Python
- Selenium with Python
- Test an order confirmation email
- Test localized emails
- Test a magic link works once and expires
- Test OTP resend and expiry
- Vitest email verification test
- Jest email verification test
- WordPress registration
- Bitbucket Pipelines
- Azure Pipelines
- CircleCI
- Robot Framework
- Appium (mobile)
- Playwright for Java email OTP
- Selenium with Java and JUnit 5
- Puppeteer email verification
- WebdriverIO email OTP
- Test password reset emails
- Sign-up email tests in Node, no browser
- Email tests in GitHub Actions
- Email tests in GitLab CI
- Test the email-change confirmation flow
- Test team invitation emails
- Magic-link login in Cypress
- TestCafe email verification
- Nightwatch.js email OTP
- Selenium WebDriver for JavaScript email verification
- BDD email verification with Behave
- Cucumber.js email verification
- Auth0 passwordless email-code login test
- Local SMTP catcher or real test inbox?
- Email for AI coding agents (MCP)
- Auth.js (NextAuth) magic-link test
- Supabase Auth email OTP and magic-link test
- Firebase email-link sign-in test
- Django allauth email verification test
- Rails Devise confirmable email test
- Go sign-up email test
- Detox React Native email OTP test
- Flask email confirmation test
- NestJS email verification e2e test
- Python API-only sign-up email test
- Wait for an email in a shell script
- Postman and Newman email verification
- Spring Boot email verification test
- REST Assured sign-up email test
- Email 2FA and login-code test
- Let an AI agent test your sign-up flow
- Keycloak verify-email test with Playwright
- AWS Cognito sign-up confirmation test
- Laravel email verification test
- Express and Nodemailer sign-up test
- FastAPI email verification test
- Test a newsletter double opt-in confirmation
- Test transactional email content
- Check every link in an email
- Assert an email was sent exactly once, or not at all
- Test the List-Unsubscribe header and one-click unsubscribe
All of them are listed on the guides page, and the API is described in the docs. To see how code and link detection works on your own email text, try the free OTP and link extractor; it runs in your browser, or the List-Unsubscribe header checker. To run a first test without an application of your own, use the practice app, or download a runnable example project for Playwright, pytest, Cypress or an MCP agent.
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. See pricing.
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.