Base URL
https://api.deepraxis.com/anthropic
Get started
curl
curl https://api.deepraxis.com/anthropic/v1/agents \
-H "x-api-key: $PRAXIS_API_KEY" \
-H "anthropic-version: 2023-06-01" \
-H "anthropic-beta: managed-agents-2026-04-01" \
-H "Content-Type: application/json" \
-d '{"name":"文档助手","model":"deepseek-flash","system":"用一句话简短回答。"}'
Python
import os
from anthropic import Anthropic
client = Anthropic(
base_url="https://api.deepraxis.com/anthropic",
api_key=os.environ["PRAXIS_API_KEY"],
)
result = client.beta.agents.create(name="文档助手", model="deepseek-flash", system="用一句话简短回答。")
print(result)
TypeScript
import Anthropic from "@anthropic-ai/sdk";
const client = new Anthropic({
baseURL: "https://api.deepraxis.com/anthropic",
apiKey: process.env.PRAXIS_API_KEY,
});
const result = await client.beta.agents.create({
"name": "文档助手",
"model": "deepseek-flash",
"system": "用一句话简短回答。"
});
console.log(result);
Run a session
- Create an agent and save its
agent_… ID.
- Create a session, replacing
agent with that ID. Save the returned sesn_… ID.
- Subscribe to events before sending a message, using the same real session ID in both requests.
- After
agent.message, wait for session.status_idle; list historical events to read previous replies.
Use the base URL above as the SDK base URL. All requests require an API Key, anthropic-version: 2023-06-01 and anthropic-beta: managed-agents-2026-04-01. Try it supplies these protocol headers; replace resource IDs yourself.
All 95 official operations are declared: 62 are supported or partially supported (see the badges in the endpoint list); the other 33 are not implemented yet and answer 501 (not_implemented_error, x-should-retry: false) with no side effects and no charge. See endpoint notes for capability and vault limits.
Endpoints
Agents (6 endpoints, 6 available)
Sessions & events (9 endpoints, 9 available)
Deployments (10 endpoints, 10 available)
Environments (6 endpoints, 6 available)
Environment work (8 endpoints, 0 available)
Memory stores (14 endpoints, 0 available)
Session resources (5 endpoints, 4 available)
Session threads (5 endpoints, 5 available)
Skills (9 endpoints, 9 available)
Tunnels (10 endpoints, 0 available)
Vaults & credentials (13 endpoints, 13 available)
Differences from Claude Managed Agents
- Create Agent: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. MCP and 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. The compatibility response always fills version: the pinned version or “latest”. 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. The compatibility API provides eight official built-in tools: bash, edit, glob, grep, read, write, web_search and web_fetch. configs rejects other tool names. Sessions created here do not provide background tasks, Monitor or subagents. Use /agent/v1 for all native tools. 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.
- Get Agent:Replace example resource IDs with IDs from resources you created.
- Update Agent: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). MCP is not supported. 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. The compatibility response always fills version: the pinned version or “latest”. 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. The compatibility API provides eight official built-in tools: bash, edit, glob, grep, read, write, web_search and web_fetch. configs rejects other tool names. Sessions created here do not provide background tasks, Monitor or subagents. Use /agent/v1 for all native tools. When the agent has an unapplied version saved on /agent/v1, this operation returns 409 (conflict_error); apply that version on /agent/v1 first. Native tools this API cannot show (such as codemode) are kept unchanged by a tools update and can only be removed on /agent/v1. mcp_servers[].headers values are write-only: responses show “[redacted]”, and sending “[redacted]” back keeps the stored value. 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.
- List Agent Versions:Replace example resource IDs with IDs from resources you created.
- Archive Agent:Archived agents remain readable, including versions, but cannot be updated. Only archive your own test agent.
- Create Session:Create an agent first and replace agent_123 with its returned id. environment_id is required on this compatibility surface: use node22 or a tenant-owned cloud environment. The native /agent/v1 surface allows omission to select a light machine. Inline agent overrides support only system. Budgets are not supported. 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. Supports vault_ids, up to 50, owned by the current organization and not archived; secrets reach the session’s machine as environment variables and are matched against its MCP servers.
- List Sessions:Supports limit, page, agent_id and deployment_id. agent_version, time ranges, memory_store_id, include_archived, order and statuses are not supported and return 400.
- Get Session:Replace example resource IDs with IDs from resources you created.
- 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. Other input variants and system.message in initial_events are not supported. 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.
- 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. As in the official API, agent.thinking is a progress signal without content.
- 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 to receive incremental text previews before the final event; as in the official API, agent.thinking previews are start-only.
- 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.
- 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. Supports vault_ids, up to 50, owned by the current organization and not archived; secrets reach the session’s machine as environment variables and are matched against its MCP servers. 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. Computer deployments are skipped by lists; individual operations return 400 with a /agent/v1 pointer. Reads project overrides to base references; updates containing agent on overridden deployments return 400.
- 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. Supports vault_ids, up to 50, owned by the current organization and not archived; secrets reach the session’s machine as environment variables and are matched against its MCP servers. 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. Computer deployments are skipped by lists; individual operations return 400 with a /agent/v1 pointer. Reads project overrides to base references; updates containing agent on overridden deployments 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. Supports vault_ids, up to 50, owned by the current organization and not archived; secrets reach the session’s machine as environment variables and are matched against its MCP servers. 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. Computer deployments are skipped by lists; individual operations return 400 with a /agent/v1 pointer. Reads project overrides to base references; updates containing agent on overridden deployments 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. Supports vault_ids, up to 50, owned by the current organization and not archived; secrets reach the session’s machine as environment variables and are matched against its MCP servers. 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. Computer deployments are skipped by lists; individual operations return 400 with a /agent/v1 pointer. Reads project overrides to base references; updates containing agent on overridden deployments 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. Supports vault_ids, up to 50, owned by the current organization and not archived; secrets reach the session’s machine as environment variables and are matched against its MCP servers. 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. Computer deployments are skipped by lists; individual operations return 400 with a /agent/v1 pointer. Reads project overrides to base references; updates containing agent on overridden deployments 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. Supports vault_ids, up to 50, owned by the current organization and not archived; secrets reach the session’s machine as environment variables and are matched against its MCP servers. 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. Computer deployments are skipped by lists; individual operations return 400 with a /agent/v1 pointer. Reads project overrides to base references; updates containing agent on overridden deployments 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.
- 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. Supports vault_ids, up to 50, owned by the current organization and not archived; secrets reach the session’s machine as environment variables and are matched against its MCP servers. 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. Computer deployments are skipped by lists; individual operations return 400 with a /agent/v1 pointer. Reads project overrides to base references; updates containing agent on overridden deployments return 400.
- 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.
- 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.
- Delete Environment:Deletion is archive-based soft deletion: the environment gets a deletion tombstone, GET returns 404, and both default lists and include_archived=true lists stop showing it; ordinary archival is unaffected — an archived, not deleted, environment stays readable and still appears under include_archived=true. Existing sessions are unaffected and keep the configuration pinned when they were created; unarchived agent references do not prevent deletion. Built-in environments cannot be deleted and return 409. The response matches the official shape: 200 with {id, type:“environment_deleted”}. The official semantics are a hard delete once no sessions reference the environment; the platform soft-deletes with a tombstone instead and does not permanently erase data.
- 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.
- Delete Session:Deletes an idle or terminated session and its event history after saving a deletion snapshot. The response matches the official shape: 200 with {id, type:“session_deleted”}. A running session returns 409 INVALID_STATE; interrupt it or wait until it ends first. After deletion, retrieval and event listing return 404 and lists omit the session; deleting an already-deleted or unknown session returns 404.
- Update Session: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. The official agent override (tools/mcp_servers), budget are not supported and return 400 naming the field. Updating an archived session returns 409. Supports vault_ids, up to 50, owned by the current organization and not archived; secrets reach the session’s machine as environment variables and are matched against its MCP servers.
- 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.
- 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.
- 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.
- 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.
- 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.
- 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.
- 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.
- 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.
- 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.
- 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.
- 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.
- 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.
- 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.
- 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.
- 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.
- 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.
- List Vaults:Supports create, list, retrieve, update, archive and delete. Lists accept limit, page and include_archived. Archiving a vault archives every credential in it and clears their values; deleting it removes every credential and cannot be undone. Metadata keys starting with anthropic. are reserved and cannot be written. The same vaults are also available through the native /vault/v1 API.
- Create Vault:Supports create, list, retrieve, update, archive and delete. Lists accept limit, page and include_archived. Archiving a vault archives every credential in it and clears their values; deleting it removes every credential and cannot be undone. Metadata keys starting with anthropic. are reserved and cannot be written. The same vaults are also available through the native /vault/v1 API.
- Delete Vault:Supports create, list, retrieve, update, archive and delete. Lists accept limit, page and include_archived. Archiving a vault archives every credential in it and clears their values; deleting it removes every credential and cannot be undone. Metadata keys starting with anthropic. are reserved and cannot be written. The same vaults are also available through the native /vault/v1 API.
- Get Vault:Supports create, list, retrieve, update, archive and delete. Lists accept limit, page and include_archived. Archiving a vault archives every credential in it and clears their values; deleting it removes every credential and cannot be undone. Metadata keys starting with anthropic. are reserved and cannot be written. The same vaults are also available through the native /vault/v1 API.
- Update Vault:Supports create, list, retrieve, update, archive and delete. Lists accept limit, page and include_archived. Archiving a vault archives every credential in it and clears their values; deleting it removes every credential and cannot be undone. Metadata keys starting with anthropic. are reserved and cannot be written. The same vaults are also available through the native /vault/v1 API.
- Archive Vault:Supports create, list, retrieve, update, archive and delete. Lists accept limit, page and include_archived. Archiving a vault archives every credential in it and clears their values; deleting it removes every credential and cannot be undone. Metadata keys starting with anthropic. are reserved and cannot be written. The same vaults are also available through the native /vault/v1 API.
- List Credentials:Supports environment_variable and static_bearer. environment_variable networking supports limited only; unrestricted returns 400. secret_name may contain only uppercase letters, digits and underscores and cannot start with a digit. injection_location defaults match the official API. A static_bearer token is usable only on the host of its mcp_server_url. Creating or updating mcp_oauth returns 501 (not_implemented_error), produces no side effects, and the official SDK does not retry; use one-click authorization at /vault/v1/authorizations for OAuth tokens. A vault holds at most 20 active credentials. Metadata keys starting with anthropic. are reserved and cannot be written.
- Create Credential:Supports environment_variable and static_bearer. environment_variable networking supports limited only; unrestricted returns 400. secret_name may contain only uppercase letters, digits and underscores and cannot start with a digit. injection_location defaults match the official API. A static_bearer token is usable only on the host of its mcp_server_url. Creating or updating mcp_oauth returns 501 (not_implemented_error), produces no side effects, and the official SDK does not retry; use one-click authorization at /vault/v1/authorizations for OAuth tokens. A vault holds at most 20 active credentials. Metadata keys starting with anthropic. are reserved and cannot be written.
- Delete Credential:Supports environment_variable and static_bearer. environment_variable networking supports limited only; unrestricted returns 400. secret_name may contain only uppercase letters, digits and underscores and cannot start with a digit. injection_location defaults match the official API. A static_bearer token is usable only on the host of its mcp_server_url. Creating or updating mcp_oauth returns 501 (not_implemented_error), produces no side effects, and the official SDK does not retry; use one-click authorization at /vault/v1/authorizations for OAuth tokens. A vault holds at most 20 active credentials. Metadata keys starting with anthropic. are reserved and cannot be written.
- Get Credential:Supports environment_variable and static_bearer. environment_variable networking supports limited only; unrestricted returns 400. secret_name may contain only uppercase letters, digits and underscores and cannot start with a digit. injection_location defaults match the official API. A static_bearer token is usable only on the host of its mcp_server_url. Creating or updating mcp_oauth returns 501 (not_implemented_error), produces no side effects, and the official SDK does not retry; use one-click authorization at /vault/v1/authorizations for OAuth tokens. A vault holds at most 20 active credentials. Metadata keys starting with anthropic. are reserved and cannot be written.
- Update Credential:Supports environment_variable and static_bearer. environment_variable networking supports limited only; unrestricted returns 400. secret_name may contain only uppercase letters, digits and underscores and cannot start with a digit. injection_location defaults match the official API. A static_bearer token is usable only on the host of its mcp_server_url. Creating or updating mcp_oauth returns 501 (not_implemented_error), produces no side effects, and the official SDK does not retry; use one-click authorization at /vault/v1/authorizations for OAuth tokens. A vault holds at most 20 active credentials. Metadata keys starting with anthropic. are reserved and cannot be written.
- Archive Credential:Supports environment_variable and static_bearer. environment_variable networking supports limited only; unrestricted returns 400. secret_name may contain only uppercase letters, digits and underscores and cannot start with a digit. injection_location defaults match the official API. A static_bearer token is usable only on the host of its mcp_server_url. Creating or updating mcp_oauth returns 501 (not_implemented_error), produces no side effects, and the official SDK does not retry; use one-click authorization at /vault/v1/authorizations for OAuth tokens. A vault holds at most 20 active credentials. Metadata keys starting with anthropic. are reserved and cannot be written.
- Validate Credential MCP OAuth:Applies to OAuth credentials only; other types return 400. The result is always HTTP 200 with status valid, invalid or unknown; mcp_probe describes the failing step only when the check does not pass, and refresh appears only when a refresh was attempted.
For authoritative parameter definitions, see the official Claude Managed Agents documentation.
Errors follow the Claude Managed Agents format, see errors; quotas and response headers are covered in rate limits.