Awezome
08/27/2025, 8:26 AMAI Evy
08/27/2025, 8:26 AMAI Evy
08/27/2025, 8:26 AMfrom_number and to_number in E.164 format [(4) ]() [(1) ]() .
5. Install the SDK:
npm i retell-sdk
[(5) ]()
The SDK approach is more reliable and handles authentication and request formatting automatically [(5) ]() [(2) ]() [(3) ]() .AI Evy
08/27/2025, 8:26 AM/v2/create-phone-call endpoint is a common issue that has been reported by multiple users [(1) ]() [(2) ]() [(3) ]() .
Here are the key troubleshooting steps:
1. Verify the correct endpoint URL:
Make sure you're posting to ` [(2) ]() [(3) ]() .
2. Use the SDK instead of direct API calls:
The recommended approach is to use the Retell SDK rather than making direct HTTP requests . Here's the correct implementation:
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) ;AI Evy
08/27/2025, 8:26 AMAI Evy
08/27/2025, 8:26 AM