### 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.