https://retellai.com/?utm_source=discord&utm_medium=seo logo
I’m writing a script in Airtable
# ❓・ai-evy-support
e
@AI Evy I’m writing a script in Airtable. I want to trigger an outbound call when certain conditions are met. I get 201 error when initiating a webcall, 404 error when initiating a phone call https://cdn.discordapp.com/attachments/1302816169367044149/1430113727478239242/Screenshot_2025-10-21_at_11.16.10.png?ex=68f898b2&is=68f74732&hm=34cb382b0e71533df973d0d844ddb293fc53dc1beefc51ac288c899c26c99f8c&
a
Thanks for tagging me @efadelrey. I'll look through relevant sources and get back to you shortly.
### Answer A 404 error when creating phone calls typically indicates a phone number configuration issue [(1) ]() . Here's how to resolve this: ## Phone Number Requirements For outbound calls, you need a phone number that's either purchased from Retell or imported to Retell [(2) ]() [(3) ]() . The
from_number
must be a number you own in E.164 format [(3) ]() . ## Correct API Structure Use this exact format for creating outbound calls:
Copy code
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) ;
## Agent Configuration Before making calls, you must bind agents to your phone numbers [(2) ]() . You can either: 1. Set an
outbound_agent_id
on your phone number using the update API:
Copy code
javascript
const phoneNumberResponse = await client.phoneNumber.update('+14157774444', {
 inbound_agent_id: 'oBeDLoLOeuAbiuaMFXRtDOLriTJ5tSxD',
 nickname: 'Frontdesk Number',
 outbound_agent_id: 'oBeDLoLOeuAbiuaMFXRtDOLriTJ5tSxD',
}) ;
​ To learn more, see the sources I considered: [[1] 404 Error on Create a Phone Call](https://retell.discourse.group/t/404-error-on-create-a-phone-call/22) [[2] Outbound Calls (Make Calls)](https://docs.retellai.com/deploy/outbound-call) [[3] Create Phone Call](https://docs.retellai.com/api-references/create-phone-call) [[4] Update Phone Number](https://docs.retellai.com/api-references/update-phone-number) ​
[(4) ]() 2. Or use
override_agent_id
in your call request for one-time agent assignment [(3) ]() . ## Common Issues - Ensure your
from_number
is properly configured in your Retell account [(1) ]() - Use
override_agent_id
instead of
agent_id
- Use
retell_llm_dynamic_variables
instead of
custom_data
The 201 response for web calls suggests your API setup is working - the issue is specifically with phone number configuration for outbound calls.
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.