https://retellai.com/?utm_source=discord&utm_medium=seo logo
what is the right url endpoint for the post to cre...
# ❓・ai-evy-support
r
@AI Evy what is the right url endpoint for the post to create a call, i've been trying this: https://api.retellai.com/v2/create-phone-call but i get 404
a
Thanks for tagging me @r_vh02. I'll look through relevant sources and get back to you shortly.
### Answer The URL endpoint you're using is correct [(1) ]() . According to the documentation, the endpoint for creating phone calls is `POST . However, there are several common causes for a 404 error with this endpoint [(2) ]() : 1. **Phone number configuration**: Make sure your phone number is properly configured in your Retell AI dashboard 2. **SIP trunk setup**: If you're using a provider like Telnyx, ensure it's properly connected to Retell AI following the setup documentation 3. **API authentication**: Verify your Bearer token is correctly formatted in the Authorization header The TypeScript SDK also confirms this endpoint exists as
client.call.createPhoneCall({ ...params })
[(3) ]() . If you continue getting 404 errors despite correct configuration, it may be a workspace-specific API access issue that requires contacting support [(2) ]() .
​ To learn more, see the sources I considered: [[1] Create Phone Call](https://docs.retellai.com/api-references/create-phone-call) [[2] V2 create-phone-call endpoint returns 404 Not Found — API Access?](https://discord.com/channels/1186424376300679209/1384549347605221438) [[3] RetellAI/retell-typescript-sdk/api.md](https://github.com/RetellAI/retell-typescript-sdk/blob/main/api.md) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.
a
Thanks for the follow-up, @r_vh02. I'll get back to you soon.
### Answer [(1) ]()
Copy code
javascript
import Retell from 'retell-sdk';
const client = new Retell({
 apiKey: 'YOUR_RETELL_API_KEY',
}) ;
const conversationFlowResponse = await client.conversationFlow.retrieve('conversation_flow_id') ;
console.log(conversationFlowResponse.conversation_flow_id) ;
[(2) ]() For creating phone calls, the endpoint is documented as
POST /create-phone-call
[(1) ]() . The API requires an Authorization header with your API key in the format "Bearer YOUR_API_KEY" . If you're getting a 404 error, it could be similar to the issue mentioned in the Discord where someone was trying to use an incorrect URL format [(3) ]() . Make sure you're using the correct base URL and endpoint path as documented in the official API reference [(1) ]() .
​ To learn more, see the sources I considered: [[1] Create Phone Call](https://docs.retellai.com/api-references/create-phone-call) [[2] Get Conversation Flow](https://docs.retellai.com/api-references/get-conversation-flow) [[3] API Endpoint "update-conversation-flow" Returns 404 Error](https://discord.com/channels/1186424376300679209/1399315609824530495) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.