Webhooks
How to replay webhook deliveries safely
Recover an individual webhook after a fix and handle the delivery IDs that SendMQ uses during replay.
By SendMQ 1 min read
When should you replay a webhook?
Replay a webhook when a specific receiver missed an event and you have fixed the cause. Start from its delivery details, confirm which endpoint was affected, and check the attempt history. For an order update, compare the receiver’s current order state with the event version before applying it.
Replay targets the delivery associated with the job ID. This is useful when a publication reached two subscribers and failed for a third, because you can recover the affected subscriber without republishing the event to all matching endpoints.
Does replay keep the same delivery ID?
Failed and canceled webhook deliveries keep their delivery ID on replay. Replaying a successful delivery creates a new job with a fresh delivery ID. A receiver that must recognize the same business event across both cases should also deduplicate on a stable event ID from the payload.
If events change the same resource, protect against a replay of an older event by storing and checking its version. For instance, version 21 of an order should stay in place when a recovered delivery carries version 20.
How do you verify the recovery?
Check that the target endpoint is enabled, then use the replay action or send a POST to /v1/webhook-deliveries/{id}/replay with a key that has webhooks:write. Inspect the result and confirm the intended change in the receiver’s system. Record the event identifier so your team can track the recovery later.