SPB Git

Repository Public

archive.md 3.3 KB 183 lines markdown

1---2title: Archive Vault3url: https://platform.claude.com/docs/en/api/beta/vaults/archive4---56# Archive Vault78**POST** `/v1/vaults/{vault_id}/archive`910Archive Vault1112## Path parameters1314- `vault_id: string`1516## Headers1718- `"anthropic-beta": optional array of AnthropicBeta`1920  Optional header to specify the beta version(s) you want to use.2122  - `string`2324  - `"message-batches-2024-09-24" or "prompt-caching-2024-07-31" or "computer-use-2024-10-22" or 43 more`2526    - `"message-batches-2024-09-24"`2728    - `"prompt-caching-2024-07-31"`2930    - `"computer-use-2024-10-22"`3132    - `"computer-use-2025-01-24"`3334    - `"pdfs-2024-09-25"`3536    - `"token-counting-2024-11-01"`3738    - `"token-efficient-tools-2025-02-19"`3940    - `"output-128k-2025-02-19"`4142    - `"files-api-2025-04-14"`4344    - `"mcp-client-2025-04-04"`4546    - `"mcp-client-2025-11-20"`4748    - `"dev-full-thinking-2025-05-14"`4950    - `"interleaved-thinking-2025-05-14"`5152    - `"code-execution-2025-05-22"`5354    - `"extended-cache-ttl-2025-04-11"`5556    - `"context-1m-2025-08-07"`5758    - `"context-management-2025-06-27"`5960    - `"model-context-window-exceeded-2025-08-26"`6162    - `"skills-2025-10-02"`6364    - `"fast-mode-2026-02-01"`6566    - `"output-300k-2026-03-24"`6768    - `"user-profiles-2026-03-24"`6970    - `"user-profiles-2026-08-18"`7172    - `"user-profiles-2026-09-04"`7374    - `"advisor-tool-2026-03-01"`7576    - `"managed-agents-2026-04-01"`7778    - `"cache-diagnosis-2026-04-07"`7980    - `"dreaming-2026-04-21"`8182    - `"thinking-token-count-2026-05-13"`8384    - `"server-side-fallback-2026-06-01"`8586    - `"server-side-fallback-2026-07-01"`8788    - `"fallback-credit-2026-06-01"`8990    - `"fallback-credit-2026-07-01"`9192    - `"agent-memory-2026-07-22"`9394    - `"mid-conversation-tool-changes-2026-07-01"`9596    - `"compact-2026-01-12"`9798    - `"computer-use-2025-11-24"`99100    - `"mcp-tunnels-2026-06-22"`101102    - `"structured-outputs-2025-11-13"`103104    - `"task-budgets-2026-03-13"`105106    - `"thinking-display-updates-2026-08-18"`107108    - `"ce-user-management-2026-07-13"`109110    - `"mid-conversation-output-config-2026-07-01"`111112    - `"thinking-binding-controls-2026-08-01"`113114    - `"mid-conversation-system-clear-at-2026-08-21"`115116    - `"compact-2026-09-04"`117118- `"anthropic-workspace-id": optional string`119120## Returns121122- `BetaManagedAgentsVault object`123124  A vault that stores credentials for use by agents during sessions.125126  - `type: "vault"`127128  - `id: string`129130    Unique identifier for the vault.131132  - `archived_at: string or null`133134    A timestamp in RFC 3339 format135136    format: date-time137138  - `created_at: string`139140    A timestamp in RFC 3339 format141142    format: date-time143144  - `display_name: string`145146    Human-readable name for the vault.147148  - `metadata: map[string]`149150    Arbitrary key-value metadata attached to the vault.151152  - `updated_at: string`153154    A timestamp in RFC 3339 format155156    format: date-time157158## Example159160```bash161curl https://api.anthropic.com/v1/vaults/$VAULT_ID/archive \162    -X POST \163    -H 'anthropic-version: 2023-06-01' \164    -H 'anthropic-beta: managed-agents-2026-04-01' \165    -H "X-Api-Key: $ANTHROPIC_API_KEY"166```167168### Response (200)169170```json171{172  "id": "vlt_011CZkZDLs7fYzm1hXNPeRjv",173  "archived_at": null,174  "created_at": "2026-03-15T10:00:00Z",175  "display_name": "Example vault",176  "metadata": {177    "environment": "production"178  },179  "type": "vault",180  "updated_at": "2026-03-15T10:00:00Z"181}182```183
Files main
Menu

Theme