API reference

Disposable email,
from your code.

A small, fast JSON API. Create an inbox, receive mail, get verification codes back as plain fields, and stream new messages the instant they land. No account required.

Base URL
Real-timeServer-sent events push mail the moment it arrives.
Codes extractedOTP codes and verify links come back as fields.
No sign-upWorks anonymously. Add a key for higher limits.

Quickstart

Get a verification code out of a sign-up email in three calls.

Authentication

Most endpoints are open: an inbox is identified by its address, and anyone who knows the address can read it. The exceptions are private inboxes, which only their owner can read, and premium domains, which need a paid plan. To raise your rate limit, send an API key in the X-API-Key header. Get your own key in seconds: create a free account, open it, and press Create key.

Tip. Paste a key into the box in the header and every "Try it" request on this page will include it automatically.

Rate limits

CallerSustainedBurst
Anonymous, per IP2 requests / second20
Free plan key20 requests / second100
Relay plan60 requests / second300
Vault plan200 requests / second1,000

Going over a limit returns 429 with a Retry-After header. The live stream is not rate limited, but each plan limits how many inboxes can be open at once. When the server is busy, free requests wait and may return 503, while paid requests go first. See plans.

IMAP

On a paid plan, create an IMAP login for a private inbox from your account. Connect to mail.<domain> on port 993 (SSL/TLS) or 143 (STARTTLS), using the full address as the username. IMAP is read-only access to INBOX, and mail cannot be sent from it.

Errors

Errors return a JSON body like {"error":"invalid address"} with a matching HTTP status.

StatusMeaning
400Invalid input: bad address, unknown domain, or a reserved or malformed name.
401The X-API-Key you sent is not valid.
403The address is blocked by the operator.
404Message or domain not found.
429Rate limit exceeded. Wait Retry-After seconds.

Full example

Create an inbox, then wait for the verification code over the live stream.