https://retellai.com/?utm_source=discord&utm_medium=seo logo
can you advise on some api set up
# ❓・ai-evy-support
c
@AI Evy can you advise on some api set up?
a
Thanks for tagging me @clientnexus_71205. I'll look through relevant sources and get back to you shortly.
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.
### Answer --- I'd be happy to help with API setup for Retell AI. To provide the most relevant guidance, could you clarify which specific API functionality you're looking to implement? Here are the main options: Chat APIs: - Creating a chat session [(1) ]() - Creating chat completions [(2) ]() - Retrieving chat details [(3) ]() - Listing all chats [(4) ]() Telephony APIs: - Registering phone calls [(5) ]() Each API requires authentication using your API key in the format "Bearer YOUR_API_KEY" [(2) ]() [(5) ]() [(1) ]() . For example, to create a chat session, you would use:
Copy code
javascript
import Retell from 'retell-sdk';
const client = new Retell({
 apiKey: 'YOUR_RETELL_API_KEY',
}) ;
const chatResponse = await client.chat.create({ agent_id: 'oBeDLoLOeuAbiuaMFXRtDOLriTJ5tSxD' }) ;
console.log(chatResponse.agent_id) ;
[(1) ]() Let me know which specific API endpoint you need help with, and I can provide more detailed setup guidance.
c
@AI Evy im thinking to set an automatic account creation in my software for new users, which mean in retell will be automatic creation of new retell account accounts, but the situation is, i already have one acount, and thsis account already do everything rghtrelated to retell, ai agents, functions, paramethers, creations, voices, webhooks and etc, cani automizatize this creation? im talking about a retell account inside my main retell account, the account type that can have 20 concurrent calls at once, how this creation can be done? including send me back the api and also webhook and etc, like this new account will reflect the settings in my end and yothe settings of this account will reflect in in ym app for each user
a
Thanks for the follow-up, @clientnexus_71205. I'll get back to you soon.
### Answer Based on the available documentation, I don't have information about programmatically creating sub-accounts or workspace accounts within Retell AI through an API. The documentation covers managing API keys within an existing account [(1) ]() , but doesn't describe an API endpoint or method for automatically provisioning new Retell AI accounts or workspaces with inherited configurations (agents, functions, voices, webhooks, etc.) . For your use case—where you want each user in your software to have their own Retell account with 20 concurrent calls and replicated settings—this would likely require a different approach than what's documented in the available sources. I recommend reaching out to Retell AI directly for guidance on: - Whether multi-tenant or sub-account provisioning is supported - How to programmatically create accounts with inherited configurations - How API keys and webhooks would be managed across multiple accounts You can: - Visit [Contact Sales]() - Visit [) Would you like me to provide a general approach for how multi-tenant systems typically handle this type of architecture, even though it's not specifically documented for Retell AI? --- **
​ To learn more, see the sources I considered: [[1] Manage API Keys](https://docs.retellai.com/accounts/manage-api-keys) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.