CLI docs

Agents (VARS)List Keys

Agents (VARS)TAP specification

List Keys

List an agent’s public keys. Visa CLI scans every page and confirms the exact public key.

Markdownllms.txt
GET/vars/v1/agents/{agentId}/keys

Related guide: Register an agent.

Authentication: the method you chose, X-Pay-Token or two-way TLS; see X-Pay-Token / mTLS. X-Pay uses the signed apiKey query.

Parameters

agentIdpath parameterrequired

string
The agent's ID, returned as id.

pagequery parameter

integer
Minimum 1, default 1. Visa CLI sends page for later pages.

pageSizequery parameter

integer
1–100, default 30, from an earlier copy of Visa's reference. Visa CLI doesn't set it.

Request body: none.

Responses

HTTPMeaningSchema
200Keys and pagination.KeysListResponse
404Agent not found.ErrorResponse

The token covers this URL's exact query, so each request needs a new one. Replace the YOUR_ values with your own.

Sources: Current TAP API reference / endpoint catalog.

X-Pay-Token request template
base='https://sandbox.api.visa.com/vars/v1'
curl --request GET \
  "$base/agents/YOUR_AGENT_ID/keys?apiKey=YOUR_API_KEY&page=1&pageSize=30" \
  --header 'Accept: application/json' \
  --header 'x-pay-token: TOKEN_FOR_THIS_EXACT_REQUEST'
Illustrative response — not a live capture
{
  "agentId": "7f4c82a1-305e-4f9c-8d2a-1b3e5f7c502a",
  "keys": [
    {
      "id": "a1b2c384-56c7-48d9-be0f-1e2d3c4b5a6f",
      "agentId": "7f4c82a1-305e-4f9c-8d2a-1b3e5f7c502a",
      "keyName": "YOUR_PUBLIC_JWK_THUMBPRINT",
      "status": "active",
      "algorithm": "ed25519",
      "publicKey": "BASE64_ENCODED_SPKI_PEM_PUBLIC_KEY",
      "expirationDate": "2027-11-05T00:00:00Z"
    }
  ],
  "pagination": {
    "hasNext": false,
    "currentPage": 1,
    "totalPages": 1
  }
}

Updated 9 Nov 2026