Skip to main content
Get notified the moment a call ends, instead of polling for it. Time required: ~15 minutes You will need: an API key, and an HTTPS endpoint you control that can receive a POST

Steps

1

Stand up an endpoint

Your endpoint needs to accept a POST with a JSON body and respond 2xx within 10 seconds. Respond immediately and do any slow work afterward — see Webhook retries and replay.
2

Subscribe to call.hangup

The response includes a secret — save it now. It’s shown exactly once.
3

Verify the signature on every delivery

See Verify webhook signatures — implement this before you trust any payload.
4

Handle the event

A call.hangup payload looks like this — see the event catalog for the full shape:
Use call_id to look up the full record via Search call detail records if you need more than the event carries.

What you accomplished

Your system now reacts to calls ending in real time, instead of polling CDRs on a schedule.

Next steps

Webhook event catalog

Webhook delivery failures