https://retellai.com/?utm_source=discord&utm_medium=seo logo
Can someone help me with getting my API endpoint t...
# ❓・ai-evy-support
t
@AI Evy Can someone help me with getting my API endpoint to create phone call to show up in my API keys? it should look something like this https://api.retellai.com/create-phone-call I'm stuck and can't figure it out and it doesn't appear in my keys
a
Thanks for tagging me @texasranga. I'll look through relevant sources and get back to you shortly.
### Answer I think there might be some confusion about how API keys work with Retell AI. API keys don't contain or "show" the API endpoints themselves [(1) ]() . The API endpoint ` is a standard endpoint that you call using your API key for authentication [(2) ]() . Here's how it works: 1. API keys are for authentication - they authenticate your requests to REST API endpoints, SDK integrations, and webhook endpoints [(1) ]() 2. The endpoint URL is separate - you use the endpoint ` and authenticate with your API key in the Authorization header [(2) ]() :
Copy code
Authorization: Bearer YOUR_API_KEY
[(1) ]() 3. Example usage - here's how you would use the create phone call endpoint:
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) ;
[(2) ]() You can try out the authentication in the [API Playground]() to see it in action [(1) ]() . The API key itself is just a token for authentication - the endpoints are documented separately in the API reference.
​ To learn more, see the sources I considered: [[1] API Key Overview](https://docs.retellai.com/accounts/api-keys-overview) [[2] Create Phone Call](https://docs.retellai.com/api-references/create-phone-call) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.