Is it possible to retry all failed webhook requests?

I’m not aware of a built-in way. You can create a custom script that would do this:

  1. Through the API, get the list of the webhooks events at
    https://your-discourse.com/admin/api/web_hook_events/X.json
    Where X is your webhook ID.

  2. The endpoint lists the 50 last events. Use the offset query parameter to go further in the list. For example:
    https://your-discourse.com/admin/api/web_hook_events/1.json?offset=50

  3. Loop through every returned event. For each event, do a POST request to
    https://your-discourse.com/admin/api/web_hooks/2/events/XXX/redeliver
    Where XXX is the event’s ID.

  4. Because of the API rate limit, wait at least a few seconds between each API call.

Tested and working :+1:

And thanks @Lucas_Alves for learning me about the offset parameter :slight_smile: