trill_og.sol
12/17/2024, 2:29 PMAI Evy
12/17/2024, 2:29 PMAI Evy
12/17/2024, 2:29 PMbash
curl --location 'localhost:8080/webhook' \
--header 'Content-Type: application/json' \
--data '{
"event": "call_ended",
"call": {
"call_type": "phone_call",
"from_number": "+12137771234",
"to_number": "+12137771235",
"direction": "inbound",
"call_id": "Jabr9TXYYJHfvl6Syypi88rdAHYHmcq6",
"agent_id": "oBeDLoLOeuAbiuaMFXRtDOLriTJ5tSxD",
"call_status": "registered",
"metadata": {},
"retell_llm_dynamic_variables": {
"customer_name": "John Doe"
},
"start_timestamp": 1714608475945,
"end_timestamp": 1714608491736,
"disconnection_reason": "user_hangup",
"transcript": "...",
"opt_out_sensitive_data_storage": false
}
}'
[(1)]()
2. Verify your webhook URL format:
- Check for trailing slashes - some server setups don't allow trailing slashes [(2)]()
- Correct format: https://example.com/websocket
- Incorrect format: https://example.com/websocket/
3. For local development testing, you can use ngrok to expose your local endpoint [(1)]() :
bash
brew install ngrok/ngrok/ngrok
ngrok http http://localhost:8080
4. Verify requests are coming from Retell by checking the X-Retell-Signature header [(3)]()
5. You can also secure your server by allowlisting Retell's IP address: 100.20.5.228AI Evy
12/17/2024, 2:29 PM