Webhook response behaviour

daniel_abbatt
Getting noticed

Webhook response behaviour

What is the response handling on the Meraki side when it has sent a Webhook under the following conditions:

- 5xx

- 404

- 401

- 403

- Other 4xx

- 2xx

 

The reason I ask is under what conditions will Meraki attempt to resend Webhooks.

I would hope it would let the user know in some way if the url appeared to be correct but the endpoint was returning a 401 implying that the shared secret was incorrect.

I can see for the response codes above that Meraki might retry or not.

I assume a 5xx would be retried a few times, maybe with a back-off?

I couldn't find anything in the documentation as to how to respond to a webhook on a custom server.

3 Replies 3
JosRus
Meraki Employee
Meraki Employee

Hi @daniel_abbatt

When the dashboard sends a webhook, it expects a HTTP 200 response. Only if it does not get a response will it then re-attempt delivery, up to a total of 10 times, with a back-off timer that doubles in value on each failure. 

If you found this post helpful, please give it kudos. If my answer solved your problem, click "accept as solution" so that others can benefit from it.
daniel_abbatt
Getting noticed

So I understand from your statement that if it gets a 400, 401, 403, 404, 500 or 502 it will not attempt redelivery for all these codes?

JosRus
Meraki Employee
Meraki Employee

I see that we acknowledge those responses (such as a 400) evident by our logging of that response against the specific webhook on our systems, and I don't believe retries are sent for those as a response has already been received.

If you found this post helpful, please give it kudos. If my answer solved your problem, click "accept as solution" so that others can benefit from it.
Get notified when there are additional replies to this discussion.