---
title: "API reference"
description: "Everything you send and receive: registering agents and merchants, verifying requests, and looking up keys."
url: https://app.visacli.sh/docs/reference
updated: 2026-11-18
---

# API reference

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

Canonical: https://app.visacli.sh/docs/reference. Updated: 2026-11-18. Full index: /llms.txt.

- [Register an agent](/docs/reference/vars.md): VARS identity and signing-key lifecycle.
- [Register a merchant](/docs/reference/vmrs.md): VMRS merchant metadata and encryption keys.
- [Verify a request](/docs/reference/merchant-verification.md): Merchant signatures, trusted keys and payment binding.

## Base URLs and authentication

| API | Base URL | Authentication |
| --- | --- | --- |
| Visa CLI lookups: keys, agents and the key list | `https://auth.visacli.sh` | None. Public reads, from your server |
| Visa CLI signing routes | `https://auth.visacli.sh` | A Visa CLI agent, OAuth or app token. They serve Visa CLI's own agents |
| VARS and VMRS, sandbox | `https://sandbox.api.visa.com` | Your Visa Developer project's credentials. See [Authentication](/docs/reference/authentication.md) |
| The Visa Agent Directory, production | `https://agenticdirectory.visa.com` | None for reading a key by UUID |
| The Visa Agent Directory, sandbox | `https://sbx.agenticdirectory.visa.com` | None 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](/docs/reference/keys.md#a-complete-lookup).

```sh
jkt='nEArpjG3kYMcxbdzInyGlBEYQUw7RfAfe3Tw1fZvAA0'

curl -i \
  "https://auth.visacli.sh/v1/tap/registry/keys/$jkt"
```

```js
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())
```

```python
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))
```

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

```json title="Response 404, as production returns it today"
{
  "code": "not_found",
  "detail": "tap_registry_entry",
  "retryable": false,
  "retry_after_seconds": null
}
```

## Find an endpoint

| Method | Path | Operation | Family |
| --- | --- | --- | --- |
| `POST` | `/vars/v1/agents` | [Register Agent](/docs/reference/vars/register-agent.md) | VARS agents |
| `GET` | `/vars/v1/agents/{agentId}` | [Get Agent](/docs/reference/vars/get-agent.md) | VARS agents |
| `PUT` | `/vars/v1/agents/{agentId}` | [Update Agent](/docs/reference/vars/update-agent.md) | VARS agents |
| `GET` | `/vars/v1/agents/{agentId}/keys` | [List Keys](/docs/reference/vars/list-keys.md) | VARS agents |
| `POST` | `/vars/v1/agents/{agentId}/keys` | [Add Key](/docs/reference/vars/add-key.md) | VARS agents |
| `GET` | `/vars/v1/agents/{agentId}/keys/{keyId}` | [Get Key](/docs/reference/vars/get-key.md) | VARS agents |
| `PUT` | `/vars/v1/agents/{agentId}/keys/{keyId}` | [Update Key](/docs/reference/vars/update-key.md) | VARS agents |
| `DELETE` | `/vars/v1/agents/{agentId}/keys/{keyId}` | [Deactivate Key](/docs/reference/vars/deactivate-key.md) | VARS agents |
| `POST` | `/vars/v1/agents/{agentId}/keys/{keyId}/activate` | [Activate Key](/docs/reference/vars/activate-key.md) | VARS agents |
| `GET` | `/vars/v1/agents` | [Get agents by TRID](/docs/reference/vars.md#routes-without-a-public-contract) | VARS agents |
| `POST` | `/vars/v1/agents/batch` | [Agents bulk onboarding](/docs/reference/vars.md#routes-without-a-public-contract) | VARS agents |
| `GET` | `/vars/v1/agents/{agentId}/keys/search` | [Search keys — supplemental](/docs/reference/vars/search-keys.md) | VARS agents |
| `POST` | `/vmrs/v1/merchants` | [Create Merchant](/docs/reference/vmrs/create-merchant.md) | VMRS merchants |
| `GET` | `/vmrs/v1/merchants/{merchantId}` | [Get Merchant](/docs/reference/vmrs/get-merchant.md) | VMRS merchants |
| `PUT` | `/vmrs/v1/merchants/{merchantId}` | [Update Merchant](/docs/reference/vmrs/update-merchant.md) | VMRS merchants |
| `GET` | `/vmrs/v1/merchants/{merchantId}/keys` | [List Merchant Keys](/docs/reference/vmrs/list-merchant-keys.md) | VMRS merchants |
| `POST` | `/vmrs/v1/merchants/{merchantId}/keys` | [Create Merchant Key](/docs/reference/vmrs/create-merchant-key.md) | VMRS merchants |
| `GET` | `/vmrs/v1/merchants/{merchantId}/keys/{keyId}` | [Get Merchant Key](/docs/reference/vmrs/get-merchant-key.md) | VMRS merchants |
| `PUT` | `/vmrs/v1/merchants/{merchantId}/keys/{keyId}` | [Update Merchant Key](/docs/reference/vmrs/update-merchant-key.md) | VMRS merchants |
| `POST` | `/vmrs/v1/merchants/{merchantId}/keys/{keyId}/activate` | [Activate Merchant Key](/docs/reference/vmrs/activate-merchant-key.md) | VMRS merchants |
| `DELETE` | `/vmrs/v1/merchants/{merchantId}/keys/{keyId}` | [Delete Merchant Key](/docs/reference/vmrs/delete-merchant-key.md) | VMRS merchants |
| `GET` | `/keys` | [Public key retrieval (abstract specification)](/docs/reference/keys/public-key-retrieval.md) | Protocol lookup |
| `GET` | `/v1/trustedAgentProtocol` | [TAP catalog entry](/docs/reference/keys/tap-catalog-entry.md) | Protocol lookup |
| `GET` | `/v1/tap/registry/keys/{jkt}` | [Public signing-key lookup](/docs/reference/visa-cli/public-signing-key-lookup.md) | Visa CLI routes |
| `GET` | `/v1/tap/registry/agents/{tapAgentId}` | [Public agent lookup](/docs/reference/visa-cli/public-agent-lookup.md) | Visa CLI routes |
| `GET` | `/.well-known/http-message-signatures-directory` | [Web Bot Auth key list](/docs/reference/visa-cli/web-bot-auth-public-key-directory.md) | Visa CLI routes |
| `GET` | `/.well-known/agent-jwks.json` | [Empty agent key set](/docs/reference/visa-cli/agent-artifact-jwks.md) | Visa CLI routes |
| `POST` | `/agent/v1/keys/lease` | [Lease a signing session](/docs/reference/visa-cli/lease-installation-tap-authority.md) | Visa CLI routes |
| `POST` | `/agent/v1/keys/tap-sign` | [Sign a request from an app on your computer](/docs/reference/visa-cli/sign-a-laptop-merchant-request.md) | Visa CLI routes |
| `POST` | `/agent/v1/http-attestations` | [Sign a request from a hosted agent](/docs/reference/visa-cli/attest-a-hosted-agent-http-request.md) | Visa CLI routes |

## 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](/visa-public-openapi.json) 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:

| Source | What it covers |
| --- | --- |
| [TAP merchant specifications](https://developer.visa.com/docs/trusted-agent-protocol/trusted-agent-protocol-specifications) | The TAP merchant specification. It links the product terms, the payment verification diagram and RFC 9421 |
| [TAP getting started](https://developer.visa.com/docs/trusted-agent-protocol) | Links to Visa's sample code on GitHub |
| [TAP API reference, endpoint catalog](https://developer.visa.com/api-reference/trusted-agent-protocol) | Lists 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 Markdown](https://developer.visa.com/api-reference/trusted-agent-protocol.md) | The same 9 public VMRS operations, with request and response fields and HTTP statuses, as in the embedded OpenAPI 3.1.0 snapshot |
| [TAP product terms](https://developer.visa.com/docs/trusted-agent-protocol/product-terms) | The terms that accompany use of the specification |
| [Example agent verification for payments](https://developer.visa.com/images2/products/trusted-agent-protocol/example_agent_verification_payments.png) | The sequence diagram linked from the specification |

The Visa Developer Platform's general guides:

| Source | What it covers |
| --- | --- |
| [X-Pay Token authentication](https://developer.visa.com/docs/authentication-methods/x-pay-token) | Raw 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 authentication](https://developer.visa.com/docs/authentication-methods/two-way-ssl) | Client certificate plus HTTP Basic authentication. Keep this transport separate from TAP request signatures |
| [Authentication overview](https://developer.visa.com/api-reference/authentication-methods) | Product and project configuration selects authentication |
| [Quick start](https://developer.visa.com/docs/quick-start) | Account, project, selected APIs and environment-specific credentials |
| [Encryption overview](https://developer.visa.com/docs/encryption-methods) | Read it alongside the VMRS encryption-key fields |
| [Message-Level Encryption](https://developer.visa.com/docs/message-level-encryption) | A related platform encryption guide. Its MLE keyId is a separate integration concept |
| [Request and response codes](https://developer.visa.com/api-reference/request-response-codes) | General platform conventions. Endpoint-specific statuses on these pages come from the relevant operation contract |
| [Error codes](https://developer.visa.com/api-reference/error-codes) | Platform error guidance, not a complete endpoint-specific response schema |
| [Environment switching and testing](https://developer.visa.com/resources/environment-switching-and-testing) | Sandbox, Certification and Production use separate settings and credentials |
| [Going live](https://developer.visa.com/resources/going-live) | Commercial onboarding and next-environment access are distinct from creating a VARS or VMRS record |
| [Working with Visa APIs](https://developer.visa.com/resources/working-with-visa-apis) | Supporting context on request flow and environments |
| [Release notes](https://developer.visa.com/docs/release-notes) | We found no additional TAP, VARS or VMRS endpoint contracts here |
| [Certificate signing request guide](https://developer.visa.com/resources/certificate-signing-request) | Certificate setup, linked from the mTLS and encryption guides |
| [Trusted certifying authorities](https://developer.visa.com/resources/trusted-certifying-authorities) | Certificate authorities, linked from the mTLS guide |
| [Outbound callback configuration](https://developer.visa.com/docs/encryption-methods/outbound-configuration) | A related authentication and encryption guide. We found no TAP-specific callback endpoint contract here |

The standard behind the signatures:

| Source | What it covers |
| --- | --- |
| [HTTP Message Signatures, RFC 9421](https://datatracker.ietf.org/doc/html/rfc9421#section-2.3) | Signature-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.

| Source | What it covers |
| --- | --- |
| [Root README](https://github.com/visa/trusted-agent-protocol/blob/16d59bdf3f8a542bc538d0962edbb80ea30a02af/README.md#L1) | The sample as a whole |
| [Agent Registry README](https://github.com/visa/trusted-agent-protocol/blob/16d59bdf3f8a542bc538d0962edbb80ea30a02af/agent-registry/README.md#L1) | The sample's Agent Registry component |
| [Merchant Backend README](https://github.com/visa/trusted-agent-protocol/blob/16d59bdf3f8a542bc538d0962edbb80ea30a02af/merchant-backend/README.md#L1) | The sample's merchant backend |
| [CDN Proxy README](https://github.com/visa/trusted-agent-protocol/blob/16d59bdf3f8a542bc538d0962edbb80ea30a02af/cdn-proxy/README.md#L1) | The sample's CDN proxy |
| [Merchant Frontend README](https://github.com/visa/trusted-agent-protocol/blob/16d59bdf3f8a542bc538d0962edbb80ea30a02af/merchant-frontend/README.md#L1) | The sample's merchant frontend |
| [TAP Agent README](https://github.com/visa/trusted-agent-protocol/blob/16d59bdf3f8a542bc538d0962edbb80ea30a02af/tap-agent/README.md#L1) | The sample's TAP Agent |
| [Agent Registry routes](https://github.com/visa/trusted-agent-protocol/blob/16d59bdf3f8a542bc538d0962edbb80ea30a02af/agent-registry/main.py#L50) | Route definitions |
| [Agent Registry schemas](https://github.com/visa/trusted-agent-protocol/blob/16d59bdf3f8a542bc538d0962edbb80ea30a02af/agent-registry/schemas.py#L19) | Schemas |
| [Merchant router mounting](https://github.com/visa/trusted-agent-protocol/blob/16d59bdf3f8a542bc538d0962edbb80ea30a02af/merchant-backend/app/main.py#L75) | How merchant routes are mounted |
| [Product routes](https://github.com/visa/trusted-agent-protocol/blob/16d59bdf3f8a542bc538d0962edbb80ea30a02af/merchant-backend/app/routes/products.py#L25) | Route definitions |
| [Cart routes](https://github.com/visa/trusted-agent-protocol/blob/16d59bdf3f8a542bc538d0962edbb80ea30a02af/merchant-backend/app/routes/cart.py#L36) | Route definitions |
| [Order routes](https://github.com/visa/trusted-agent-protocol/blob/16d59bdf3f8a542bc538d0962edbb80ea30a02af/merchant-backend/app/routes/orders.py#L31) | Route definitions |
| [Signature-verification routes](https://github.com/visa/trusted-agent-protocol/blob/16d59bdf3f8a542bc538d0962edbb80ea30a02af/merchant-backend/app/routes/auth.py#L19) | Route definitions |
| [Merchant schemas](https://github.com/visa/trusted-agent-protocol/blob/16d59bdf3f8a542bc538d0962edbb80ea30a02af/merchant-backend/app/schemas.py#L16) | Schemas |
| [CDN proxy routes](https://github.com/visa/trusted-agent-protocol/blob/16d59bdf3f8a542bc538d0962edbb80ea30a02af/cdn-proxy/server.js#L608) | Route definitions |
| [Payment-flow diagram](https://github.com/visa/trusted-agent-protocol/blob/16d59bdf3f8a542bc538d0962edbb80ea30a02af/assets/trusted-agent-protocol-flow.png) | Image linked from the root README |
| [TAP Agent screenshot](https://github.com/visa/trusted-agent-protocol/blob/16d59bdf3f8a542bc538d0962edbb80ea30a02af/assets/tap-agent.png) | Image linked from the TAP Agent README |
| [Merchant screenshot](https://github.com/visa/trusted-agent-protocol/blob/16d59bdf3f8a542bc538d0962edbb80ea30a02af/assets/tap-merchant.png) | Image linked from the Merchant Frontend README |
