How to clear Webhook queue accepted between specific dates using the API?

I’ve read about how to delete webhook queue using MAKE API.
Is there a way doing that but only for hooks accepted a day ago and earlier?

Hi @meny_chico,

This is possible indeed. You first have to get the webhook queue to retrieve the ‘incomings’. These are the incoming requests for a certain hookID:
https://www.make.com/en/api-documentation/hooks-hookId-incomings-get

Then you have to filter out the incoming ID’s that you want to delete bases on incomings.created, so you can pass them to this endpoint:
https://www.make.com/en/api-documentation/hooks-hookId-incomings-delete

But it begs the question; is it not easier to do this via the UI?

Cheers,
Henk

1 Like