AssertInbox

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

  1. Get a key. Create one in a click, or send one POST /v1/keys. You receive an API key and a private namespace.
  2. Send mail to a tag. Point your app's sign-up form at <namespace>.<tag>@assertinbox.com, with a new tag for each test.
  3. Read the email. GET /v1/wait?tag=... returns the message as JSON with the otp code and the magic_link already extracted.
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.

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.