Webhooks are not set inactive after 24h of errors

I am developing an application that does extensive use of Asana webhooks.
I read in the Asana’s webhook REST API documentation that “if we are unable to deliver a message for 24 hours the webhook will be deactivated.” Source: https://asana.com/developers/api-reference/webhooks
I’ve been trying to simulate this behaviour generating events in Asana and replying back a 400 error (Bad Request). Basically, I would expect that Asana sets the status of the webhook as “active: false”. This is not happening. I am checking the webhook status using the endpoint https://app.asana.com/api/1.0/webhooks/:id:
Does Asana expect a specific error type to deactivate webhook after 24hours? Should it be 4xx or 5xx? If so, which specific value?
Is my expectation correct? in the scenario that I described? What am I doing wrong?

Hi @Fvaladao, sorry for the confusion. Our docs are incorrect here—we delete webhooks after they’ve failed for seven days, not 24 hours. The following situations count as errors:

  • A failure to connect to your server
  • A timeout/lack of response after connecting to your server
  • A response with any status code that is not 200 or 204

Additionally, if you respond with a 410 Gone status code, we will delete the webhook immediately. Note that we simply delete the webhook when we’ve encountered enough errors—we do not set active: false or allow you to reenable the same webhook later.