agent management
Create Agent Endpoint
Create an agent sub-user and issue its API key.
Returns agentId, agentEmail and agentApiKey. With HASH_API_KEY=true the raw key is shown only in this response; with the default (false) GET /api/v1/auth/api-keys also returns it to the agent. A name that already exists for this caller (compared lowercased, with spaces turned into hyphens) returns 409, and a caller that is itself an agent returns 403, since agents cannot create agents.
Query Parameters
- name (str): Unique name for the new agent user; a conflict is returned if an agent with this name exists.
POST
Create Agent Endpoint