API reference
Every endpoint, with authentication, limits, error codes, webhooks and the OpenAPI spec.
Read the reference →A test that signs a user up needs a real inbox to read the verification code out of. Mailfornet gives your suite a fresh one on demand, over a REST API, and hands the mail back as JSON.
npm install mailfornet
const inbox = await mf.createInbox();
await signUp(inbox.address);
const code = await mf.waitForCode(inbox.address);
No polling loop, no IMAP, and no shared mailbox that two parallel test runs fight over.
Every endpoint, with authentication, limits, error codes, webhooks and the OpenAPI spec.
Read the reference →From an empty project to reading a verification code out of an inbox, in about five minutes.
Start building →What each plan includes, what counts as a request, and how prepaid credits work.
See developer plans →?wait= and the request holds open until mail arrives, up to a minute. That's one request, not one a second.from a particular sender or with a subject, so a newsletter arriving first doesn't fail your test.code, never on the message, and quote the request id to support.
The mailfornet package
ships TypeScript types, the long-polling helpers and webhook signature verification. You can call the
API with plain fetch instead — it's ordinary REST, and the
OpenAPI spec will generate a client in most languages.
Create a developer account, claim the free tier — 100 requests a month, no card — and you can be reading mail from your test suite in a few minutes.