Webhooks

Call status

POST
/v1/Webhooks/CallStatusChangedWebhook

CallStatusChangedWebhook is sent to the URL set up with /webhooks endpoint for webhook type CallStatusChanged when a Call status is changed.

AuthorizationBasic <token>

Basic Authorization header using the BASIC scheme. Use a pair companySid:token to access the API.

In: header

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Call status changed event.

Response Body

curl -X POST "https://example.com/v1/Webhooks/CallStatusChangedWebhook" \  -H "Content-Type: application/json" \  -d '{    "type": "CallStatusChanged",    "sid": "WH08df051c8bba28aff56a3855f151cff51ad92c8274ad1cd2",    "payload": {      "callSid": "CAXXXXXXXX",      "legSid": "CLXXXXXXXX",      "callDirection": "Inbound",      "legDirection": "Inbound",      "legStatus": "Completed",      "legDuration": "00:01:30",      "from": "+13234567890",      "to": "+19876543210",      "eventDate": "2023-03-22T16:44:55.123Z"    }  }'
Empty