Magic link testing

Extract magic links from real inbound email

Use programmable inboxes to receive passwordless login links, reset links, and verification URLs, then feed them directly into your tests or workers.

No credit card required ยท Start free in minutes

Passwordless login

Read the next magic link and continue the flow without switching to a mailbox UI.

Reset links

Assert password reset delivery and click through the generated URL inside your tests.

Verification URLs

Capture the exact link your app sends and validate the full end-to-end path.

Signed webhooks

Trigger downstream automation as soon as a link-bearing email arrives, with optional AI enrichment adding extra context in the background.

Node SDK example

import { PostMX } from "postmx";

async function main() {
  const postmx = new PostMX(process.env.POSTMX_API_KEY!);
  const inbox = await postmx.createTemporaryInbox({ label: "magic-link-test" });

  // 2. Pass the generated address to your app
  await triggerLogin(inbox.email_address);

  // 3. Wait for the email and grab the first link
  const email = await postmx.waitForMessage(inbox.id);

  // 4. Verify
  expect(email.links[0]?.url).toBeTruthy();
}

main().catch(console.error);

Start building today

Read magic links through a simple API

Receive real emails, extract the link, and keep the rest of your workflow programmable.