chopek
11/27/2025, 9:05 AMAI Evy
11/27/2025, 9:05 AMAI Evy
11/27/2025, 9:06 AMAI Evy
11/27/2025, 9:06 AMignore_e164_validation to true in your API call [(3) ]() :
javascript
const phoneCallResponse = await client.call.createPhoneCall({
from_number: '+14157774444',
to_number: '+12137774445',
ignore_e164_validation: true
}) ;AI Evy
11/27/2025, 9:06 AMfrom_number must be a phone number you've purchased and configured through Retell AI [(5) ]() , [(6) ]()
- The phone number should have an outbound_agent_id configured, or you need to use the override_agent_id parameter [(5) ]() , [(6) ]()
- Ensure you're using the correct parameter names: override_agent_id instead of agent_id, and retell_llm_dynamic_variables instead of custom_data [(5) ]() , [(6) ]()
If you're still experiencing issues after verifying these points, I'd recommend checking the detail logs in your call history (call history → choose the call → detail logs tab) [(1) ]() to identify specific error codes.
**AI Evy
11/27/2025, 9:06 AMchopek
11/27/2025, 9:12 AMAI Evy
11/27/2025, 9:12 AMAI Evy
11/27/2025, 9:13 AMjavascript
import Retell from 'retell-sdk';
const client = new Retell({
apiKey: 'YOUR_RETELL_API_KEY',
}) ;
const phoneNumberResponse = await client.phoneNumber.retrieve('+14157774444') ;
console.log(phoneNumberResponse.inbound_agent_id) ;
[(3) ]()
Ensure both inbound_agent_id and outbound_agent_id are properly set [(3) ]() [(1) ]() [(2) ]() .
Verify Zadarma-Specific Configuration
For Zadarma integration, you need to import your number with the correct termination URI [(4) ]() :
javascript
const phoneNumberResponse = await client.phoneNumber.import({
phone_number: '+14157774444',
termination_uri: 'someuri.pstn.twilio.com',
}) ;AI Evy
11/27/2025, 9:13 AMAI Evy
11/27/2025, 9:13 AMAI Evy
11/27/2025, 9:13 AM