andre_15041
12/05/2025, 1:18 PMAI Evy
12/05/2025, 1:18 PMAI Evy
12/05/2025, 1:18 PMfrom_number and to_number must be in E.164 format [(1) ]() [(2) ]() .
Common causes:
1. Phone number format - Ensure both numbers use E.164 format (e.g., "+14157774444")
2. From number configuration - The from_number must be a number purchased from Retell or imported to Retell [(1) ]() [(3) ]()
3. Endpoint URL - Verify you're using ` [(4) ]()
Required request format:
json
{
"from_number": "+14157774444",
"to_number": "+12137774445",
"override_agent_id": "agent_id_here"
}
[(1) ]()
Headers must include:
- Authorization: Bearer YOUR_API_KEY
- Content-Type: application/json [(1) ]() [(3) ]()
If your phone numbers aren't in E.164 format (starting with + and country code) , that's likely causing the 404 error [(2) ]() .AI Evy
12/05/2025, 1:18 PMAI Evy
12/05/2025, 1:18 PMandre_15041
12/05/2025, 1:20 PMandre_15041
12/05/2025, 1:20 PMAI Evy
12/05/2025, 1:20 PMAI Evy
12/05/2025, 1:20 PMAI Evy
12/05/2025, 1:20 PMfrom_number must be a number purchased from Retell or imported to Retell [(3) ]() [(4) ]()
2. Agent binding - The phone number should have an outbound_agent_id configured, or you must use the override_agent_id parameter in your request [(1) ]() [(2) ]()
3. Parameter naming - Ensure you're using override_agent_id (not agent_id) and retell_llm_dynamic_variables (not custom_data)
Correct payload structure:
json
{
"from_number": "+14157774444",
"to_number": "+12137774445",
"override_agent_id": "oBeDLoLOeuAbiuaMFXRtDOLriTJ5tSxD",
"retell_llm_dynamic_variables": {
"customer_name": "John Doe"
}
}
[(3) ]()
Phone number setup:
If your phone number isn't configured for outbound calls, you'll need to update it [(1) ]() [(2) ]() :
javascript
const phoneNumberResponse = await client.phoneNumber.update('+14157774444', {
inbound_agent_id: 'oBeDLoLOeuAbiuaMFXRtDOLriTJ5tSxD',
nickname: 'Frontdesk Number',
outbound_agent_id: 'oBeDLoLOeuAbiuaMFXRtDOLriTJ5tSxD',
}) ;AI Evy
12/05/2025, 1:20 PM