https://retellai.com/?utm_source=discord&utm_medium=seo logo
{"status":"error","message":"Not Found"}in api ref...
# ❓・ai-evy-support
u
@AI Evy {"status":"error","message":"Not Found"} in api reference in Create a new outbound phone call
a
Thanks for tagging me @.manthu. I'll look through relevant sources and get back to you shortly.
### Answer The "Not Found" error typically occurs when using an incorrect endpoint or when your phone number isn't properly configured [(1) ]() . For creating outbound phone calls, use the correct endpoint:
POST /v2/create-phone-call
[(2) ]() . Here's the proper implementation:
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) ;
Before making outbound calls, ensure: 1. Phone number is properly bound to an agent - You need to assign an
outbound_agent_id
to your phone number [(3) ]() . If
outbound_agent_id
is null, the number cannot initiate outbound calls without an agent id override [(4) ]() . 2. **Required parameters are included**: - `from_number`: Your Retell number in E.164 format [(2) ]() - `to_number`: The destination number in E.164 format 3. **Authorization header is correct**: Use
Bearer YOUR_RETELL_API_KEY
format If you're still getting 404 errors, verify your phone number is properly configured by listing your phone numbers first:
Copy code
javascript
import Retell from 'retell-sdk';
const client = new Retell({
 apiKey: 'YOUR_RETELL_API_KEY',
}) ;
const phoneNumberResponses = await client.phoneNumber.list() ;
console.log(phoneNumberResponses) ;
[(1) ]()
​ To learn more, see the sources I considered: [[1] V2 create-phone-call endpoint returns 404 Not Found — API Access?](https://discord.com/channels/1186424376300679209/1384549347605221438) [[2] Create Phone Call](https://docs.retellai.com/api-references/create-phone-call) [[3] Outbound calls (make calls)](https://docs.retellai.com/deploy/outbound-call) [[4] Create Phone Number](https://docs.retellai.com/api-references/create-phone-number) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.