How do you make webhook retries safe to repeat?
Make webhook retries safe to repeat: a stable idempotency key, 2xx as accept, and bounded backoff that honors Retry-After.
1 min readDEV Group
Webhook delivery keeps failing the same way: retries without a stable idempotency key, ambiguous success codes, and unbounded backoff. Treat every attempt for the same logical event as one delivery. Send the same Idempotency-Key on each retry, treat 2xx as accept, and honor Retry-After as a lower bound. Use bounded jittered backoff, with a dedupe window measured in hours, not days. The failure modes belong in the design, not in a ticket after records go missing.
Was this useful?
Related notes
Integrations2 min read
Who can read your webhook signing secret, and who can point your webhooks somewhere else?
Show a signing secret once, verify every delivery, and treat a change to where webhooks deliver as a privileged action.
- Webhooks
- Secrets
- Authorization
Integrations2 min read
Durable workflows still need a recovery plan: what do you do when runs get stuck in Running?
Durable runs can sit in Running and never fail. Alarm on them, make every side effect safe to repeat, and replay only what is incomplete.
- Workflows
- Idempotency
- Resilience
Payments3 min read
How do you find out a customer was charged twice before they tell you?
Duplicate card and bank charges hit three payment providers in November 2026. Keep one payment per invoice, match settlements daily, and plan reversals.
- Idempotency
- Reconciliation
- Monitoring
- Checkout