How to Retrieve and Replay Failed Webhook Events in FusionAuth
-
I’m writing a script to retrieve failed webhooks and replay them in FusionAuth. I’ve managed to get a list of failed events, but I can’t find an API endpoint that allows me to re-send those events. Is there a way to recreate or replay failed webhook events through FusionAuth?
-
FusionAuth provides an API to search for webhook event logs, including failed events. For example, you can use this endpoint:
/api/system/webhook-event-log/search?start=<timestamp>&end=<timestamp>&eventResult=Failed
This will return all webhook events in the specified time frame that failed. More details are here:
Search Webhook Event LogsIn the API response, the event section contains the original payload that was sent. While FusionAuth doesn’t currently have a built-in replay feature, you can extract this event data and manually re-send it to the webhook URL using your own REST calls.
A native replay feature is on the roadmap, but there’s no confirmed timeline for its release yet.