Safely retry email sends and prevent duplicates with idempotency keys
Idempotency-Key
Idempotency-Key
within 24 hours, you’ll get the same response and no duplicate email is sent.422
error.202 Accepted
with the same message_id
and no duplicate email will be sent.
422 Unprocessable Entity
response with:
nodemailer
:
Idempotency-Key
when retries are possible.Idempotency-Key
header to your /send
requests to prevent duplicate emails when retrying. Use a unique key per email. Identical key + body will be safe to retry; identical key + different body results in an error.