AnthropicClaude 托管智能体
创建凭据库
创建一个凭据保险库,集中存放智能体要用的第三方凭据。
POST
/anthropic/v1/vaults● 支持请求体
display_namestring必填Human-readable name for the vault. 1-255 characters.
metadataobject可选Arbitrary key-value metadata to attach to the vault. Maximum 16 pairs, keys up to 64 chars, values up to 512 chars.
返回
200
支持创建、列出、读取、更新、归档与删除。列表支持 limit、page 和 include_archived。归档会同时归档库内全部凭据并清除凭据的值;删除会一并删除全部凭据,不可恢复。以 anthropic. 开头的 metadata 键由平台保留,不能写入。同一个库也可以通过原生接口 /vault/v1 管理。
错误按 Claude Managed Agents 格式返回,参见 错误码
响应
HTTP 200
Successful response
application/json
| 名称 | 类型 | 说明 |
|---|---|---|
| id | string | Unique identifier for the vault. |
| archived_at | null | string | A timestamp in RFC 3339 format |
| created_at | string | A timestamp in RFC 3339 format |
| display_name | string | Human-readable name for the vault. |
| metadata | object | Arbitrary key-value metadata attached to the vault. |
| type | string | |
| updated_at | string | A timestamp in RFC 3339 format |