Talk to a general agent by naming the agent and no session: praxis.agent.agents.events.send (POST /agent/v1/agents/{agent_id}/events) is the way in, praxis.agent.agents.events.list reads the conversation and praxis.agent.agents.events.stream follows it live — one entry per person, the agent’s own endless main session, created on first use, under which the agent dispatches its own worker sessions; {agent_id} takes the agent_… id, the eight character identity number or the handle, and a service agent answers 400 (reach it over A2A or create a session explicitly). Agent runs versioned agents and their conversations: you save an agent (model, instructions, tools and bindings), open sessions against it, send events and read the events that come back. Concepts and behavior follow Anthropic Managed Agents (agents, environments, sessions and events), so Managed Agents experience applies. Differences: Unlike Managed Agents, an agent reaches platform resources through bindings (database, vector_store, file, media_library, model, workflow, script, search, browser), not through resource fields on the session; saving and applying are separate, so a real change saves a version and apply picks the active_version that new sessions use; an agent has a kind fixed at creation, general (a durable Computer, acting for its owner), service (a clean environment per session), or assume (driven by an external MCP client on a durable computer, with no conversation model); on the own face, a session budget has type “limit” and a max_list_cost whose amount is a decimal US-dollar string with at most 2 decimal places and currency USD; service agents default to 20.00, while general and assume agents have no session budget; and model ids come from the Praxis model catalog, not only Claude ids. Start with praxis.agent.agents.create, then open a session and read its events for the result. Deployments create sessions manually or on a cron schedule, record each run, and pause themselves on a creation error.
Base URL
https://api.deepraxis.com/agent
Get started
curl
curl https://api.deepraxis.com/agent/v1/agents \
-H "Authorization: Bearer $PRAXIS_API_KEY" \
-H "Content-Type: application/json" \
-d '{"name":"文档助手","model":"deepseek-flash","system":"用一句话简短回答。"}'
Python
import os
import requests
opts = dict(
base_url="https://api.deepraxis.com/agent",
api_key=os.environ["PRAXIS_API_KEY"],
)
# /agent 是我们自己的 Managed Agents 形状,直接发 HTTP 请求(Bearer 认证)
resp = requests.post(
f"{opts['base_url']}/v1/agents",
headers={"Authorization": f"Bearer {opts['api_key']}"},
json={"name":"文档助手","model":"deepseek-flash","system":"用一句话简短回答。"},
)
print(resp.status_code, resp.json())
TypeScript
const opts = {
baseURL: "https://api.deepraxis.com/agent",
apiKey: process.env.PRAXIS_API_KEY,
};
// /agent 是我们自己的 Managed Agents 形状,直接发 HTTP 请求(Bearer 认证)
const resp = await fetch(`${opts.baseURL}/v1/agents`, {
method: "POST",
headers: { Authorization: `Bearer ${opts.apiKey}`, "Content-Type": "application/json" },
body: JSON.stringify({"name":"文档助手","model":"deepseek-flash","system":"用一句话简短回答。"}),
});
console.log(resp.status, await resp.json());
See Agent for the domain overview; see Authentication for how keys work.
Endpoints
Agents (9 endpoints, 9 available)
Experiences (2 endpoints, 2 available)
BYOA agent letters (1 endpoints, 1 available)
Sessions on a BYOA device (1 endpoints, 1 available)
Sessions & events (22 endpoints, 22 available)
Run feedback (2 endpoints, 2 available)
Deployments (7 endpoints, 7 available)
Deployment runs (3 endpoints, 3 available)
End-user uploads (2 endpoints, 2 available)
Customers (8 endpoints, 8 available)
Computers (13 endpoints, 13 available)
Session resources (4 endpoints, 4 available)
Session artifacts (2 endpoints, 2 available)
Session requests (1 endpoints, 1 available)
Session dictation (1 endpoints, 1 available)
Session threads (5 endpoints, 5 available)
Environments (5 endpoints, 5 available)
Skills (4 endpoints, 4 available)
Skill versions (5 endpoints, 5 available)
| Method | Path | Description | Support |
|---|
| GET | /v1/toolsets | List Toolsets | ● Supported |
Differences from Claude Managed Agents
- This face provides the endpoints listed below: the other official Managed Agents operations are not on this face and answer 404. For Anthropic-protocol compatible access use the /anthropic compat face, where operations the platform has not implemented answer 501 (not_implemented_error) with no side effects.
- Create Agent:agent_toolset_20260401 is the native toolset: bash, edit, glob, grep, read, write, web_search, web_fetch, task_output, task_stop, monitor, agent, send_message, codemode and skill (the name in configs is exactly this lowercase name). New agents enable all tools by default. Configure each tool through name, enabled and permission_policy in configs; omitted tools (including todo_write and goal_read) follow default_config (enabled by default); to keep only some tools, set default_config.enabled to false and enable the wanted tools in configs. codemode runs through bash, so enabling it with bash disabled returns 400. Background tasks, Monitor and subagents require bash. Enabling any background tool exposes bash run_in_background. For agent_toolset_20260401, the /anthropic compatibility API accepts and returns only the eight official built-in tools, and sessions created there receive only those tools. Supports text prompts, models, metadata, built-in tools and custom tool definitions. Custom definitions are stored and returned unchanged on both APIs: up to 32 tools, unique case-sensitive names matching [a-zA-Z0-9_-]{1,64} without built-in name collisions, descriptions of 1–1024 characters, and object input_schema with type=object and at most 16 KB of serialized UTF-8 JSON. Custom tool calls emit agent.custom_tool_use and wait for the client to send user.custom_tool_result. Optional model.settings.reasoning accepts low, medium, high, xhigh, max or none as the session default. Explicit session thinking takes precedence; unsupported agent defaults fall back to the model default_effort. Example model: {id: “deepseek-v4-flash”, settings: {reasoning: “high”}}. Additional model controls are not supported and return 400. skills attaches uploaded skills as [{type:“custom”,skill_id,version?}] and accepts only custom (type anthropic returns 400); at most 20, no repeated skill_id, and each skill and pinned version must exist in the organization and not be deleted. Omit version or send “latest” to use the skill’s newest version at the moment a session is created; versions uploaded later do not change a running session. On update, omit skills to keep them, send an array to replace them or null to clear them. When the session has a machine, each skill is installed at /home/user/.praxis/skills/<name>/ when the session starts, and a skill with the same name already on the machine is not overwritten (the session receives a notice instead). A session without a machine installs nothing. Set up to 100 allow, ask and deny rules in toolset permissions for future conversations. multiagent accepts null or a coordinator roster of 1–20 agent IDs, {type:“agent”,id,version?} references or at most one {type:“self”}. Versions are pinned on create/update: an omitted version is pinned to the roster agent’s current active version at save, and a bare string id is accepted and rewritten to the {type:“agent”,id,version} object form. Members must be distinct, exist, be unarchived and have no multiagent topology. A roster can enable Agent while bash is enabled; SendMessage follows its tool configuration. Each coordinator permits at most one advisor whose model must be available and differ from the agent model; only the primary session can consult it, each consultation uses a separate advisor thread, and advice returns via agent.thread_message_received. The /agent/v1 top-level subagent_model is a nullable model ID stored in each revision: omit to preserve, null to clear. The model must exist. Priority: call model > subagent_model > roster member model (parent session model for built-ins). /anthropic neither accepts nor returns this field.
- Get Agent:tools returns all resolved native tool configurations in one agent_toolset_20260401 entry, ready for an update round trip. Replace example resource IDs with IDs from resources you created.
- List Agent Versions:Replace example resource IDs with IDs from resources you created.
- Update Agent:Use agent_toolset_20260401.configs to enable each native tool and set its permission policy. Omitted tools follow default_config; background tasks, Monitor and subagents require bash. Use version for optimistic concurrency; conflicts return 409 and unchanged updates preserve the version. Custom tool definitions are supported with the same limits as creation; omit tools to retain them or send [] to remove every tool declaration; tools: null returns 400 (tools cannot be null; send [] to remove every tool). skills attaches uploaded skills as [{type:“custom”,skill_id,version?}] and accepts only custom (type anthropic returns 400); at most 20, no repeated skill_id, and each skill and pinned version must exist in the organization and not be deleted. Omit version or send “latest” to use the skill’s newest version at the moment a session is created; versions uploaded later do not change a running session. On update, omit skills to keep them, send an array to replace them or null to clear them. When the session has a machine, each skill is installed at /home/user/.praxis/skills/<name>/ when the session starts, and a skill with the same name already on the machine is not overwritten (the session receives a notice instead). A session without a machine installs nothing. Update toolset permissions to save allowed operations in a new agent version for future conversations. multiagent accepts null or a coordinator roster of 1–20 agent IDs, {type:“agent”,id,version?} references or at most one {type:“self”}. Versions are pinned on create/update: an omitted version is pinned to the roster agent’s current active version at save, and a bare string id is accepted and rewritten to the {type:“agent”,id,version} object form. Members must be distinct, exist, be unarchived and have no multiagent topology. A roster can enable Agent while bash is enabled; SendMessage follows its tool configuration. Each coordinator permits at most one advisor whose model must be available and differ from the agent model; only the primary session can consult it, each consultation uses a separate advisor thread, and advice returns via agent.thread_message_received. The /agent/v1 top-level subagent_model is a nullable model ID stored in each revision: omit to preserve, null to clear. The model must exist. Priority: call model > subagent_model > roster member model (parent session model for built-ins). /anthropic neither accepts nor returns this field.
- Apply Agent Version:Apply a saved version from agents.versions.list for new sessions and newly issued tokens, without creating a version. Existing sessions and tokens retain their version. The response contains the effective configuration with version equal to active_version and latest_version naming the newest saved version. Missing versions return 404; archived agents return 409. For example, POST /agent/v1/agents/{agent_id}/versions/2/apply with no body.
- Archive Agent:Archived agents remain readable, including versions, but cannot be updated. Only archive your own test agent.
- Unarchive Agent:Restore an archived agent without creating a configuration version. Already active agents are unchanged. Missing or inaccessible agents return 404. Use the returned agent id to create new sessions.
- Feed an agent an experience:The experience becomes an imported session of the agent, archived, and consolidated like any session.
- Read how a consolidation went:Status is queued, running, done or failed; done carries engram_id when the pass wrote one.
- Create a login intent for the calling agent:Only for yourself, and only for your own computer: the agent, its organization and its platform computer all come from the credential and the agent’s record, and the request body accepts no field at all (place included), so this call can be aimed neither at another agent nor at somebody else’s computer. The member driving the session must be that agent’s sponsor: the code becomes a thirty-day cli login for the agent, so only the sponsor may open one, and a session that names no member (a terminal customer’s session) is refused. A cli session is refused (a login token cannot mint another login). The code lives five minutes and is redeemed once, at the gateway, where the redeem credential rides in Authorization.
- List a BYOA agent’s waiting letters:Observing only: no body is returned and nothing is marked read; the agent still reads its mail with its inbox tool.
- List the Claude Code sessions already on a device:Only the person who paired the device may read it. An offline device answers 503 DEVICE_NOT_READY and a directory not bound to this agent answers 400. To continue one, create a session with runtime.resume_session_id set to its id.
- Create Session:Create with optional model (an ID string in models.allowed; only the default if no list) and thinking ({effort: “low|medium|high|xhigh|max|none”} or null), saved before initial_events execute. Omitted or null thinking inherits the agent default, then the model default. Efforts must be in model.thinking.efforts; none requires can_disable. Invalid selections return 400 invalid_request_error. The response includes thinking and model.thinking: {efforts, can_disable, default_effort}; unknown capability and an unspecified default_effort are null. Example: {“agent”:“agent_123”, “model”:“deepseek-v4-flash”,“thinking”:{“effort”:“xhigh”}}. These selection fields belong only to /agent/v1. Create an agent first and replace agent_123 with its returned id. Omit environment_id: a service agent uses the environment_id of the version the session runs (light for a new agent); a general agent uses its explicit or agent-default computer_id Computer. Select node22 or a tenant-owned cloud environment for a sandbox recipe. For service agents, explicit environment_id: null allocates no machine, so codemode, bash and other machine tools are unavailable; omission returns the environment_id of that version. A bare agent id, or an object without version, pins the agent’s active_version (the version chosen with agents.versions.apply, not necessarily the newest saved one). Unlike Managed Agents, the only inline agent override is system ({type: “agent_with_overrides”, id, system}); to change the model, tools, MCP servers or skills, save a version instead. budget ({type: “limit”, max_list_cost: {amount, currency: “USD”}}, amount in US dollars as an integer or up to 2 decimals such as “0.50”, returned with exactly 2 decimals, default “20.00”, null for no limit) and vault_ids (at most 50, owned by the organization and not archived) are supported. File resources are persisted, up to 500 per session; sandbox synchronization is not implemented in this batch. An archived agent returns 409 Agent is archived; unarchive it to start new sessions. Existing sessions keep working.
- List Sessions:Supports limit, page, agent_id, deployment_id and include_archived (default false, so archived sessions are hidden unless you pass true). agent_version, time ranges, memory_store_id, order and statuses are not supported and return 400.
- Get Session:Replace example resource IDs with IDs from resources you created.
- Update Session:Optional model is an ID in the pinned version allowed list; thinking is {effort: “low|medium|high|xhigh|max|none”} or null. Omission preserves the selection; null restores inheritance. A model-only change clears unsupported session thinking. Combined updates validate against the new model; invalid choices return 400 and preserve the previous selection. Changes affect the next turn, not an in-flight turn. Example: {“model”:“deepseek-v4-flash”,“thinking”:{“effort”:“xhigh”}}. Responses include thinking and model.thinking: {efforts, can_disable, default_effort}; unknown capability is null. These fields are available only on /agent/v1. Supports title and metadata with the official patch semantics: a string value upserts the key, null deletes it, a whole-null object clears the bag, and untouched keys are preserved. budget (a new limit must exceed the cost already consumed; null removes the limit for good) and vault_ids are supported. The official agent override (tools/mcp_servers) is not supported and returns 400 naming the field. Updating an archived session returns 409.
- Fork Session (Extension):Available only on /agent/v1. Use the message_id field from own-face events, not the event id. Copies every message and part through the target, including tool calls and results. The parent is unchanged; another running turn does not prevent forking an earlier completed turn. The new root session appears in the session list with the same agent version, current model and thinking settings, and cwd working directory. Its title is the parent title plus “ 的分支”. If the parent has a sandbox, the new session owns an independent fork including a memory snapshot. Inherited running tasks are terminated, ring targets are replaced with the new session only, and its background-task table starts empty. Without a parent sandbox, creation remains lazy. Returns 201 with the same Session shape as retrieval. forked_from is {session_id, message_id}, or null for ordinary sessions. Imported history ends with session.forked containing forked_from_session_id and forked_from_message_id. These fields and this event are own-face only. Invalid requests return 400; ineligible targets return 409 FORK_TARGET_INVALID; missing sessions or sessions belonging to another caller return 404. Initialization failures leave the child unpublished and reclaim the forked sandbox.
- Rename Session (Extension):Available only on /agent/v1. The name is normalized first (surrounding whitespace trimmed, upper case folded to lowercase, runs of whitespace become one hyphen, characters the rule does not admit dropped, and no hyphen left hanging at either end) and then validated: non-empty, at most 32 display columns wide (a Han character counts as two), made only of Han characters, lowercase ASCII letters, digits and hyphens, and never the reserved word main. A name another of the caller’s own sessions already holds is not an error: the answer carries a numeric suffix (base-2, base-3, …). Renaming the main session returns 400; a missing session, one that belongs to another caller, or one the caller cannot write returns 404. Returns 200 with the same Session shape as retrieval, name set to the new name; one rename writes a session.renamed event. Example: POST /agent/v1/sessions/sesn_login/name with body {“name”:“login-fix”}.
- Get Session Context (Extension):Praxis extension available only on /agent/v1, following Claude Agent SDK getContextUsage() with snake_case fields. detail is summary: the latest actual model usage takes precedence, and local estimates apportion source totals; used categories sum to total_tokens. Only nonzero sources appear. Classify rows by kind (used/free/buffer/deferred). key is a stable source identifier extension; clients must tolerate unknown keys and new sources, falling back to name. MCP tools group by server, plugin blocks by id, and compaction summaries are counted separately. excluded_items is currently zero. Before measurement, total_tokens, total_tokens_source and measured_at are null, categories is empty, and details are zero or empty arrays. Model selection recalculates max_tokens, auto_compact_threshold and free/buffer while preserving the latest measurement. is_auto_compact_enabled is false for unknown capacity or a tripped compaction breaker. For example model.thinking is {efforts: [high, xhigh], can_disable: true, default_effort: high}. model.thinking contains efforts, can_disable and nullable default_effort; the entire thinking value is null when capability is unknown. Missing or inaccessible sessions return 404.
- List Session Background Tasks (Extension):Own-face extension. Returns { data: BackgroundTask[] }. Each task has id, kind, title, thread_id, status, started_at, ended_at, cancellable, notified_at and trigger_count. Subagent rows link to their child thread via thread_id; other kinds have null. kind is an open string; tolerate unknown kinds. Status is running, result_pending, completed, failed, cancelled or lost. Only completed tasks with pending delivery are result_pending. Timestamps are RFC3339; ended_at is null while running. notified_at is the admission time of the latest system notification batch, or null. trigger_count counts admitted monitor event batches, or is null without records and for other kinds. Only supported running tasks without stop intent are cancellable. Missing or inaccessible sessions return 404.
- Get Background Task Output (Extension):Own-face extension. offset defaults to 0; max_bytes defaults to 65536 and must be between 1 and 262144. Returns text, next_offset and eof. Offsets count UTF-8 bytes, not characters; partial trailing characters are retained for the next read. eof describes the current log, which may grow while running. A paused or missing sandbox returns empty text, the original offset, eof=true and unavailable=true, without waking it. Reading does not acknowledge model result delivery. Missing or inaccessible sessions or tasks return 404; invalid ranges return 400.
- Stop Background Task (Extension):Own-face extension. No request body is required. Uses the same stop implementation as TaskStop: records stop_requested_at and signals the process group. Returns BackgroundTask with the same fields as the list operation. Until termination is observed, status may remain running with cancellable=false. An ended or unsupported task returns 409. Missing or inaccessible sessions or tasks return 404.
- Compact Session (Extension):Available only on /agent/v1. The body may be omitted or {}. Optional instructions must be a string and is forwarded unchanged. Idempotency-Key is forwarded unchanged; a UUID is generated when absent. Returns { type: session_compaction, id, status, reason? }, where id is the operation ID. queued/running return 202; skipped/succeeded/failed/cancelled return 200. Non-string instructions return 400 invalid_request_error. Missing or inaccessible managed sessions return 404 not_found_error.
- Get Session Compaction (Extension):Available only on /agent/v1. Returns { type: session_compaction, id, status, reason? } with HTTP 200 for every status. A missing operation or inaccessible session returns 404 not_found_error.
- List Session Compactions (Extension):Available only on /agent/v1. Returns { data: […], active }. active is the queued or running compaction ({ type: session_compaction, id, status, trigger: manual|auto|idle }), or null when none; manual work takes precedence. Each data entry contains type, id, event_id, trigger, status, model, compacted_message_count, input_tokens_before, input_tokens_after, summary, error and created_at, as recorded by the service. Missing or inaccessible managed sessions return 404 not_found_error.
- Get Session Prompt Revs (Extension):Available only on /agent/v1. Returns run_id, config_revision_id, config_version, platform, at and reaped_turns. platform is ONE map keyed by each input’s own name — section:<name> for a prompt section, plus catalog and tools as ordinary entries — and each value is that input’s 8-hex content Rev; no prompt text is ever returned. With run_id you read that run’s own record; without it you read the last record written, which moves only when the Rev set changes and may be several turns older than this call, so run_id is null then. at is for telling how old the answer is and never takes part in a comparison. This call constructs the session object once (a Durable Object cannot be read without being entered) and its startup may settle an interrupted turn, so acknowledge_wake=true is required; reaped_turns says how many interrupted turns this call’s own arrival settled (0 when none), and only a value above 0 is evidence about this call. This method does not distinguish a new instance from a rebuilt first probe: that distinction is not in the contract yet, and when agent.sessions.tablesInfo’s contract face carries start_phase the two methods move to it together. It writes no row and does not refresh the eviction ordering key of the session’s cached context parts. A run with no record and an unreadable session both answer 404 with only reason: unknown_run or unknown_session, carrying no record field at all.
- Send events to an agent:Same operation as POST /agent/v1/sessions/{session_id}/events, addressed by the agent instead of the session: the body is a user.message (exactly one nonempty text block), user.interrupt, user.tool_confirmation, user.custom_tool_result, user.steer or user.withdraw, the answer is the same acknowledgement, and it bills the same. session_id may be the id, main or a short name; the compat face /anthropic/v1 knows neither the door nor the alias.
- Read your conversation with an agent:Same operation as GET /agent/v1/sessions/{session_id}/events: the same query parameters (limit, page, order, types[], created_at[…]), the same data + next_page envelope and the same event shapes, addressed by the agent. This is how a caller learns the real session id without asking for one.
- Follow an agent live:For a general agent, the same operation as GET /agent/v1/sessions/{session_id}/events/stream, addressed by the agent instead of the session, with the same event_deltas[] previews. A BYOA agent has no main session: its body is its MCP connections, and this stream is its broadcast point, heard by every live connection at once. It carries inbox.letter_delivered (a new letter, still unread: take it with the inbox tool) and cognition.ritual_held (a new memory), each with an SSE id; reconnect with Last-Event-ID to receive what you missed within about an hour. Closing the stream only drops your subscription; it does not stop the agent. A service agent answers 400.
- List Events:Send a message before reading history. Until processing finishes, only admitted input may be visible. Pagination, event type and time filters are supported, including system.message in types[]. system.message returns id, type, content and processed_at without provenance or run_id. A session waiting for tool approval pauses on session.status_idle with stop_reason requires_action, whose event_ids list agent.tool_use events to confirm or agent.custom_tool_use events awaiting client results. A failed run emits session.error before session.status_terminated. agent.thinking carries the thinking text in content. When searching or reading web pages, tool results use official search_result blocks on both API surfaces. Answer text blocks carry citations as an /agent/v1 extension; /anthropic renders answer references as [n] in the text.
- Send Events:Each user.message accepts exactly one nonempty text block. Replace sesn_123 with your session id. Text user.message, user.interrupt, tool confirmation, user.custom_tool_result and system.message are supported. A system.message requires a nonempty array of text blocks; at most one is allowed per request, as the final event immediately after user.message, user.tool_result or user.custom_tool_result. For user.custom_tool_result, take custom_tool_use_id from agent.custom_tool_use.id or the requires_action stop_reason.event_ids. Unlike Anthropic, content accepts only text blocks; other block types return 400. Omitted content becomes an empty array. Omitted or null is_error means false. Do not send session_thread_id: the server routes child calls by id and rejects this request field with 400. Unknown call ids return 400; duplicate results or calls no longer waiting return 409. On /agent/v1, end users can submit results only to their own sessions; another user’s session returns 404. user.tool_result remains unsupported. system.message is not accepted in initial_events. To guide a running turn, send a user.steer event with event_id referencing a queued user.message. Current tools continue; the message enters the next model request. The user.steer receipt has its own processed_at; repeated marking returns the same receipt. Processing or withdrawn inputs return 409; missing events return 404. Pending approvals defer injection. If the turn ends first, the input runs normally from the queue. Ordinary messages remain queued by default. This extension is unavailable on /anthropic. The response acknowledges inputs; read replies from event history or the stream. A user.message sent while the session waits for tool approval is queued: the returned event has processed_at null and runs in order once the approval is resolved. When allowing a tool call, copy its permission_suggestions into updated_permissions to remember similar operations across a general agent’s sessions (destination agent), or in this session (destination session). Service agents accept session only. Guarded user-once operations offer no suggestions. When searching or reading web pages, tool results use official search_result blocks on both API surfaces. Answer text blocks carry citations as an /agent/v1 extension; /anthropic renders answer references as [n] in the text. Available only on /agent/v1: an optional Idempotency-Key header (1–255 visible ASCII characters). When the request carries a single user.message, the same key takes effect once per session; a repeat returns the originally admitted event and starts no new turn. Other events ignore the header. A malformed key returns 400 invalid_request_error. Tool confirmations for closed or unknown tool_use_id values succeed without changing state. A deny_message is retained and delivered with the refusal, up to 4000 characters. On /agent/v1, full_access_available=true permits an allow with permission_mode=yolo; the mode changes before execution and retries do not change it again.
- Stream Events:Keep the SSE connection open and send a message in another request after replacing sesn_123. Stopping the stream disconnects the subscription, not the agent. SDK 0.124.0 filters session.usage; read history for full usage. Pass event_deltas[]=agent.message or event_deltas[]=agent.thinking to receive incremental previews (event_start and event_delta) before the final event. Pass event_deltas[]=agent.tool_use to receive input_json_delta fragments while tool arguments are being generated. When searching or reading web pages, tool results use official search_result blocks on both API surfaces. Answer text blocks carry citations as an /agent/v1 extension; /anthropic renders answer references as [n] in the text.
- Archive Session:Archived sessions refuse new messages with 400 invalid_request_error naming the archived session; retrieval and event history stay readable. Re-archiving is idempotent and archived_at keeps the first archive time.
- Delete Session:Permanently remove an idle or terminated session and its events after saving a deletion snapshot. Running sessions return 409 INVALID_STATE; interrupt first or wait until idle or terminated. Deleted sessions are unavailable to retrieval and event listing and disappear from lists.
- Set Run Feedback:Own-face extension. Use a readable session and a run_id from its events. Each submission replaces the previous rating and comment; omitted or null comment clears it, while created_at is preserved. Comments allow at most 2000 Unicode characters. End users can submit only for their own sessions. Feedback never enters model context or starts a run. For example, submit {“rating”:“positive”,“comment”:“Helpful”}. POST follows Managed Agents resource update conventions; the resource remains unique per session and run.
- Delete Run Feedback:Own-face extension. Use the session id from session creation or listing and the run_id from its events. Requires a readable session and a run belonging to it. Idempotent; returns 204 even when no feedback exists. End users can delete feedback only for their own sessions. Does not delete the run or messages, enter model context, or start another run.
- Create Deployment:Deployment resources support creation, retrieval, filtering, updates, archival, pause and unpause. Versions are pinned; schedules return up to five future occurrences. Only user.message initial events and file resources are accepted; vault_ids is accepted up to 50 deduplicated ids, each owned by the organization and not archived, and a missing or archived vault returns 400 vault_ids[<index>] <id> was not found. Manual triggers and cron schedules create sessions that carry the deployment’s vault_ids; creation failures record an error run and automatically pause the deployment, and a vault archived after the deployment was saved is recorded as vault_archived_error. Own extensions accept agent_with_overrides and target=computer for general agents only. Overrides support model, permission_mode and cwd; tools, mcp_servers, system and skills return 400.
- List Deployments:Deployment resources support creation, retrieval, filtering, updates, archival, pause and unpause. Versions are pinned; schedules return up to five future occurrences. Only user.message initial events and file resources are accepted; vault_ids is accepted up to 50 deduplicated ids, each owned by the organization and not archived, and a missing or archived vault returns 400 vault_ids[<index>] <id> was not found. Manual triggers and cron schedules create sessions that carry the deployment’s vault_ids; creation failures record an error run and automatically pause the deployment, and a vault archived after the deployment was saved is recorded as vault_archived_error. Own extensions accept agent_with_overrides and target=computer for general agents only. Overrides support model, permission_mode and cwd; tools, mcp_servers, system and skills return 400.
- Get Deployment:Deployment resources support creation, retrieval, filtering, updates, archival, pause and unpause. Versions are pinned; schedules return up to five future occurrences. Only user.message initial events and file resources are accepted; vault_ids is accepted up to 50 deduplicated ids, each owned by the organization and not archived, and a missing or archived vault returns 400 vault_ids[<index>] <id> was not found. Manual triggers and cron schedules create sessions that carry the deployment’s vault_ids; creation failures record an error run and automatically pause the deployment, and a vault archived after the deployment was saved is recorded as vault_archived_error. Own extensions accept agent_with_overrides and target=computer for general agents only. Overrides support model, permission_mode and cwd; tools, mcp_servers, system and skills return 400.
- Update Deployment:Deployment resources support creation, retrieval, filtering, updates, archival, pause and unpause. Versions are pinned; schedules return up to five future occurrences. Only user.message initial events and file resources are accepted; vault_ids is accepted up to 50 deduplicated ids, each owned by the organization and not archived, and a missing or archived vault returns 400 vault_ids[<index>] <id> was not found. Manual triggers and cron schedules create sessions that carry the deployment’s vault_ids; creation failures record an error run and automatically pause the deployment, and a vault archived after the deployment was saved is recorded as vault_archived_error. Own extensions accept agent_with_overrides and target=computer for general agents only. Overrides support model, permission_mode and cwd; tools, mcp_servers, system and skills return 400.
- Pause Deployment:Deployment resources support creation, retrieval, filtering, updates, archival, pause and unpause. Versions are pinned; schedules return up to five future occurrences. Only user.message initial events and file resources are accepted; vault_ids is accepted up to 50 deduplicated ids, each owned by the organization and not archived, and a missing or archived vault returns 400 vault_ids[<index>] <id> was not found. Manual triggers and cron schedules create sessions that carry the deployment’s vault_ids; creation failures record an error run and automatically pause the deployment, and a vault archived after the deployment was saved is recorded as vault_archived_error. Own extensions accept agent_with_overrides and target=computer for general agents only. Overrides support model, permission_mode and cwd; tools, mcp_servers, system and skills return 400.
- Unpause Deployment:Deployment resources support creation, retrieval, filtering, updates, archival, pause and unpause. Versions are pinned; schedules return up to five future occurrences. Only user.message initial events and file resources are accepted; vault_ids is accepted up to 50 deduplicated ids, each owned by the organization and not archived, and a missing or archived vault returns 400 vault_ids[<index>] <id> was not found. Manual triggers and cron schedules create sessions that carry the deployment’s vault_ids; creation failures record an error run and automatically pause the deployment, and a vault archived after the deployment was saved is recorded as vault_archived_error. Own extensions accept agent_with_overrides and target=computer for general agents only. Overrides support model, permission_mode and cwd; tools, mcp_servers, system and skills return 400.
- Archive Deployment:Deployment resources support creation, retrieval, filtering, updates, archival, pause and unpause. Versions are pinned; schedules return up to five future occurrences. Only user.message initial events and file resources are accepted; vault_ids is accepted up to 50 deduplicated ids, each owned by the organization and not archived, and a missing or archived vault returns 400 vault_ids[<index>] <id> was not found. Manual triggers and cron schedules create sessions that carry the deployment’s vault_ids; creation failures record an error run and automatically pause the deployment, and a vault archived after the deployment was saved is recorded as vault_archived_error. Own extensions accept agent_with_overrides and target=computer for general agents only. Overrides support model, permission_mode and cwd; tools, mcp_servers, system and skills return 400.
- Run Deployment:Manual triggers and cron schedules create sessions with pinned agent versions. Session creation errors are recorded and automatically pause the deployment; unpause to resume scheduling. Missed cron occurrences produce one catch-up run. Lists support deployment_id, has_error, trigger_type and all four created_at bounds, with keyset pagination.
- List Deployment Runs:Manual triggers and cron schedules create sessions with pinned agent versions. Session creation errors are recorded and automatically pause the deployment; unpause to resume scheduling. Missed cron occurrences produce one catch-up run. Lists support deployment_id, has_error, trigger_type and all four created_at bounds, with keyset pagination.
- Get Deployment Run:Manual triggers and cron schedules create sessions with pinned agent versions. Session creation errors are recorded and automatically pause the deployment; unpause to resume scheduling. Missed cron occurrences produce one catch-up run. Lists support deployment_id, has_error, trigger_type and all four created_at bounds, with keyset pagination.
- Upload a File (Extension):Available only on /agent/v1 and only to an embedded end-user token: a grant-bound end_user token, or an organization-level customer token, which must name the agent as agent in the body. Body: filename (1 to 255 characters), bytes (a positive integer, the byte length) and content_type (1 to 255 characters); a customer token also sends agent. Returns the File service signed-upload answer: upload_id, expires_at, and url for a small file, or part_size, parts, complete_url and status_url for a large one. The signed addresses are returned in this response only — never stored or logged; the browser PUTs the bytes straight to the address, which answers the File object and its file_id. Then attach the file_id to the caller’s own session as a session resource, and reference it in the message attachments. Checks in order: a missing agent, or uploads turned off on it, returns 403 UPLOADS_DISABLED; bytes above the agent uploads.max_file_bytes returns 413 FILE_TOO_LARGE; a blocked executable or script extension returns 400 FILE_TYPE_REFUSED; the 31st unattached upload from the same user on the same agent within an hour returns 429 UPLOAD_RATE_LIMITED. A member, robot or user_key credential uses /file/v1 instead and gets 404 here.
- Create Upload Content URL (Extension):Available only on /agent/v1 and only to an embedded end-user token. file_id is the id the File service returns after the bytes are uploaded. Returns { url, expires_at } only for the caller own upload whose file still exists; the read address works for 900 seconds, and must not be stored or logged. A file that belongs to someone else, a missing file, or one that did not start as an upload returns 404 FILE_NOT_FOUND, never revealing whether another person file exists. The request body is empty.
- List customers:Call this from your backend with your API key, or from the console. Customers follow Shopify Admin customers (list, retrieve, block, sign-out and data deletion of the people who use your storefront), so that experience applies. The list includes customers who signed in but have not started a session yet, and customers recorded under your own ids by embed tokens before customer sign-in existed; an id first seen that way is identified unless it starts with anon_. Unlike Shopify, a customer can be anonymous: a visitor admitted with the publishable key gets an anon_ id, and when it later signs in with anonymous_access_token it is merged: merged_into names the identified customer, and its sessions count toward that customer. Filter with q (a case-sensitive customer id prefix), type (identified or anonymous) and blocked (true or false). limit is 1 to 100, default 20; reuse next_page with the same filters and limit. A customer access token gets 404. Example: GET /agent/v1/agents/agent_example/customers?type=identified&blocked=false&limit=50.
- Get customer:Use the customer id from the list or your own customer_id. An unknown customer returns 404 CUSTOMER_NOT_FOUND, and so does a customer access token. Unlike Shopify, an identified customer’s session_count, cost and recent_sessions include the sessions of anonymous customers merged into it; the merged anonymous customer still shows its own sessions and its merged_into.
- Block customer:Blocks the customer, then ends every live sign-in the way logout does: each access token is revoked and its open event streams close. From then on grant_codes, access_tokens, renew and new sessions for this customer return CUSTOMER_BLOCKED until you unblock it. Idempotent: a repeat keeps the first block time and revokes whatever is still live. If credential revocation fails the request returns 502 and the customer stays blocked; retry to finish. An unknown customer returns 404 CUSTOMER_NOT_FOUND.
- Unblock customer:Idempotent. Access tokens revoked while the customer was blocked stay revoked; sign the customer in again with a new grant code. An unknown customer returns 404 CUSTOMER_NOT_FOUND.
- Revoke customer tokens:Ends every live sign-in of the customer, revoking each access token and closing its open event streams; the customer can sign in again right away. Returns the number of access tokens this request revoked; a repeat returns 0. Credential revocation failure returns 502; retry to finish. An unknown customer returns 404 CUSTOMER_NOT_FOUND.
- Delete customer data:Develop only. Set confirm to the exact customer id; a missing or different confirm returns 400 naming the value to send. Returns 202 with a pending task id; poll the deletion endpoint. Concurrent requests reuse the unfinished task; retry DELETE after failure to resume it. Tokens are revoked and the customer is blocked before a seven-day recovery snapshot is verified; sessions including child sessions, conversation data, grants and feedback are then removed. A block that existed before stays; a temporary block is removed on success. File attachments are retained. Example: DELETE /agent/v1/agents/agent_example/customers/cus_8f2a91?confirm=cus_8f2a91.
- Get customer deletion:Use the same agent_id and customer id as the confirmed DELETE. Status is pending, snapshotting, deleting, done or failed. Counts are empty until a verified snapshot exists. snapshot_key is an operator recovery reference retained for seven days, not a download URL. A customer access token and a missing task return 404.
- Get agent appearance:Agent Kit calls this from the page with a customer access token of this agent; your API key and console members can read it too. A token of another agent returns 404. The body is the same as the embed appearance read; a missing appearance returns the agent’s own name and avatar only. Responses are private and cacheable for 60 seconds.
- Create Computer:Praxis extension: MA only has session-scoped temporary containers and memory_stores, not durable browsable computers. Archived files remain readable, but new sessions cannot bind them. environment_id is an optional recipe reference; a computer starts on first use and exposes the public SDK sandbox_id. Lists include archived computers.
- List Computers:Praxis extension: MA only has session-scoped temporary containers and memory_stores, not durable browsable computers. Archived files remain readable, but new sessions cannot bind them. environment_id is an optional recipe reference; a computer starts on first use and exposes the public SDK sandbox_id. Lists include archived computers.
- Get Computer:Praxis extension: MA only has session-scoped temporary containers and memory_stores, not durable browsable computers. Archived files remain readable, but new sessions cannot bind them. environment_id is an optional recipe reference; a computer starts on first use and exposes the public SDK sandbox_id. Lists include archived computers.
- Update Computer:Praxis extension: MA only has session-scoped temporary containers and memory_stores, not durable browsable computers. Archived files remain readable, but new sessions cannot bind them. environment_id is an optional recipe reference; a computer starts on first use and exposes the public SDK sandbox_id. Lists include archived computers.
- Connect computer:Own-face extension: Managed Agents has no persistent Computer connection. Returns the public SDK sandbox_id, envd_access_token and template_id, plus tier (kept for compatibility: a Computer is one machine, so tier does not name a machine you can choose) and the lease that keeps the machine in service (lease_id, lease_expires_at; lease_id is null when no lease exists). Keep the lease while the connection stays open: renew it about every 20 seconds (POST …/leases/{lease_id}/renew) and release it on close (DELETE …/leases/{lease_id}). An unrenewed lease simply expires, and the machine is reclaimed only after that. Archived computers remain accessible; foreign or absent computers return 404. Never cache credentials.
- Renew computer lease:Own-face extension. A lease that is no longer valid (released, expired, or the computer moved to another machine) returns 409 LEASE_STALE; call connect again for a new connection and lease. Foreign or absent computers return 404.
- Release computer lease:Own-face extension. Idempotent: an unknown or already released lease succeeds as well. Foreign or absent computers return 404.
- Archive Computer:Praxis extension: MA only has session-scoped temporary containers and memory_stores, not durable browsable computers. Archived files remain readable, but new sessions cannot bind them. environment_id is an optional recipe reference; a computer starts on first use and exposes the public SDK sandbox_id. Lists include archived computers. A computer an active agent holds is refused with 409 COMPUTER_IN_USE; archive the agent first.
- Delete Archived Computer:Own-face superset: Managed Agents has no persistent Computer deletion lifecycle. Only archived computers can be deleted. Active computers return 400 COMPUTER_ACTIVE (archive first). Destroy storage before removing registration. Success returns id and type=computer_deleted; missing or foreign computers return 404.
- List Computer Files:Praxis extension: MA only has session-scoped temporary containers and memory_stores, not durable browsable computers. Archived files remain readable, but new sessions cannot bind them. environment_id is an optional recipe reference; a computer starts on first use and exposes the public SDK sandbox_id. Lists include archived computers.
- Get Computer File Content:Praxis extension: MA only has session-scoped temporary containers and memory_stores, not durable browsable computers. Archived files remain readable, but new sessions cannot bind them. environment_id is an optional recipe reference; a computer starts on first use and exposes the public SDK sandbox_id. Lists include archived computers.
- Convert a Computer Document to PDF:Praxis extension: the preview conversion endpoint. The browser never parses an untrusted document — LibreOffice runs only inside an ephemeral document-family sandbox and the converter instance is killed after use. The file stays tenant-owned; non-convertible types answer EXTENSION_NOT_CONVERTIBLE and a failed conversion answers CONVERSION_FAILED.
- Upload Computer Attachment:Own-face superset: Managed Agents has no persistent Computer attachment directory. User uploads overwrite the same name; agents retain read-only access. Run-token uploads return 403 READ_ONLY. name is one filename of at most 255 UTF-8 bytes; MIME is inferred from the extension; custom Content-Type is not persisted and digest may be absent. Limit 16 MiB (413); invalid names return 400. Archived computers accept uploads; foreign computers return 404.
- Add Session Resource:Supports persistence, retrieval and removal of file resource references, up to 500 per session. Files must be live and owned by the current tenant. Paths default to /mnt/session/uploads/<file_id>; custom paths are rooted there and parent traversal is rejected. File content is immutable through this API. Sandbox synchronization is not implemented in this batch.
- List Session Resources:Supports persistence, retrieval and removal of file resource references, up to 500 per session. Files must be live and owned by the current tenant. Paths default to /mnt/session/uploads/<file_id>; custom paths are rooted there and parent traversal is rejected. File content is immutable through this API. Sandbox synchronization is not implemented in this batch.
- Get Session Resource:Supports persistence, retrieval and removal of file resource references, up to 500 per session. Files must be live and owned by the current tenant. Paths default to /mnt/session/uploads/<file_id>; custom paths are rooted there and parent traversal is rejected. File content is immutable through this API. Sandbox synchronization is not implemented in this batch.
- Delete Session Resource:Supports persistence, retrieval and removal of file resource references, up to 500 per session. Files must be live and owned by the current tenant. Paths default to /mnt/session/uploads/<file_id>; custom paths are rooted there and parent traversal is rejected. File content is immutable through this API. Sandbox synchronization is not implemented in this batch.
- List Session Artifacts (Extension):Own-face extension. Returns { data: Artifact[] } ordered by create_time. Each artifact is one file in the session outputs directory, or one canvas or media asset the reply pointed at (a part with kind object carrying object_type, object_id and href; one artifact per object, pointing at it again adds no version), with id, name, version, parts, source_hrefs, create_time and update_time. Delivering the same path again keeps the id and adds one to version. Files are captured seconds after the turn ends, so artifacts appear after session.status_idle; also watch the agent.artifact_delivered event. Whoever may read the session may read its artifacts; a session that is missing or not yours returns 404.
- Create Artifact Content URL (Extension):Own-face extension. The body is optional: part (index into the artifact parts, default 0) and ttl_seconds (60 to 300, default 300). Returns { url, expire_time }. The address works for minutes; do not store or log it. For an object part the address serves a snapshot picture of a canvas or the own bytes of the asset; an object that no longer exists returns 404 ARTIFACT_NOT_FOUND and a failing share service returns 502. An unknown artifact or an out-of-range part returns 404 ARTIFACT_NOT_FOUND, a session that is missing or not yours returns 404, and a ttl_seconds outside 60 to 300 returns 400.
- List Session Requests (Extension):Own-face extension. When a session stops at session.status_idle with stop_reason requires_action, read what it waits on here instead of replaying events. Returns { data: Request[] } ordered by create_time, an empty array when nothing is pending, not paginated. Each request has id (the pending tool call id), object (request), kind (always approval, a tool waiting for permission; question is kept for compatibility and is never returned), status (pending), tool_name, input (the same input the agent.tool_use event shows), create_time and expire_time. Answer a request as before: send a user.tool_confirmation event for its id. expire_time is set only for a session with no collaboration mode while the requests-v1 release is on (create_time plus 24 hours; an expired request counts as declined), otherwise null. Answered, expired and superseded requests are not listed, and neither are pending custom tool results (user.custom_tool_result). Whoever may read the session may read its requests; a session that is missing or not yours returns 404.
- Create Session Dictation Stream (Extension):Own-face extension. The body is optional: hotwords (at most 50 words the recogniser should favour). Returns 201 { id, push_url, expires_at }: id is the stream id (mst_…), push_url a wss address, expires_at when the address stops accepting a new connection. The speech-to-text model is the agent’s dictation_model, or the platform default when it names none. Once connected to push_url, send one text frame {“type”:“start”,“format”:“pcm_s16le”,“sample_rate”:16000,“channels”:1}, then binary PCM frames of at most 64 KiB, then {“type”:“stop”}; the text frames you receive are partial, final, done (with audio_seconds and cost_usd) and error. Each final carries end_ms, where that sentence ends in the audio you sent: if the connection drops, send what comes after the last end_ms to a new dictation. You may connect ahead of time: the stream waits up to 5 minutes for start; after start it closes after 30 s without a frame, and it carries at most 10 minutes of audio. push_url carries a short-lived capability: treat it as a secret and do not store or log it. A session that is missing or not yours returns 404; a model that cannot transcribe a live stream returns 409 DICTATION_UNCONFIGURED; dictation not available in this environment returns 503 DICTATION_UNAVAILABLE; more than 50 hotwords or an unsupported field returns 400.
- List Threads:Returns the primary thread and every child thread in created_at order. Thread ids use sthr_ plus the owning session suffix; children reference the primary parent_thread_id and retain the parent session_id. agent describes the actual running definition; built-in types use their type name and null for unregistered id/version. Archived children have status terminated and archived_at. stats/usage remain null without thread-level tracking.
- Get Thread:Returns a primary or child thread belonging to this session, field-for-field identical to its list item. Foreign, unknown and malformed thread ids uniformly return 404 without revealing existence.
- List Thread Events:Reads the selected thread ledger: the primary session for the primary thread, or the child session for a child thread. Uses the session event query parameters, public event types and data + next_page envelope. Web tools return search_result blocks on both APIs; answer citations are an /agent/v1 extension, rendered as [n] on /anthropic.
- Stream Thread Events:Subscribes to the selected thread live ledger using the session SSE implementation; the /agent API also supports a read-only WebSocket. The parent stream includes child creation, status and message events. Child approvals carry session_thread_id; confirmations and interrupts targeting that id are routed to the owned child.
- Archive Thread:Archiving the primary thread uses session archival. Archiving a child archives only that child session, leaving the parent and siblings intact. Archived children have status terminated and archived_at; their history remains readable.
- Create Environment:Supports tenant-owned cloud environments, configuration updates and soft archival; built-ins are read-only. Lists accept limit, page and include_archived. Limited networking applies at sandbox creation; package installation failure terminates the session with ENVIRONMENT_PACKAGE_INSTALL_FAILED. self_hosted, scope and cross-session package caching are not supported.
- List Environments:Supports tenant-owned cloud environments, configuration updates and soft archival; built-ins are read-only. Lists accept limit, page and include_archived. Limited networking applies at sandbox creation; package installation failure terminates the session with ENVIRONMENT_PACKAGE_INSTALL_FAILED. self_hosted, scope and cross-session package caching are not supported.
- Get Environment:Supports tenant-owned cloud environments, configuration updates and soft archival; built-ins are read-only. Lists accept limit, page and include_archived. Limited networking applies at sandbox creation; package installation failure terminates the session with ENVIRONMENT_PACKAGE_INSTALL_FAILED. self_hosted, scope and cross-session package caching are not supported.
- Update Environment:Supports tenant-owned cloud environments, configuration updates and soft archival; built-ins are read-only. Lists accept limit, page and include_archived. Limited networking applies at sandbox creation; package installation failure terminates the session with ENVIRONMENT_PACKAGE_INSTALL_FAILED. self_hosted, scope and cross-session package caching are not supported.
- Archive Environment:Supports tenant-owned cloud environments, configuration updates and soft archival; built-ins are read-only. Lists accept limit, page and include_archived. Limited networking applies at sandbox creation; package installation failure terminates the session with ENVIRONMENT_PACKAGE_INSTALL_FAILED. self_hosted, scope and cross-session package caching are not supported.
- Create Skill:Skill directories (a folder containing SKILL.md) can be uploaded and versioned; content downloads as application/zip. Only source custom is supported, and source anthropic returns an empty list. Uploads are limited to 8 MB in total and 200 files, with no .. or absolute paths. Versions are immutable. A skill that still has live versions cannot be deleted (409); delete all versions first.
- List Skills:Skill directories (a folder containing SKILL.md) can be uploaded and versioned; content downloads as application/zip. Only source custom is supported, and source anthropic returns an empty list. Uploads are limited to 8 MB in total and 200 files, with no .. or absolute paths. Versions are immutable. A skill that still has live versions cannot be deleted (409); delete all versions first.
- Get Skill:Skill directories (a folder containing SKILL.md) can be uploaded and versioned; content downloads as application/zip. Only source custom is supported, and source anthropic returns an empty list. Uploads are limited to 8 MB in total and 200 files, with no .. or absolute paths. Versions are immutable. A skill that still has live versions cannot be deleted (409); delete all versions first.
- Delete Skill:Skill directories (a folder containing SKILL.md) can be uploaded and versioned; content downloads as application/zip. Only source custom is supported, and source anthropic returns an empty list. Uploads are limited to 8 MB in total and 200 files, with no .. or absolute paths. Versions are immutable. A skill that still has live versions cannot be deleted (409); delete all versions first.
- Create Skill Version:Skill directories (a folder containing SKILL.md) can be uploaded and versioned; content downloads as application/zip. Only source custom is supported, and source anthropic returns an empty list. Uploads are limited to 8 MB in total and 200 files, with no .. or absolute paths. Versions are immutable. A skill that still has live versions cannot be deleted (409); delete all versions first.
- List Skill Versions:Skill directories (a folder containing SKILL.md) can be uploaded and versioned; content downloads as application/zip. Only source custom is supported, and source anthropic returns an empty list. Uploads are limited to 8 MB in total and 200 files, with no .. or absolute paths. Versions are immutable. A skill that still has live versions cannot be deleted (409); delete all versions first.
- Get Skill Version:Skill directories (a folder containing SKILL.md) can be uploaded and versioned; content downloads as application/zip. Only source custom is supported, and source anthropic returns an empty list. Uploads are limited to 8 MB in total and 200 files, with no .. or absolute paths. Versions are immutable. A skill that still has live versions cannot be deleted (409); delete all versions first.
- Download Skill Version Content:Skill directories (a folder containing SKILL.md) can be uploaded and versioned; content downloads as application/zip. Only source custom is supported, and source anthropic returns an empty list. Uploads are limited to 8 MB in total and 200 files, with no .. or absolute paths. Versions are immutable. A skill that still has live versions cannot be deleted (409); delete all versions first.
- Delete Skill Version:Skill directories (a folder containing SKILL.md) can be uploaded and versioned; content downloads as application/zip. Only source custom is supported, and source anthropic returns an empty list. Uploads are limited to 8 MB in total and 200 files, with no .. or absolute paths. Versions are immutable. A skill that still has live versions cannot be deleted (409); delete all versions first.
- List Toolsets:Returns toolset descriptions, plugin names and versions, and each tool’s name, description, input schema, read-only status and default permission policy. Available at /agent/v1/toolsets. Reading the catalog does not change agent configuration. agent_toolset_20260401 contains bash, edit, glob, grep, read, write, web_search, web_fetch, task_output, task_stop, monitor, agent, send_message, codemode and skill, plus todo_write and goal_read (names are exactly these lowercase strings in configs). task_output, task_stop, monitor, agent and send_message support individual enablement and permission policies and require bash. The compatibility API provides only the eight official tools.
For native tools and parameters, use these endpoint pages and /meta/v1/openapi.yaml; the Claude Managed Agents documentation describes the official fields supported by the compatibility API.
Errors follow the Anthropic error format (type / message / request_id), see errors; quotas and response headers are covered in rate limits.