Idempotency keys for push notificationsMake retries safe
Webhook senders retry. Stripe redelivers an event for up to three days, so one payment can turn into several notifications. Send an Idempotency-Key to stop that.
curl
curl https://acciti.com/v1/messages \ -H "Authorization: Bearer $ACCITI_TOKEN" \ -H "Content-Type: application/json" \ -H "Idempotency-Key: evt_1PxYzABCDEF" \ -d '{ "user": "your-user-key", "message": "Payment received" }'Use something stable from the event, usually its ID. A repeat returns the original message without sending again, and doesn't count against your allowance.