Inboxes
Temporary or reusable
Programmable inbox API
PostMX gives you disposable or reusable inboxes, push or poll delivery, and clean extraction for OTPs, magic links, password resets, and webhook-driven workflows.
No credit card. No shared inboxes. No cleanup scripts.
Workflow snapshot
import { PostMX } from "postmx";
async function main() {
const postmx = new PostMX(process.env.POSTMX_API_KEY!);
const inbox = await postmx.createTemporaryInbox({
label: "signup-test",
});
const message = await postmx.waitForMessage(inbox.id);
console.log(message.otp);
}
main().catch(console.error);
Inboxes
Temporary or reusable
Delivery
Polling or signed webhooks
Extraction
OTP, links, headers, HTML, text
The point is simple: create an inbox, trigger the email, wait for the next message, and keep moving.
The problem
Shared addresses, brittle waits, and cleanup rituals make email flows drift right when they matter most.
Create a fresh inbox for each run instead of fighting stale messages, collisions, and manual cleanup.
Exercise the same OTP, magic-link, and password-reset path your users actually see.
Use a focused API and SDKs instead of stitching inbox hacks, mail forwards, and cleanup jobs together.
How it works
The loop is short, deterministic, and built to stay out of your way.
Spin up a disposable inbox for a single test run or a reusable inbox for recurring automation.
Send the OTP, verification email, password reset, or magic link exactly as your app normally would.
Use the API, SDK, CLI, or signed webhooks to receive the next email without awkward polling loops.
Grab the code, link, headers, text, HTML, or raw content and finish the flow in CI.
Capabilities
Lead with real jobs, not abstract infrastructure language.
Receive one-time passcodes in real inboxes and validate the full authentication journey end to end.
Capture sign-in links automatically and continue the login flow without brittle mailbox workarounds.
Verify reset emails, extract the recovery link, and complete the reset flow with confidence in CI.
Route incoming mail into your systems through signed webhooks once the testing wedge is in place.
Articles
Short, search-friendly reads that show how PostMX fits into Playwright, Cypress, and first-time onboarding work.
Use a temporary inbox, wait for the next message, and assert the OTP without regex scraping or shared mailboxes.
Read articleKeep passwordless login honest by using a real inbox to capture the link, then continue the browser flow directly.
Read articleLearn the core PostMX flow, from temporary inboxes to OTP extraction and local debugging with the CLI.
Read articlePricing
The limits below are rendered from one editable data block so the table stays easy to update later.
API request budgets are enforced per account, and weekly budgets reset Monday at 00:00 UTC.
FAQ
Keep this short, practical, and easy to scan.
OTP emails, MFA flows, magic links, password resets, verification emails, and most app-generated transactional mail.
Yes. Use disposable inboxes for isolated tests or reusable inboxes when you want stable addresses for recurring workflows.
No. You can poll when it's simple, or use signed webhooks for push-based workflows.
OTP codes, links, headers, plain text, HTML, and raw message content. Eligible Pro messages can also get optional AI enrichment fields like a short summary, category, sender name, reference ID, mentioned amount, urgency, and action-needed flags.
No. The homepage leads with testing, but the same inbox and webhook primitives support inbound automation and production workflows too.
Start building today
Start with a real inbox, receive the next email, and ship OTP and magic-link flows with more confidence.