normanluis
08/13/2025, 5:31 PMAI Evy
08/13/2025, 5:31 PMAI Evy
08/13/2025, 5:32 PMPOST /v2/create-phone-call [(1) ]() . The correct URL is ` .
Here's the exact structure 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: '+14157774444',
to_number: '+12137774445',
}) ;
console.log(phoneCallResponse.agent_id) ;
The required fields for the API call are :
- `from_number`: Your Retell number in E.164 format
- `to_number`: The number to call in E.164 format
- `override_agent_id`: Your agent ID (optional override)
Common causes of 404 errors include [(2) ]() , [(3) ]() :
- Using an incorrect phone number that isn't connected to your account [(2) ]()
- API key issues
- Invisible whitespace at the end of the URL [(4) ]()
- Using a from_number that isn't a Retell AI phone number [(3) ]()
Make sure your from_number is a phone number purchased from or imported to Retell [(1) ]() , and verify your agent is published and accessible [(5) ]() .AI Evy
08/13/2025, 5:32 PMAI Evy
08/13/2025, 5:32 PMnormanluis
08/13/2025, 5:36 PMAI Evy
08/13/2025, 5:37 PM