panda_19545
06/08/2025, 6:53 AMAI Evy
06/08/2025, 6:53 AMAI Evy
06/08/2025, 6:54 AMPOST request with a payload containing :
- `agent_id`: if the number has an inbound agent ID set
- `from_number`: always present, helps identify the caller
- `to_number`: always present, helps identify the receiver
Sample request payload :
json
{
"event": "call_inbound",
"call_inbound": {
"agent_id": "agent_12345",
"from_number": "+12137771234",
"to_number": "+12137771235"
}
}
## Response Format
Your webhook should return a JSON response with fields grouped under call_inbound [(2) ]() :
- `override_agent_id`: to override the agent ID
- `override_agent_version`: to override the agent version
- `dynamic_variables`: to set dynamic variables for the call
- `metadata`: to set metadata for the call
Sample response :
json
{
"call_inbound": {
"override_agent_id": "agent_12345",
"override_agent_version": 1,
"dynamic_variables": {
"customer_name": "John Doe"
},
"metadata": {
"random_id": "12345"
}
}
}
## Key Details
- Webhook timeout is 10 seconds with up to 3 retries [(3) ]()
- Can be verified using your Retell API Key
- If webhook fails and no inbound agent is set, the call will disconnect [(2) ]()
- You can decline calls by leaving the call_inbound object empty when no inbound agent is configuredAI Evy
06/08/2025, 6:54 AMAI Evy
06/08/2025, 6:54 AM