Create Vault
api/beta/vaults/create
Nearest release: v2.1.245, published an hour after this site recorded the change. Shown because the two are within 24 hours of each other. Nothing here says the release caused the edit.
api/beta/vaults/create Changed · +17 / -16 lines
# Create Vault ## Headers ## Body parameters ## Returns ## Example ### Response (200) ## Create Vault ### Header Parameters ### Body Parameters ### Returns ### Example #### Response
---- -title: Create Vault -url: https://platform.claude.com/docs/en/api/beta/vaults/create ---- +# Create Vault -## Create Vault +**POST** `/v1/vaults` -**post** `/v1/vaults` - Create Vault -### Header Parameters +## Headers - `"anthropic-beta": optional array of AnthropicBeta`
- `"mid-conversation-tool-changes-2026-07-01"` -### Body Parameters +## Body parameters - `display_name: string` Human-readable name for the vault. 1-255 characters. + minLength: 1, maxLength: 255 + - `metadata: optional map[string]` Arbitrary key-value metadata to attach to the vault. Maximum 16 pairs, keys up to 64 chars, values up to 512 chars. -### Returns +## Returns -- `BetaManagedAgentsVault object { id, archived_at, created_at, 4 more }` +- `BetaManagedAgentsVault object` A vault that stores credentials for use by agents during sessions.
A timestamp in RFC 3339 format + format: date-time + - `created_at: string` A timestamp in RFC 3339 format + format: date-time + - `display_name: string` Human-readable name for the vault.
- `type: "vault"` - - `"vault"` - - `updated_at: string` A timestamp in RFC 3339 format -### Example + format: date-time -```http +## Example + +```bash curl https://api.anthropic.com/v1/vaults \ -H 'Content-Type: application/json' \ -H 'anthropic-version: 2023-06-01' \
}' ``` -#### Response +### Response (200) ```json {