Skip to main content

Idempotency Keys

To avoid sending duplicate emails when retrying failed requests or handling at-least-once webhooks (e.g. Stripe checkout completion), include an Idempotency-Key header.

How It Works

  1. You supply a unique key (such as checkout_session_12345 or a UUID) in the Idempotency-Key HTTP header.
  2. If Mailofly receives another request with the identical key within 24 hours, it returns the existing message result instead of dispatching a second email.