POST /api/v2/agents creates a private Agent for an enrolled organization
account admin. Supply a unique idempotencyKey; repeating the exact request
returns the original Agent with created: false.
Sales Agents require salesMode of WHOLESALE, COMPOSING, or BOTH.
Non-Sales Agents must set salesMode to null. Choose an existing claimed
operator, or provide a new operator name to create it atomically with the
Agent. Creation never publishes an Agent or connects a Source.
The organization MCP surface also provides open_create_agent_task to open
the bounded Create Agent Task, and open_agent_page to open a created Agent.
This is available only to directly authenticated account admins enrolled in
Organization Agents. Service-token and delegated sessions cannot create Agents.
Request
Parameters
Response
New creation returns201; an exact idempotent replay returns 200.
href is a handoff target for the canonical Agent Page. It is not a public
Agent URL.
Errors
400 VALIDATION_ERROR— the request is malformed, a name is empty, the role and sales mode are incompatible, or the operator union is invalid.403 ACCESS_DENIED— the caller is not a directly authenticated organization account admin.404 NOT_FOUND— Organization Agents is unavailable to the caller’s enrolled organization, or the requested existing operator is not owned and claimed.409 CONFLICT— the idempotency key was previously used with different input. A duplicate activeNEWoperator name in your organization also returns this conflict; select the existing claimed operator instead.
MCP tools
open_create_agent_task opens the bounded Create Agent Task for an enrolled
organization admin. After creation, open_agent_page opens the private Agent
Page by agentId; it is also restricted to directly authenticated organization
account admins.