Repository Public
1---2title: Create Vault3url: https://platform.claude.com/docs/en/api/beta/vaults/create4---56# Create Vault78**POST** `/v1/vaults`910Create Vault1112## Headers1314- `"anthropic-beta": optional array of AnthropicBeta`1516 Optional header to specify the beta version(s) you want to use.1718 - `string`1920 - `"message-batches-2024-09-24" or "prompt-caching-2024-07-31" or "computer-use-2024-10-22" or 43 more`2122 - `"message-batches-2024-09-24"`2324 - `"prompt-caching-2024-07-31"`2526 - `"computer-use-2024-10-22"`2728 - `"computer-use-2025-01-24"`2930 - `"pdfs-2024-09-25"`3132 - `"token-counting-2024-11-01"`3334 - `"token-efficient-tools-2025-02-19"`3536 - `"output-128k-2025-02-19"`3738 - `"files-api-2025-04-14"`3940 - `"mcp-client-2025-04-04"`4142 - `"mcp-client-2025-11-20"`4344 - `"dev-full-thinking-2025-05-14"`4546 - `"interleaved-thinking-2025-05-14"`4748 - `"code-execution-2025-05-22"`4950 - `"extended-cache-ttl-2025-04-11"`5152 - `"context-1m-2025-08-07"`5354 - `"context-management-2025-06-27"`5556 - `"model-context-window-exceeded-2025-08-26"`5758 - `"skills-2025-10-02"`5960 - `"fast-mode-2026-02-01"`6162 - `"output-300k-2026-03-24"`6364 - `"user-profiles-2026-03-24"`6566 - `"user-profiles-2026-08-18"`6768 - `"user-profiles-2026-09-04"`6970 - `"advisor-tool-2026-03-01"`7172 - `"managed-agents-2026-04-01"`7374 - `"cache-diagnosis-2026-04-07"`7576 - `"dreaming-2026-04-21"`7778 - `"thinking-token-count-2026-05-13"`7980 - `"server-side-fallback-2026-06-01"`8182 - `"server-side-fallback-2026-07-01"`8384 - `"fallback-credit-2026-06-01"`8586 - `"fallback-credit-2026-07-01"`8788 - `"agent-memory-2026-07-22"`8990 - `"mid-conversation-tool-changes-2026-07-01"`9192 - `"compact-2026-01-12"`9394 - `"computer-use-2025-11-24"`9596 - `"mcp-tunnels-2026-06-22"`9798 - `"structured-outputs-2025-11-13"`99100 - `"task-budgets-2026-03-13"`101102 - `"thinking-display-updates-2026-08-18"`103104 - `"ce-user-management-2026-07-13"`105106 - `"mid-conversation-output-config-2026-07-01"`107108 - `"thinking-binding-controls-2026-08-01"`109110 - `"mid-conversation-system-clear-at-2026-08-21"`111112 - `"compact-2026-09-04"`113114- `"anthropic-workspace-id": optional string`115116## Body parameters117118- `display_name: string`119120 Human-readable name for the vault. 1-255 characters.121122 minLength: 1, maxLength: 255123124- `metadata: optional map[string]`125126 Arbitrary key-value metadata to attach to the vault. Maximum 16 pairs, keys up to 64 chars, values up to 512 chars.127128## Returns129130- `BetaManagedAgentsVault object`131132 A vault that stores credentials for use by agents during sessions.133134 - `type: "vault"`135136 - `id: string`137138 Unique identifier for the vault.139140 - `archived_at: string or null`141142 A timestamp in RFC 3339 format143144 format: date-time145146 - `created_at: string`147148 A timestamp in RFC 3339 format149150 format: date-time151152 - `display_name: string`153154 Human-readable name for the vault.155156 - `metadata: map[string]`157158 Arbitrary key-value metadata attached to the vault.159160 - `updated_at: string`161162 A timestamp in RFC 3339 format163164 format: date-time165166## Example167168```bash169curl https://api.anthropic.com/v1/vaults \170 -H 'Content-Type: application/json' \171 -H 'anthropic-version: 2023-06-01' \172 -H 'anthropic-beta: managed-agents-2026-04-01' \173 -H "X-Api-Key: $ANTHROPIC_API_KEY" \174 -d '{175 "display_name": "Example vault",176 "metadata": {177 "environment": "production"178 }179 }'180```181182### Response (200)183184```json185{186 "id": "vlt_011CZkZDLs7fYzm1hXNPeRjv",187 "archived_at": null,188 "created_at": "2026-03-15T10:00:00Z",189 "display_name": "Example vault",190 "metadata": {191 "environment": "production"192 },193 "type": "vault",194 "updated_at": "2026-03-15T10:00:00Z"195}196```197