conner8079
10/08/2025, 1:19 PMAI Evy
10/08/2025, 1:19 PMAI Evy
10/08/2025, 1:20 PMoverride_agent_id (not agent_id) to override the agent for a specific call [(1) ]() . The parameter override_agent_id is specifically designed for this purpose - it overrides the agent used for this particular call without binding the agent to the number permanently .
Here's the correct usage from the documentation:
javascript
import Retell from 'retell-sdk';
const client = new Retell({
apiKey: 'YOUR_RETELL_API_KEY',
}) ;
const phoneCallResponse = await client.call.createPhoneCall({
from_number: '+12137771234',
to_number: '+12137771235',
override_agent_id: 'oBeDLoLOeuAbiuaMFXRtDOLriTJ5tSxD',
}) ;
A common issue mentioned in the community is that if the from_number is assigned to an agent in the dashboard, it will override your parameters [(2) ]() . This means the phone number's bound agent takes precedence over the override parameter.
To resolve this:
1. Ensure you're using override_agent_id instead of agent_id [(1) ]()
2. Check if your from_number has an outbound agent bound to it in the dashboard [(3) ]()
3. If needed, you can temporarily unbind the agent from the phone number using the update phone number API by setting outbound_agent_id to null [(3) ]()AI Evy
10/08/2025, 1:20 PMAI Evy
10/08/2025, 1:20 PMconner8079
10/08/2025, 1:33 PMAI Evy
10/08/2025, 1:33 PMAI Evy
10/08/2025, 1:33 PM133e650de7fe560b264d8f122b may not exist or may be incorrect . Agent IDs in the documentation examples follow the format oBeDLoLOeuAbiuaMFXRtDOLriTJ5tSxD .
2. **Phone number ownership**: The from_number +16205826635 must be a number purchased from Retell or imported to Retell . If this number isn't owned by your account, you'll get a 404 error.
3. **Destination number restrictions**: If using a number purchased from Retell, only US numbers are supported as destination . Your to_number +14194197777 appears to be a US number, so this shouldn't be the issue.
To troubleshoot:
1. Verify your agent ID exists by checking your dashboard or using the agent API
2. Confirm the from_number is owned by your Retell account [(2) ]() [(3) ]()
3. Ensure you're using the correct API endpoint format with proper authentication headers [(1) ]()
Here's the correct API call structure from the documentation:
javascript
const response = await retellClient.call.createPhoneCall({
from_number: '+14157774444',
to_number: '+12137774445',
override_agent_id: 'oBeDLoLOeuAbiuaMFXRtDOLriTJ5tSxD'
}) ;
[(4) ]()AI Evy
10/08/2025, 1:33 PMAI Evy
10/08/2025, 1:33 PMconner8079
10/08/2025, 1:40 PMAI Evy
10/08/2025, 1:40 PMAI Evy
10/08/2025, 1:40 PMreminder_trigger_ms [(1) ]() [(2) ]() [(3) ]() [(4) ]() and ring_duration_ms , but these relate to reminders during active calls and ring duration, not callback retry timing.
Check out these potentially useful sources: [List Agents]() , [Create Agent]() , [Update Agent]()
Would you like me to try to answer generally based on my knowledge instead?AI Evy
10/08/2025, 1:40 PMAI Evy
10/08/2025, 1:40 PM