Idempotency Keys
To avoid sending duplicate emails when retrying failed requests or handling at-least-once webhooks (e.g. Stripe checkout completion), include anIdempotency-Key header.
How It Works
- You supply a unique key (such as
checkout_session_12345or a UUID) in theIdempotency-KeyHTTP header. - If Mailofly receives another request with the identical key within 24 hours, it returns the existing message result instead of dispatching a second email.