https://retellai.com/?utm_source=discord&utm_medium=seo logo
when creating an agent using the API, how can I sp...
# ❓・ai-evy-support
s
@AI Evy when creating an agent using the API, how can I specify which workspace and folder to create the agent into
a
Thanks for tagging me @sanjay_69738. I'll look through relevant sources and get back to you shortly.
### Answer ## Workspace Selection To create an agent in a specific workspace, you need to change the authentication key in your API request to the API key of that workspace [(1) ]() . Each workspace has its own API key, and the agent will be created in whichever workspace corresponds to the API key you use in the Authorization header . ## Folder Organization I don't have information in the available sources about specifying a folder when creating an agent via the API. The Create Agent API documentation [(2) ]() doesn't include a folder parameter in the request payload. If you need more details about folder organization through the API, I'd be happy to try answering more generally if you'd like. Otherwise, you might want to check out these potentially useful sources: - [Create Agent]() - [Create Agent API in different Workspace]() You can also visit [Contact Sales]() or [) for additional support.
​ To learn more, see the sources I considered: [[1] Create Agent API in different Workspace](https://discord.com/channels/1186424376300679209/1371122694418075678) [[2] Create Agent](https://docs.retellai.com/api-references/create-agent) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.
s
@AI Evy we use folders in the workspace to organize agents. How can I do that with the API when creating an agent
a
Thanks for the follow-up, @sanjay_69738. I'll get back to you soon.
### Answer I don't have information in the available sources about specifying a folder when creating an agent via the Retell AI API. The sources provided don't include any parameters or methods for folder organization through the API. Based on what I can see, the Create Agent API endpoint doesn't appear to support folder specification in the request payload. Folder organization might only be available through the Retell AI dashboard interface rather than programmatically through the API. Would you like me to try answering more generally based on common API patterns? Otherwise, here are some potentially useful resources: - [Building AI Agents: The Ultimate Guide for Non-Programmers | Retell AI]() You can also visit [Contact Sales]() or [) for additional support about folder organization capabilities in the API.
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.
message has been deleted