Archive Vault
Updated at:
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}/archivePath parameters
vault_idstringRequiredVault ID, format vlt_xxx
Request example
curl -X POST "$AGENTSTUDIO_URL/vaults/vlt_xxx/archive" \
-H "Authorization: Bearer $DASHSCOPE_API_KEY"
Response fields
idstringVault ID, format vlt_xxx
typestringAlways vault
display_namestringHuman-readable name of the Vault
metadataobjectCustom business key-value pairs
archived_atstring | nullArchive time, populated once archived, ISO 8601
created_atstringCreation time, ISO 8601
updated_atstringLast update time, ISO 8601
Response example
{
"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 status | Error code | Description |
|---|---|---|
| 400 | InvalidParameter | Required parameter missing or invalid. |
| 401 | InvalidApiKey | Invalid API-key provided. |
Is this page helpful?