stag_07348
06/10/2025, 2:56 PMAI Evy
06/10/2025, 2:56 PMAI Evy
06/10/2025, 2:57 PMagent_ prefix [(2) ]() . Make sure you're using the complete agent ID format.
2. **Invalid from_number**: The from_number must be a Retell AI phone number that you've purchased or imported [(1) ]() . You can't use arbitrary phone numbers as the from_number.
3. **Missing required parameters**: Ensure you're including all required parameters in your request body [(4) ]() :
- from_number (your Retell AI number in e.164 format)
- to_number (destination number in e.164 format)
4. **Authorization header**: Make sure you're including the proper authorization header with your API key [(1) ]() .
The correct API endpoint is https://api.retellai.com/v2/create-phone-call [(3) ]() .
Here's the correct format for Node.js [(4) ]() :
typescript
const registerCallResponse = await retell.call.createPhoneCall({
from_number: '+14157774444', // replace with the number you purchased
to_number: '+12137774445', // replace with the number you want to call
}) ;
And for Python :AI Evy
06/10/2025, 2:57 PMpython
call = client.call.create_phone_call(
from_number="+14157774444", # replace with the number you purchased
to_number="+12137774445", # replace with the number you want to call
)
Check that your from_number is a valid Retell AI number and your agent ID includes the full format.AI Evy
06/10/2025, 2:57 PMAI Evy
06/10/2025, 2:57 PMstag_07348
06/10/2025, 2:58 PMstag_07348
06/10/2025, 2:59 PMAI Evy
06/10/2025, 2:59 PMAI Evy
06/10/2025, 2:59 PMhttps://api.retellai.com/v2/create-phone-call and you'll need to make a POST request with the following required parameters [(2) ]() :
- `from_number`: Your Retell AI phone number in e.164 format
- `to_number`: The destination phone number in e.164 format
Make sure to include your API key in the Authorization header [(3) ]() .
For specific cURL syntax, I'd recommend checking the [Create Phone Call API Reference]() [(1) ]() which should have the complete cURL example, or you could try testing the API call directly in the Retell docs and copy the generated cURL command [(4) ]() .
If you continue getting the "Not Found" error, double-check that your from_number is a valid Retell AI number you've purchased or imported [(3) ]() and that your agent ID includes the full format with the agent_ prefix [(5) ]() .AI Evy
06/10/2025, 2:59 PMAI Evy
06/10/2025, 2:59 PMstag_07348
06/10/2025, 3:01 PMAI Evy
06/10/2025, 3:01 PMAI Evy
06/10/2025, 3:01 PMhttp
Authorization: Bearer YOUR_API_KEY
You can create and manage your API keys through the dashboard by clicking "Add" to create a new key with a descriptive name [(2) ]() .
If you're experiencing authentication issues, make sure you're using the correct API key format as provided by Retell AI when you created it [(1) ]() [(2) ]() .AI Evy
06/10/2025, 3:01 PMAI Evy
06/10/2025, 3:01 PM