hnc_b24
05/19/2025, 3:20 PMAI Evy
05/19/2025, 3:20 PMAI Evy
05/19/2025, 3:20 PMcall_inbound
Note: There's an upcoming change where inbound_dynamic_variables_webhook_url is being replaced by inbound_webhook_url as part of the number configuration [(4) ]() .AI Evy
05/19/2025, 3:20 PMAI Evy
05/19/2025, 3:20 PMhnc_b24
05/19/2025, 3:26 PMhnc_b24
05/19/2025, 3:27 PMAI Evy
05/19/2025, 3:27 PMAI Evy
05/19/2025, 3:27 PMPOST the payload to your endpoint
- Timeout is 10 seconds with up to 3 retries if no success status (2xx) is received
2. Prepare your webhook to handle this payload format :
json
{
"event": "call_inbound",
"call_inbound": {
"agent_id": "agent_12345",
"from_number": "+12137771234",
"to_number": "+12137771235"
}
}
3. Configure your webhook response :
json
{
"call_inbound": {
"override_agent_id": "agent_12345",
"dynamic_variables": {
"customer_name": "John Doe"
},
"metadata": {
"random_id": "12345"
}
}
}
4. Optional fields you can include in response [(2) ]() :
- `override_agent_id`: to override the agent id
- `override_agent_version`: to override the agent version
- `dynamic_variables`: to set dynamic variables
- `metadata`: to set metadata
Important notes:
- The webhook is part of your number configuration and works for purchased or imported numbers [(1) ]()
- You can use this webhook to decline calls by leaving the call_inbound object empty
- The webhook can be verified using your Retell API Key
If you want to use different agents under the same inbound phone number (like setting up a daytime agent and an afterhours agent) , this webhook configuration will enable that functionality [(3) ]() .AI Evy
05/19/2025, 3:27 PMAI Evy
05/19/2025, 3:27 PM