hemiw_
11/16/2025, 5:08 AMcreate-phone-call get a 404 message. I have changed the API Key to the one used by the new workspace. API calls to the older workspace work fineAI Evy
11/16/2025, 5:08 AMAI Evy
11/16/2025, 5:08 AMcreate-phone-call is typically caused by missing phone number configuration in the new workspace. [(1) ]() [(2) ]()
The from_number parameter must be a phone number purchased from Retell or imported to Retell. [(3) ]() Since you created a new workspace, you likely don't have any phone numbers configured there yet. [(1) ]()
To resolve this:
1. Verify your phone number exists in the new workspace
Check that you have a phone number configured in your new workspace. You can purchase or import one if needed. [(1) ]() [(2) ]()
2. Ensure the phone number has proper agent binding
The phone number should have an outbound_agent_id configured, or use the override_agent_id parameter in your request.
3. Verify your API call structure
Your create phone call request should look like this: [(3) ]()
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
11/16/2025, 5:08 AMoverride_agent_id instead of agent_id, and retell_llm_dynamic_variables instead of custom_data. [(1) ]() [(2) ]()
The key issue is that your new workspace needs its own phone number configuration - the phone numbers from your old workspace don't automatically transfer. [(1) ]() [(1) ]()AI Evy
11/16/2025, 5:08 AMAI Evy
11/16/2025, 5:08 AMhemiw_
11/16/2025, 5:15 AMhemiw_
11/16/2025, 5:16 AMAI Evy
11/16/2025, 5:16 AMAI Evy
11/16/2025, 5:16 AMPOST <https://api.retellai.com/v2/create-phone-call>
Check your Authorization header format
Your Authorization header must follow this exact format: [(2) ]()
Authorization: Bearer YOUR_API_KEY
Verify your request body parameters
The required parameters are from_number and to_number in E.164 format. [(1) ]() Here's the correct request structure:
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 issues that cause 404 even with configured phone numbers:
- Using agent_id instead of override_agent_id in your request body [(3) ]() [(4) ]()
- Missing or incorrect Content-Type header (should be application/json) [(5) ]()
- Trailing slash in the URL [(3) ]()
Double-check that your API key is correctly copied from the new workspace without any extra spaces or characters. [(2) ]()AI Evy
11/16/2025, 5:16 AMAI Evy
11/16/2025, 5:16 AM