Skip to main content
GET /v1/vaults Retrieves vaults under the current account with cursor pagination and optional name search. Archived vaults are excluded by default.

Headers

HeaderRequiredDescription
AuthorizationYesBearer $QODER_PAT

Query parameters

ParameterTypeRequiredDescription
limitintegerNoMaximum number of records per page
after_idstringNoCursor pagination: return records after this ID
before_idstringNoCursor pagination: return records before this ID
include_archivedbooleanNoSet to true to include archived vaults
namestringNoSearch vaults by display name
created_at[gte]stringNoInclude vaults created at or after this RFC 3339 timestamp
created_at[lte]stringNoInclude vaults created at or before this RFC 3339 timestamp

Example request

# List all vaults
curl -X GET https://api.qoder.com/api/v1/cloud/vaults \
  -H "Authorization: Bearer $QODER_PAT"

# Paginate
curl -X GET "https://api.qoder.com/api/v1/cloud/vaults?limit=2" \
  -H "Authorization: Bearer $QODER_PAT"

# Search by name, including archived vaults
curl -X GET "https://api.qoder.com/api/v1/cloud/vaults?name=my-mcp&include_archived=true" \
  -H "Authorization: Bearer $QODER_PAT"

Example response

HTTP 200 OK
{
  "data": [
    {
      "id": "vault_019e3bb940277f0db05ab74291acf6ef",
      "type": "vault",
      "display_name": "my-mcp-vault",
      "status": "active",
      "metadata": {},
      "created_at": "2026-05-18T15:34:16.874877Z",
      "updated_at": "2026-05-18T15:34:16.874877Z"
    }
  ],
  "first_id": "vault_019e3bb940277f0db05ab74291acf6ef",
  "last_id": "vault_019e3bb940277f0db05ab74291acf6ef",
  "has_more": false
}

Empty list response

{
  "data": [],
  "first_id": null,
  "last_id": null,
  "has_more": false
}

Response fields

FieldTypeDescription
dataarrayArray of Vault objects
first_idstring | nullID of the first record on the current page
last_idstring | nullID of the last record on the current page (use for cursor pagination)
has_morebooleanWhether more pages are available

Errors

HTTPTypeTrigger
401TOKEN_INVALIDMissing or invalid authentication token
See Errors for the full error envelope.

Authenticate with vaults

Store and inject secrets safely into agent sessions.