The Managed Agents Agents API: define reusable, versioned agent configurations (model, system prompt, tools, MCP servers, skills).
All endpoints are gated behind the managed-agents-2026-04-01 beta
header, which is added automatically.
{:ok, agent} =
ReqAnthropic.Agents.create(
model: "claude-sonnet-4-6",
name: "My first agent",
system: "You are helpful."
)
Summary
Functions
Update an agent. Updating an agent creates a new version; prior versions remain accessible.
Functions
@spec create(keyword()) :: {:ok, map()} | {:error, ReqAnthropic.Error.t() | Exception.t()}
@spec delete( String.t(), keyword() ) :: {:ok, map()} | {:error, ReqAnthropic.Error.t() | Exception.t()}
@spec get( String.t(), keyword() ) :: {:ok, map()} | {:error, ReqAnthropic.Error.t() | Exception.t()}
@spec list(keyword()) :: {:ok, map()} | {:error, ReqAnthropic.Error.t() | Exception.t()}
@spec update( String.t(), keyword() ) :: {:ok, map()} | {:error, ReqAnthropic.Error.t() | Exception.t()}
Update an agent. Updating an agent creates a new version; prior versions remain accessible.