https://retellai.com/?utm_source=discord&utm_medium=seo logo
how do I Enable API Access for Outbound Calling
# ❓・ai-evy-support
c
@AI Evy how do I Enable API Access for Outbound Calling
a
Thanks for tagging me @caedg_57932. I'll look through relevant sources and get back to you shortly.
### Answer To enable API access for outbound calling with Retell AI, you need to complete a few setup steps [(1) ]() : Step 1: Purchase or Import a Phone Number You need a phone number that will serve as your
from_number
for outbound calls [(2) ]() [(1) ]() . You can purchase a number through Retell AI or import an existing one [(1) ]() . Step 2: Create an Agent Set up an agent in your Retell AI dashboard that will handle the outbound calls . Step 3: Get Your API Key [(2) ]() Your API key is required for authorization and can be found in your dashboard . Use it in the Authorization header as "Bearer YOUR_API_KEY" . Step 4: Make API Calls [(2) ]() [(1) ]() Once you have your phone number, agent, and API key, you can create outbound calls using the Create Phone Call API :
Copy code
javascript
import Retell from 'retell-sdk';

const client = new Retell({
 apiKey: 'YOUR_RETELL_API_KEY',
}) ;

const registerCallResponse = await client.call.createPhoneCall({
 from_number: '+14157774444', // replace with the number you purchased
 to_number: '+12137774445', // replace with the number you want to call
 override_agent_id: 'agent_abc123',
 override_agent_version: 0, // or omit to use latest
 retell_llm_dynamic_variables: { 
 name: 'John Doe',
 blood_group: 'B+'
 }
}) ;
console.log(registerCallResponse) ;
[(1) ]() Required Parameters: [(2) ]() - `from_number`: Your Retell number in E.164 format - `to_number`: The destination number in E.164 format The API endpoint is `POST . If you're getting a 404 error, ensure your phone number is properly configured and connected to Retell AI [(3) ]() .
​ To learn more, see the sources I considered: [[1] Outbound Calls (Make Calls)](https://docs.retellai.com/deploy/outbound-call) [[2] Create Phone Call](https://docs.retellai.com/api-references/create-phone-call) [[3] V2 create-phone-call endpoint returns 404 Not Found — API Access?](https://discord.com/channels/1186424376300679209/1384549347605221438) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.
c
❗YOU DO NOT YET HAVE ACCESS TO: ✔ retll_live_xxxxx secret API keys ✔ the developer toolkit ✔ the outbound-call API ✔ the correct authentication system Which is why Zapier keeps returning:
@AI Evy I DO NOT YET HAVE ACCESS TO: ✔ retll_live_xxxxx secret API keys ✔ the developer toolkit ✔ the outbound-call API ✔ the correct authentication system Which is why Zapier keeps returning?
a
Thanks for the follow-up, @caedg_57932. I'll get back to you soon.
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.
### Answer Based on the available sources, I don't have specific information about access restrictions or approval processes for Retell AI's API features. However, I can confirm that API keys are managed through your workspace settings [(1) ]() [(2) ]() . To create an API key [(2) ]() : 1. Navigate to the "API Keys" section in System "Settings" 2. Click the "Add" button 3. Give your key a descriptive name Your API key should then be used in the Authorization header as:
Authorization: Bearer YOUR_API_KEY
[(1) ]() . If you're experiencing authentication issues with Zapier despite having created an API key, this may indicate an account access or permissions issue that isn't covered in the available documentation. I'd recommend reaching out to Retell AI support directly for account-specific access questions: - Visit [Contact Sales]() - Visit [) Would you like me to provide a general answer about typical API access patterns, or do you have other questions about the documented features I can help with?
​ To learn more, see the sources I considered: [[1] API Key Overview](https://docs.retellai.com/accounts/api-keys-overview) [[2] Manage API Keys](https://docs.retellai.com/accounts/manage-api-keys) ​