Skip to main content

List Vaults

Paginated list of Vaults under the workspace. Archived items are excluded by default.

Prerequisites

Endpoint and authentication configured. For details, see Overview and authentication.

Endpoint

GET /vaults

Query parameters

include_archived boolean (可选)Whether to include archived Vaults; default falselimit integer (可选)Number of items per page; default 20, max 100page string (可选)Pagination cursor; take from the next_page value of the previous response

Request example

curl "$AGENTSTUDIO_URL/vaults?include_archived=true&limit=20" \
  -H "Authorization: Bearer $DASHSCOPE_API_KEY"

Response fields

data array<object>Array of Vault objectsdata[].id stringVault ID, format vlt_xxxdata[].type stringAlways vaultdata[].display_name stringHuman-readable name of the Vaultdata[].metadata objectCustom key-value pairsdata[].archived_at string | nullArchive timestamp; null if not archiveddata[].created_at stringCreation time, ISO 8601data[].updated_at stringLast update time, ISO 8601next_page string | nullNext page cursor; null when there is no more data

Response

The response contains data (an array of Vault objects) and next_page (the cursor for the next page; null when there is no more data).
{
  "data": [
    {
      "id": "vlt_xxx",
      "type": "vault",
      "display_name": "Production secrets vault",
      "metadata": {
        "environment": "production"
      },
      "archived_at": null,
      "created_at": "2026-06-20T10:00:00Z",
      "updated_at": "2026-06-20T10:00:00Z"
    }
  ],
  "next_page": null
}

Error codes

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