Create Agent
Create Agent through the OMA API.
?beta=true.Authorizations
OMA workspace API key.
Headers
The OMA API compatibility version to use.
Beta header that enables the Managed Agents API contract.
Query Parameters
Selects the beta API contract for this endpoint. Must be true.
true Body
Request parameters for creating an agent.
Model identifier. Accepts the model string, e.g. claude-opus-4-6, or a model_config object for additional configuration control
"claude-sonnet-4-6"
Human-readable name for the agent.
1 - 256"My First Agent"
Description of what the agent does.
2048"A general-purpose starter agent."
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.
Arbitrary key-value metadata. Maximum 16 pairs, keys up to 64 chars, values up to 512 chars.
Multiagent orchestration configuration. Currently supports the coordinator topology with a roster of 1-20 agents.
Skills available to the agent.
Skill to load in the session container.
- Option 1
- Option 2
System prompt for the agent.
100000"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."
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.
- Option 1
- Option 2
- Option 3
Response
Successful response (OK)
A Managed Agents agent.
"agent_011CZkYpogX7uDKUyvBTophP"
When the agent was archived. Null if not archived.
null
A timestamp in RFC 3339 format
"2026-03-15T10:00:00Z"
"A general-purpose starter agent."
Model identifier and configuration.
Multiagent orchestration configuration. Null when the agent is single-threaded.
"My First Agent"
Resolved skill as returned in API responses.
- Option 1
- Option 2
"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."
Union type for tool configurations returned in API responses.
- Option 1
- Option 2
- Option 3
agent "agent"
A timestamp in RFC 3339 format
"2026-03-15T10:00:00Z"
The agent's current version. Starts at 1 and increments when the agent is modified.
1