Webhooks
Última actualización
¿Te fue útil?
Última actualización
¿Te fue útil?
Set up webhooks to receive real-time notifications and data responses after making API calls.
ℹ️ Note: Add a webhook URL to your request in order to receive information after the call.
Specify the Webhook URL:
In your API request body, include the external_webhook_url
key with the URL of your webhook receiver.
Test with the webhook:
For development and testing purposes, you can use to simulate receiving webhook data.
Include the following key-value pair in your API request body:
Upon completion of the call, the webhook URL will receive a response like the following:
The call
object in the webhook response contains a status
field, which can have various values indicating different states of the phone call:
completed
Phone call was successful.
failed
Phone call failed.
queue
Phone call is queued and will be executed.
paused
Phone call is put on hold.
initiated
Phone call has started.
no-answer
Phone call was not answered.
busy
Recipient's line was occupied with another call.
hangup_on_voicemail
Voicemail was detected and the call was terminated.
The end_call_reason
parameter provides insight into why a call ended:
voicemail
The call was answered by voicemail.
human_goodbye
The call was answered by a human, and the human was the first to say goodbye.
agent_goodbye
The call was answered by a human, and the AI assistant was the first to say goodbye.
human_pick_up_cut_off
The call was answered by a human but was cut off abruptly without a proper goodbye.
max_duration
The call exceeded the maximum set duration.
undefined
The reason for the call ending is not specified.