Register a new agent in a project and receive its initial AgentKey in one call. Requires Admin privilege. The API key is shown only once in the response.
Creating an agent registers an AI system with OTAS under a specific project and automatically generates the initial AgentKey used to authenticate sessions. The full API key is included in this response — it is never retrievable again after creation, so store it immediately in a secrets manager or environment variable.
Only users with Admin privilege (privilege=1) on the project can create agents.
The full api_key value is returned only in this response. The plaintext key is never stored by OTAS and cannot be retrieved later. Save it to a secrets manager or environment variable immediately.