How it works

Projects and addresses

A project is one place for messages, usually one application or one test suite. It has its own random domain under eoinbox.com, and every address at that domain belongs to it. Make up a new address for every test run (signup-<random>@<domain>), so tests never see each other's mail and can run in parallel.

Mail arrives in two ways:

Nothing is ever delivered onward: waitformail only receives.

What you get back

Each message comes back as JSON with the parsed headers, text and HTML, the links found in it (links), runs of 4 to 8 digits that look like confirmation codes (codes), attachments, and the SPF, DKIM and DMARC results of the sender. The original .eml and every attachment can be downloaded too. The API reference lists every field.

Waiting

GET /v1/projects/{projectId}/messages/wait answers at once when a matching message is already there, otherwise as soon as one arrives, for up to 60 seconds per request. Filter by recipient (to), sender (from), part of the subject (subject) and received_after. For longer waits, ask again: the Node library does that for you.

How long messages are kept

Messages are deleted 3 days after they arrive. A project can keep them from 1 to 30 days. Deleted messages and their originals are gone for good. Messages are stored only in the EU and encrypted at rest.

Allowed senders

A project's addresses accept mail from anyone. If an address leaks and spam starts to arrive, add allowed senders in the project settings: then only mail from those domains, confirmed by SPF or DKIM, is accepted. The rest is refused and costs nothing.

Limits

What Limit
Messages per project 10 per second (averaged over 10 s), 10,000 per day
Requests per API key 600 per minute
Waits open at once per API key 20
Message size 25 MB

Over a limit, mail servers are asked to retry later (451, 452), so no message is lost, and the API answers 429 with a Retry-After header.

Errors

Every error is JSON with a stable code for programs and a message for people:

{
  "error": {
    "code": "message_timeout",
    "message": "No matching message arrived in 60 s",
    "details": { "timeout": 60 }
  }
}
Status Code Meaning
401 unauthorized Missing or wrong API key
403 insufficient_permission The key may read but not delete
403 account_suspended The account is suspended
403 account_closing The account is scheduled for deletion
404 not_found No such project or message, or not visible to this key
408 message_timeout No matching message arrived in time
422 validation_failed A parameter is wrong; details.issues says which
429 rate_limited, too_many_waits Over a limit; wait Retry-After seconds