Skip to main content

Archive Vault

Soft-archives the specified Vault. Once archived, the Vault no longer appears in list results by default. Sessions already bound to its Credentials are unaffected.

Prerequisites

Endpoint and authentication have been configured. For details, see API overview and authentication.

Endpoint

POST /vaults/{vault_id}/archive

Path parameters

vault_id string (必选)Vault ID, format vlt_xxx

Request example

curl -X POST "$AGENTSTUDIO_URL/vaults/vlt_xxx/archive" \
  -H "Authorization: Bearer $DASHSCOPE_API_KEY"

Response fields

id stringVault ID, format vlt_xxxtype stringAlways vaultdisplay_name stringHuman-readable name of the Vaultmetadata objectCustom business key-value pairsarchived_at string | nullArchive time, populated once archived, ISO 8601created_at stringCreation time, ISO 8601updated_at stringLast update time, ISO 8601

Response

{
  "id": "vlt_xxx",
  "type": "vault",
  "display_name": "Production secrets vault",
  "metadata": {
    "environment": "production"
  },
  "archived_at": "2026-07-10T08:00:00Z",
  "created_at": "2026-06-20T10:00:00Z",
  "updated_at": "2026-07-10T08:00:00Z"
}

Error codes

HTTP statusError codeDescription
400InvalidParameterRequired parameter missing or invalid.
401InvalidApiKeyInvalid API-key provided.