CLI docs

API referenceAPI overview

API reference

API reference

Everything you send and receive: registering agents and merchants, verifying requests, and looking up keys.

Markdownllms.txt
On this page

Base URLs and authentication

APIBase URLAuthentication
Visa CLI lookups: keys, agents and the key listhttps://auth.visacli.shNone. Public reads, from your server
Visa CLI signing routeshttps://auth.visacli.shA Visa CLI agent, OAuth or app token. They serve Visa CLI's own agents
VARS and VMRS, sandboxhttps://sandbox.api.visa.comYour Visa Developer project's credentials. See Authentication
The Visa Agent Directory, productionhttps://agenticdirectory.visa.comNone for reading a key by UUID
The Visa Agent Directory, sandboxhttps://sbx.agenticdirectory.visa.comNone for reading a key by UUID

Your first call

Most integrations start with one public lookup: the key behind a signature. It needs no account or key. This example key isn't listed, so it answers 404, which is the not-listed answer a verifier refuses. A listed key answers 200 with the agent and its keys, shown on Key lookup.

The 404 is what production returned when we ran this, trimmed to the fields to branch on.

jkt='nEArpjG3kYMcxbdzInyGlBEYQUw7RfAfe3Tw1fZvAA0'

curl -i \
  "https://auth.visacli.sh/v1/tap/registry/keys/$jkt"
const jkt = 'nEArpjG3kYMcxbdzInyGlBEYQUw7RfAfe3Tw1fZvAA0'
const url = `https://auth.visacli.sh/v1/tap/registry/keys/${encodeURIComponent(jkt)}`
const response = await fetch(url)
console.log(response.status, await response.json())
import json
import urllib.error
import urllib.parse
import urllib.request

jkt = 'nEArpjG3kYMcxbdzInyGlBEYQUw7RfAfe3Tw1fZvAA0'
url = 'https://auth.visacli.sh/v1/tap/registry/keys/' + urllib.parse.quote(jkt, safe='')

try:
    with urllib.request.urlopen(url, timeout=5) as response:
        print(response.status, json.load(response))
except urllib.error.HTTPError as error:
    print(error.code, json.load(error))
Response 404, as production returns it today
{
  "code": "not_found",
  "detail": "tap_registry_entry",
  "retryable": false,
  "retry_after_seconds": null
}

Find an endpoint

28 endpoints

The two flows

Agent registration

  1. Create agent + public key, active on creation

  2. Activate and read back the key

  3. Sign requests to merchants

Merchant integration

  1. Register VMRS metadata as needed

  2. Publish / activate encryption key

  3. Verify the agent’s request signature

  4. Validate payment and settlement

VARS is the Visa Agent Registry Service. VMRS is the Visa Merchant Registry Service. Agent signing keys establish request identity; merchant encryption keys protect delivered payment credentials. The merchant specification also supports recognition on existing sites without prescribing a VMRS registration prerequisite for every browsing interaction.

Downloads and sources

Download the public OpenAPI for the VMRS operations. It's exactly what Visa publishes.

Examples using example.com, placeholder IDs, dummy keys, tokens, signatures or fixed timestamps are illustrative. Replace those values and generate fresh signatures. Public VMRS schemas are reproduced exactly in the download; VARS schemas and the schemas Visa CLI uses are separate reference material.

External sources

Visa's published documentation:

SourceWhat it covers
TAP merchant specificationsThe TAP merchant specification. It links the product terms, the payment verification diagram and RFC 9421
TAP getting startedLinks to Visa's sample code on GitHub
TAP API reference, endpoint catalogLists 11 VARS operations marked RESTRICTED, 9 VMRS operations marked PUBLIC, and one entry with no contract, GET /v1/trustedAgentProtocol. The public OpenAPI leaves out the restricted VARS schemas
TAP API reference as MarkdownThe same 9 public VMRS operations, with request and response fields and HTTP statuses, as in the embedded OpenAPI 3.1.0 snapshot
TAP product termsThe terms that accompany use of the specification
Example agent verification for paymentsThe sequence diagram linked from the specification

The Visa Developer Platform's general guides:

SourceWhat it covers
X-Pay Token authenticationRaw request body, sorted query, context-path exclusion, API key and HMAC token formula. The generic guide spells it apikey, and VARS calls use apiKey
Two-Way SSL authenticationClient certificate plus HTTP Basic authentication. Keep this transport separate from TAP request signatures
Authentication overviewProduct and project configuration selects authentication
Quick startAccount, project, selected APIs and environment-specific credentials
Encryption overviewRead it alongside the VMRS encryption-key fields
Message-Level EncryptionA related platform encryption guide. Its MLE keyId is a separate integration concept
Request and response codesGeneral platform conventions. Endpoint-specific statuses on these pages come from the relevant operation contract
Error codesPlatform error guidance, not a complete endpoint-specific response schema
Environment switching and testingSandbox, Certification and Production use separate settings and credentials
Going liveCommercial onboarding and next-environment access are distinct from creating a VARS or VMRS record
Working with Visa APIsSupporting context on request flow and environments
Release notesWe found no additional TAP, VARS or VMRS endpoint contracts here
Certificate signing request guideCertificate setup, linked from the mTLS and encryption guides
Trusted certifying authoritiesCertificate authorities, linked from the mTLS guide
Outbound callback configurationA related authentication and encryption guide. We found no TAP-specific callback endpoint contract here

The standard behind the signatures:

SourceWhat it covers
HTTP Message Signatures, RFC 9421Signature-base construction and the Signature and Signature-Input definitions. It settles formatting differences in examples

Visa's sample implementation on GitHub. Where a sample's README and its route definitions differ, the route definitions take precedence.

SourceWhat it covers
Root READMEThe sample as a whole
Agent Registry READMEThe sample's Agent Registry component
Merchant Backend READMEThe sample's merchant backend
CDN Proxy READMEThe sample's CDN proxy
Merchant Frontend READMEThe sample's merchant frontend
TAP Agent READMEThe sample's TAP Agent
Agent Registry routesRoute definitions
Agent Registry schemasSchemas
Merchant router mountingHow merchant routes are mounted
Product routesRoute definitions
Cart routesRoute definitions
Order routesRoute definitions
Signature-verification routesRoute definitions
Merchant schemasSchemas
CDN proxy routesRoute definitions
Payment-flow diagramImage linked from the root README
TAP Agent screenshotImage linked from the TAP Agent README
Merchant screenshotImage linked from the Merchant Frontend README

Updated 18 Nov 2026