Checking webhook status
First and foremost, check the status of your webhooks. This can be accomplished by calling one of the following APIs:/api/v1/Webhook(RESTful REST API)/api/v1/Agents/Webhook/GetAllWebhooks(HTTP RPC Agent API)WebhookAgent.GetAllWebhooks(Proxy Clients)NSWebhookAgent.GetAllWebhooks(CRMScript)
State, which indicates the current status of the webhook. There are four possible states:
- Unknown
- Active
- Stopped
- TooManyErrors
State property indicates that the webhook is Active, it means the webhook should be operational. If the state is Stopped, inspect the UpdatedAssociate property to identify who or what caused the webhook to stop. This information can guide you in seeking further assistance or explanations.
Evaluating errors
In case theState is marked as TooManyErrors, you’ll need to dig a little deeper to identify the cause of these errors. You can use the dynamic archive provider to fetch the statistics and error messages related to your webhooks:
total_calls: The total number of calls made to the webhooktotal_errors: The total number of errors encountered by the webhookconsecutive_errors: The number of consecutive errors encountered by the webhooklast_error: The last error encountered by the webhook