Vault API
库、Secret、模板与一键授权的 API 参考。
(待译)
Vault stores write-only credentials through /vault/v1, with a compatibility face at /anthropic/v1/vaults. Concepts and behavior follow Anthropic vaults (credential collections, write-only values, rotation and archival), so Anthropic experience applies. Differences: native secrets use names and static/oauth kinds; native OAuth uses authorizations, while compatible mcp_oauth creation and updates return 501; explicit allowed_hosts are required, with no unrestricted mode; Agent sessions reject nonempty vault_ids, so vault-backed MCP authentication is unavailable; application vault references return 501, including praxis_vault_ref bindings and secret writes with a vault source. Metadata labels do not attach credentials to either resource. Start with praxis.vault.vaults.create to create the containing vault.
用 API Key 作为 Bearer 凭据,通过以下地址管理库与 Secret。Secret 的值只写,任何接口都不会返回。
https://api.deepraxis.ai/vault/v1
| 资源 | 路径 |
|---|---|
| 库 | /vault/v1/vaults |
| Secret | /vault/v1/vaults/{vault_id}/secrets |
| 模板 | /vault/v1/templates |
| 一键授权 | /vault/v1/authorizations |
Secret 可以用名字或 vsec_ 开头的 ID 寻址。列表用 cursor 与 limit 翻页(limit 默认 50,最大 200),返回的 next_cursor 为 null 表示没有后续页。
同一批库也可以通过 Claude 托管智能体的凭据库接口访问:Claude 托管智能体