Webhooks

Handle Sinch voice call webhook

POST
/api/webhook/calls/sinch

Inbound voice call webhook posted by Sinch for ICE (Incoming Call Event), ACE (Answered Call Event), and DiCE (Disconnect Event). For ICE the endpoint returns SVAML instructing Sinch how to route/record the call; for ACE and DiCE it updates the Call record and acknowledges receipt.

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

application/json

curl -X POST "https://example.com/api/webhook/calls/sinch" \  -H "Content-Type: application/json" \  -d '{    "event": "ice",    "callId": "a8d3c4e0-9b2f-4e1a-b3c4-5f6a7b8c9d01",    "callResourceUrl": "https://calling.api.sinch.com/v1/calls/a8d3c4e0-9b2f-4e1a-b3c4-5f6a7b8c9d01"  }'
{  "action": {    "name": "connectConf",    "conferenceId": "org-64a1b-room-42",    "cli": "+12362320246"  }}