Call Webhook
When making calls through voicehub platform, widget or API, voicehub allows for sending callbacks to your backend to help you track call status, call recordings and call analysis.
Configuring Webhook through Voicehub
In voicehub, each agent can be configured to send webhook requests per calls. This configuration can be found under API Sidebar menu item as in the next screenshot

In the configuration of webhook, you will have multiple options that need to be configured for the webhook.
Webhook URL: This is the endpoint url that the webhook will send POST requests to on your end.
Secret: This is any secret key you want to be used for verifying webhook requests. It will be sent through a header on the post request
x-webhook-secretRetrying attempts and delays: Requests will be retired couple of times to your end points with delays in milliseconds sepcified in the fields
Request timeout also is configurable
Events sent through call webhook
Currently, voicehub triggers three different types of events through the lifecycle of a call.
CallStatusChanged
This event is triggered whenever a change happens to your call status. The payload of the post body contains the following jsonized string, the expected call statuses are listed below
For call statuses that are returned from the API, you can expect one of the following
RecordingsAvailable
This event is triggered upong having the call voice recordings available. The body of the payload is
AnalysisResultReady
This event is triggered whenever the analysis of the call is available. Callback payload contains a link to fetch the results.
Fetching Call Analysis Result:
Once you receive the AnalysisResultReady event, you can fetch the analysis result using the analysisResultUrl provided in the payload.
Example URL :
Example Analysis Result Response:
Last updated