Skip to content
Webhooks and APIs3 min read

By · Editorial policy

How to Replay Failed Webhooks Safely

Replay by event ID from a fixed incident window. Confirm which external effects already happened, recover the unknown outcomes, and use the same business keys required by the original handlers.

What is the practical answer?

Replay by event ID from a fixed incident window. Confirm which external effects already happened, recover the unknown outcomes, and use the same business keys required by the original handlers. Suppose your receiver was degraded for 35 minutes. Export event IDs and event creation times from the provider for that interval. Include a short overlap for events near the boundary and deduplicate the manifest by provider account and event ID. Record the filter and when it was applied so a second operator can reproduce the batch. Keep events delivered after the cutoff out of this batch. Classify each event as confirmed, unapplied, or unknown using intake evidence and the destination state. An HTTP error by itself is insufficient to mark a write unapplied. For an event about an object that can change, retrieve the current source record if applying old snapshots out of order would overwrite newer data.

Evidence: Stripe webhook delivery, acknowledgment, and retries · Reddit webhook outage discussion

  1. Freeze event manifestInput
  2. Classify existing effectsDecision
  3. Replay eligible eventsRecovery
  4. Reconcile destination IDsExternal action
A fixed manifest and destination reconciliation make a replay auditable even when some original attempts had unknown outcomes.

Freeze the replay population#

Classify each event as confirmed, unapplied, or unknown using intake evidence and the destination state. An HTTP error by itself is insufficient to mark a write unapplied. For an event about an object that can change, retrieve the current source record if applying old snapshots out of order would overwrite newer data. Document any event whose effects require manual investigation before replay.

What you findWhat to do
Event ID exists with a confirmed CRM objectexclude that effect from replay.
Manifest has a failed processing attempt and verified absent objectreplay through the normal handler.
Provider record is newer than the original eventcompare object versions before writing an older snapshot.

Run a small replay and compare business records#

Send a small cohort through the same input validation and idempotency checks as live traffic. Track replay attempts independently from original deliveries. Start with a cohort whose destination records are easy to verify and expand only after its expected effects match what was written. Give the live queue capacity to keep processing new events.

Use a replay manifest two operators can review#

For each manifest row, retain provider account, event ID, event time, original processing state, effect keys, and the decision to replay or skip. Record the evidence behind each skip. An existing order does not establish whether the related confirmation email was sent, so a single event can have both confirmed and missing effects.

Have the replay job create a report of attempted, confirmed, blocked, and skipped rows. Compare that report with the destination, using identities rather than raw counts. Preserve source ordering only where the business contract requires it. If later versions supersede earlier ones, the intended behavior may be to converge to the latest confirmed source state instead of reapplying every intermediate change.

Verify it with a failure drill#

Seed a manifest with one missing write, one confirmed write, and one lost response after a successful write.

  • Expect one new destination record, one unchanged confirmed record, and one recovered receipt for the ambiguous write. Run the manifest twice and confirm no additional records appear.

Sources and further reading

Official references support technical claims; community discussions are used only as problem signals.