POST /v1/agents
Creates a new Agent configuration.
Headers
| Header | Required | Description |
|---|---|---|
Authorization | Yes | Bearer <PAT> |
Content-Type | Yes | application/json |
Idempotency-Key | No | Idempotency key to prevent duplicate creation |
Request body
| Field | Type | Required | Description |
|---|---|---|---|
name | string | Yes | Agent name, 1-256 characters |
model | string | Yes | Model identifier, such as "ultimate". Use List models to discover available values |
system | string | No | System prompt, at most 100000 characters |
description | string | No | Agent description, at most 2048 characters |
tools | array of Agent tool | No | Tool configuration list, up to 128 entries |
mcp_servers | array of MCP server | No | MCP server configuration list, up to 20 entries. Authentication is configured through Vaults. |
skills | array of Skill binding | No | Skill bindings, up to 20 entries |
metadata | Metadata object | No | Custom metadata. Defaults to {} |
multiagent | Multiagent | No | Managed Agents configuration. When set, requires an agent_toolset_20260401 tool entry |
Example request
Example response
HTTP 201 CreatedResponse fields
| Field | Type | Description |
|---|---|---|
type | string | Always "agent" |
id | string | Agent unique identifier with the agent_ prefix |
name | string | Agent name |
description | string | Agent description |
model | string | Model identifier |
system | string | System prompt |
tools | array of Agent tool | Tool configuration list |
mcp_servers | array of MCP server | MCP server configuration |
skills | array of Skill binding | Skill bindings |
metadata | Metadata object | Custom metadata |
multiagent | Multiagent | null | Managed Agents configuration, null when not set |
version | integer | Current version, starting at 1 |
archived | boolean | Whether archived (default false) |
archived_at | string|null | Archive time (ISO 8601), null when not archived |
created_at | string | Creation time (ISO 8601) |
updated_at | string | Last update time (ISO 8601) |
Errors
| HTTP | Type | Trigger |
|---|---|---|
| 400 | invalid_request_error | Missing required field name |
| 400 | invalid_request_error | name exceeds 256 characters |
| 400 | invalid_request_error | Missing required field model |
| 400 | invalid_request_error | tools exceeds the maximum of 128 entries |
| 400 | invalid_request_error | Invalid mcp_servers or skills configuration |
| 400 | invalid_request_error | skills exceeds the maximum of 20 entries |
| 400 | invalid_request_error | multiagent.type is not "coordinator" |
| 400 | invalid_request_error | multiagent.agents is empty or exceeds the maximum of 20 entries |
| 400 | invalid_request_error | multiagent is set but tools is missing an agent_toolset_20260401 entry |
| 400 | invalid_request_error | Agent ID referenced in multiagent.agents does not exist |
| 401 | authentication_error | PAT invalid or expired |
| 403 | permission_error | Not authorized for this operation |
Error response example
Related
Agent setup
Create a reusable, versioned agent configuration.