kamalchd
08/13/2025, 5:37 PMAI Evy
08/13/2025, 5:38 PMAI Evy
08/13/2025, 5:38 PMAuthorization: Bearer YOUR_RETELL_API_KEY
3. Ensure proper phone number format
Both from_number and to_number must be in E.164 format . The from_number must be a number purchased from Retell or imported to Retell .
4. Verify required parameters
The API requires these mandatory fields :
- from_number (string, required)
- to_number (string, required)
Here's the correct JavaScript example 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) ;
Common issue: One user resolved their 404 error after realizing "It needed the from_number var to be a RetellAI phone number, which I hadn't given it" [(2) ]() . Make sure your from_number is actually a Retell AI phone number you own.
Another user found that properly configuring their phone number (in their case, a Telnyx number connected to Retell) resolved the 404 error [(3) ]() .AI Evy
08/13/2025, 5:38 PMAI Evy
08/13/2025, 5:38 PMAI Evy
08/13/2025, 7:35 PM