https://retellai.com/?utm_source=discord&utm_medium=seo logo
I am Creating an call agent appHow do you handle ...
# ❓・ai-evy-support
s
@AI Evy I am Creating an call agent app How do you handle multi-tenant users, and apikey creation per user/company ? Each of my users got its own api key. Do you create them under the same workspace? What are the limits of creating a lot of workspaces ?
a
Thanks for tagging me @so16. I'll look through relevant sources and get back to you shortly.
### Answer Based on the available documentation, Retell AI does not provide API endpoints to programmatically create workspaces or API keys [(1) ]() . You cannot create or manage API keys via API - they must be created manually through the Retell dashboard . For multi-tenant architecture, the recommended approach is to use a single workspace and maintain separate Retell agents and LLMs per tenant in your own database [(2) ]() . You can create agents programmatically using the API , and differentiate tenants through your application logic rather than separate workspaces. Regarding workspaces: - You can have up to 50 workspaces with unlimited agent creation [(3) ]() - However, there's no API support for creating, listing, or managing workspaces programmatically [(1) ]() - Each workspace requires its own API key that must be manually created [(4) ]() [(1) ]() The lack of workspace and API key management via API means that if you need a new workspace for each client, setup cannot be fully automated - it requires manual intervention through the Retell dashboard [(1) ]() . This is a known limitation for partners building multi-tenant applications . If you need different phone numbers per tenant, you can use custom Twilio setup with different Twilio accounts per tenant while maintaining agents in a single Retell wor
kspace [(2) ]() .
​ To learn more, see the sources I considered: [[1] Discord message from @jeffl6289 on 2025-01-19](https://discord.com/channels/1186424376300679209/1186462578310910112/1330350084218556436) [[2] Discord message from @dzhn10 on 2024-04-12](https://discord.com/channels/1186424376300679209/1186462578310910112/1228143832391221298) [[3] Multi env support](https://discord.com/channels/1186424376300679209/1273014207197216798) [[4] 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.