Use Case

Send password reset emails with Postkit

Deliver secure password reset links instantly. Postkit's fast delivery and idempotent sends ensure users get exactly one reset email, even if they click the button twice.

Get Started Free

The problem

Password reset flows are security-critical. Delayed delivery frustrates users. Duplicate sends confuse them. And if the email never arrives, your support queue fills up.

The Postkit solution

Postkit delivers reset emails in under a second. Use an idempotency key derived from the reset token to prevent duplicate sends. Track delivery with webhooks to know the email arrived.

password-reset.ts
await fetch("https://api.postkit.eu/v1/emails", {
  method: "POST",
  headers: {
    Authorization: "Bearer pk_live_...",
    "Content-Type": "application/json",
    "Idempotency-Key": `reset-${resetToken}`,
  },
  body: JSON.stringify({
    from: "security@yourapp.eu",
    to: user.email,
    subject: "Reset your password",
    html: `<p>Click here to reset your password:</p>
           <a href="${resetUrl}">Reset password</a>
           <p>This link expires in 1 hour.</p>`,
  }),
});

Start sending in under 5 minutes

Free plan. No credit card required.

Get Started Free