Skip to main content
POST
cURL
Every request requires ?beta=true.

Authorizations

X-Api-Key
string
header
default:sk-ant-local-default
required

OMA workspace API key.

Headers

anthropic-version
string

The OMA API compatibility version to use.

anthropic-beta
string

Beta header that enables the Managed Agents API contract.

Query Parameters

beta
enum<boolean>
default:true
required

Selects the beta API contract for this endpoint. Must be true.

Available options:
true

Body

application/json

Request parameters for creating an agent.

model
required

Model identifier. Accepts the model string, e.g. claude-opus-4-6, or a model_config object for additional configuration control

Example:

"claude-sonnet-4-6"

name
string
required

Human-readable name for the agent.

Required string length: 1 - 256
Example:

"My First Agent"

description
string | null

Description of what the agent does.

Maximum string length: 2048
Example:

"A general-purpose starter agent."

mcp_servers
object[]

MCP servers this agent connects to. Maximum 20. Names must be unique within the array. Every server must be referenced by an mcp_toolset in tools; unreferenced servers are rejected. See the MCP connector guide.

metadata
object

Arbitrary key-value metadata. Maximum 16 pairs, keys up to 64 chars, values up to 512 chars.

Example:
multiagent
object | null

Multiagent orchestration configuration. Currently supports the coordinator topology with a roster of 1-20 agents.

Example:
skills
object[]

Skills available to the agent.

Skill to load in the session container.

Example:
system
string | null

System prompt for the agent.

Maximum string length: 100000
Example:

"You are a general-purpose agent that can research, write code, run commands, and use connected tools to complete the user's task end to end."

tools
object[]

Tool configurations available to the agent. Maximum of 128 tools across all toolsets allowed.

Configuration for built-in agent tools. Use this to enable or disable groups of tools available to the agent.

Example:

Response

Successful response (OK)

A Managed Agents agent.

id
string
required
Example:

"agent_011CZkYpogX7uDKUyvBTophP"

archived_at
string<date-time> | null
required

When the agent was archived. Null if not archived.

Example:

null

created_at
string<date-time>
required

A timestamp in RFC 3339 format

Example:

"2026-03-15T10:00:00Z"

description
string | null
required
Example:

"A general-purpose starter agent."

mcp_servers
object[]
required
Example:
metadata
object
required
Example:
model
object
required

Model identifier and configuration.

Example:
multiagent
object | null
required

Multiagent orchestration configuration. Null when the agent is single-threaded.

Example:
name
string
required
Example:

"My First Agent"

skills
object[]
required

Resolved skill as returned in API responses.

Example:
Example:
system
string | null
required
Example:

"You are a general-purpose agent that can research, write code, run commands, and use connected tools to complete the user's task end to end."

tools
object[]
required

Union type for tool configurations returned in API responses.

Example:
type
enum<string>
required
Available options:
agent
Example:

"agent"

updated_at
string<date-time>
required

A timestamp in RFC 3339 format

Example:

"2026-03-15T10:00:00Z"

version
integer<int32>
required

The agent's current version. Starts at 1 and increments when the agent is modified.

Example:

1