Add support for idempotent requests to the API
Add Idempotency-Key to request ala Stripe's API. https://stripe.com/docs/api?lang=curl#idempotent_requests

-
Jake commented
Would be good to support this please 🙏
-
Jacob Levine commented
We've seen connection errors that resulted in re-attempted (and in many cases duplicated) emails almost 50 times in the last month. Some of these are minor, but others are potentially alarming (e.g. payment receipts, where a user might worry they'd been charged multiple time).
-
German Krutov commented
We need this feature too.
-
Dave Cumberland commented
This feature is essential to increasing the resiliency of our integration with the Mailgun sending API without risking duplicate sends to our customers. Adding the idempotency key would have allowed our system to deliver uninterrupted service to the majority of our customers despite interruptions to the API.
-
MarketSmart commented
Show custom headers in the events api to help identify emails sent.
Sometimes mailgun will trigger a 5XX error for some emails sent through the api but still receive and send that email. I have verified this in the logs. I have a customer header I use in my emails X-MS-ID=someid I use to identify emails. I can use the search api to find and identify emails which I don't have an id for and prevent sending duplicate emails resulting in user complaints.
https://documentation.mailgun.com/en/latest/api-events.html#event-structure
-
Jannik Jannik commented
Would be still important to us - makes our systems more fault resistant
-
Ігор Помаранський commented
Any progress on this?