API notes
Same concepts, endpoints and object shapes as Claude Managed Agents (beta managed-agents-2026-04-01), so existing client code moves across by changing the base URL and the API key. The beta header is accepted and ignored.
import Anthropic from "@anthropic-ai/sdk";
const client = new Anthropic({ apiKey: process.env.MAA_API_KEY, baseURL: "https://agents.example.co.uk" });
const agent = await client.beta.agents.create({ name: "Analyst", model: "claude-opus-5-5", system: "..." });
The end-to-end test (npm run e2e) drives this API with the official TypeScript SDK.
What is the same
| Resource | Endpoints |
|---|---|
| Agents | POST/GET /v1/agents, GET/POST /v1/agents/{id} (optimistic version), POST /v1/agents/{id}/archive, GET /v1/agents/{id}/versions |
| Environments | POST/GET /v1/environments, GET/POST/DELETE /v1/environments/{id}, POST …/archive. cloud with limited/unrestricted networking |
| Sessions | POST/GET /v1/sessions, GET/POST/DELETE /v1/sessions/{id}, POST …/archive. Agent as id, {type:"agent",id,version} or agent_with_overrides. initial_events, vault_ids, budget, resources (file, github_repository, memory_store) |
| Events | GET /v1/sessions/{id}/events, POST …/events, GET …/events/stream (SSE, event_deltas[]=agent.message previews) |
| Event types | user.message, user.interrupt, user.custom_tool_result, user.tool_confirmation, user.define_outcome, system.message; agent.message, agent.thinking, agent.tool_use/_result, agent.mcp_tool_use/_result, agent.custom_tool_use; session.status_running/_idle/_terminated, session.usage, session.error, session.updated; span.model_request_start/_end; span.outcome_evaluation_start/_end |
| Tools | agent_toolset_20260401 (bash, read, write, edit, glob, grep, web_fetch, web_search) with always_allow/always_ask/auto policies; custom tools; mcp_toolset over remote MCP servers (streamable HTTP) |
| Vaults | /v1/vaults + /credentials: environment_variable (substituted at egress; the sandbox only sees a placeholder), static_bearer and mcp_oauth (refresh-token rotation, POST …/mcp_oauth_validate) for MCP |
| Multi-agent | multiagent: {type: "coordinator", agents: [...]} on an agent. The coordinator gets one call_agent__<name> tool per callable agent; each call runs as a thread (a child session sharing the sandbox). GET /v1/sessions/{id}/threads; thread events at /v1/sessions/{thread_id}/events. One level deep. Events session.thread_created / session.thread_idle on the coordinator |
| Memory | /v1/memory_stores, /memories (409 on path conflict, content_sha256 preconditions), /memory_versions (+ redact). Mounted at /mnt/memory/<name>/, written back as versions |
| Deployments | /v1/deployments (cron + timezone, pause/unpause/archive/run), /v1/deployment_runs |
| Files | /v1/files upload/list/get/content/delete; session outputs from /mnt/session/outputs/ appear with scope_id = session id |
| Outcomes | user.define_outcome with a text or file rubric; a separate grader call decides satisfied / needs_revision / max_iterations_reached |
| Errors | Same envelope: {type:"error", error:{type, message}, request_id} |
What is added
regionon agents, environments and sessions (uk-londondefault). The three must agree, the same way the platform pins inference geography.GET /v1/regionslists what each region offers.residencyon every session: where inference, sandbox, storage and keys actually run.max_runtime_secondson sessions: the paid hours. At 85% the agent is told to finish; at 100% the session stops withstop_reason.type = "runtime_limit_reached".- Budgets in GBP or EUR as well as USD (
max_list_cost.currency). - Webhooks:
POST/GET /v1/webhooks,GET/POST/DELETE /v1/webhooks/{id},POST …/rotate_secret,POST …/test,GET …/deliveries. Event types:session.status_running,session.status_idle,session.status_terminated,session.error,session.thread_created,session.thread_idle,span.outcome_evaluation_end,session.deleted,certificate.issued,deployment_run.created,engagement.updated(or*). Payloads carry ids and status only, never message or tool content. HeaderMAA-Signature: t=<unix>,v1=<hex HMAC-SHA256(secret, "<t>.<body>")>; reject iftis older than 5 minutes. - Egress proxy: sandboxes get
HTTP_PROXY/HTTPS_PROXYandMAA_EGRESS_URL. Plain HTTP is rewritten in flight; for HTTPS calls that need a secret,curl -s "$MAA_EGRESS_URL/fetch" -d '{"url":"https://api.example.com/x","headers":{"Authorization":"Bearer '"$API_TOKEN"'"}}'sends it through the proxy, which substitutes the secret (only for the credential'sallowed_hosts) and masks it in the response. - Billing (Cloud):
GET /v1/billing/balance,GET /v1/billing/statement?month=YYYY-MM,GET /v1/invoices,GET /v1/invoices/{id}(.htmlprintable). WithBILLING_ENFORCE=on, creating a session without credit or a plan is402 billing_error, and over the plan's concurrency429. - Engagements (Managed):
GET /v1/engagements,GET /v1/engagements/{id}(milestones, workspace, days used). - Prices: public
GET /v1/pricingfor both solutions. - Templates:
GET /v1/templates,GET /v1/templates/{id},POST /v1/templates/{id}/instantiatecreates a ready agent and environment (lessons-learned, consultant, sprint-facilitator, company-analyst, bid-writer, policy-checker, research-coordinator with its callee). - Rate limits:
/v1/*per API key (default 20/s, burst 60;RATE_LIMIT_API_PER_SECOND), sign-in 5 a minute per IP. Over the limit:429 rate_limit_errorwithretry-after.RATE_LIMIT=offdisables. DELETE /v1/sessions/{id}returns a signed certificate of deletion.GET /v1/certificates,GET /v1/certificates/{id}(.htmlfor the printable version), publicGET /v1/certificates/{id}/verify,POST /v1/certificates/verify,GET /v1/certificates/public_key,GET /v1/transparency_log.
What is different or not there yet
- Models: only those with in-Region inference in the chosen region (London: Claude Opus 5.5 and Claude Sonnet 5). Asking for another model is a 400, not a silent cross-border call.
- Web search runs through Brave Search (if
BRAVE_API_KEYis set) or DuckDuckGo's HTML endpoint, from the region. Bedrock has no server-side web tools. - Vault substitution covers
web_fetch, MCP calls and sandbox traffic through the egress proxy. Inside TLS tunnels (CONNECT) nothing can be rewritten, so use$MAA_EGRESS_URL/fetchfor HTTPS calls that need a secret. - Multi-agent is one level (coordinator → threads), like the platform; nested coordinators are refused.
- Not available: Anthropic-hosted skills (Bedrock has none; ship skills as files in the sandbox or memory stores) and self-hosted environments.