Call webhooks
On call event
Sends a notification to track the lifecycle of an active call.status updates. It’s triggered when a call is initiated, answered, and ends.
WEBHOOK
Body
application/json
Callback payload.
Most recent lifecycle event for the call. One of:
call_setup— the call is being initiated.ringing— the destination is ringing.early_media— early media (such as ringback) is playing before answer.answered— the destination answered the call.completed— the call ended normally.busy— the destination was busy.cancelled— the call was cancelled before answer.rejected— the destination rejected the call.on_call_event— an in-call event occurred (seeevent_payload).
Available options:
call_setup, ringing, early_media, answered, completed, busy, cancelled, rejected, on_call_event Example:
"call_setup"
Response
200
Return a 200 status to indicate that the data was successfully received