Visa CLI's TAP is in production. A newly connected agent's key is registered in the Visa Agent Directory, https://agenticdirectory.visa.com, and Visa CLI's registry at https://auth.visacli.sh lists it. Agents connected before 18 November are still in the Visa Agent Directory sandbox. Status says what's real.
Go-live checklist
If you only verify agents, you have no credentials to get, and this list is the whole job.
- Your registry origin is in config, and isn't derived from the request. The production registry is
https://auth.visacli.sh. - If you verify agents registered through an enabler, your verifier reads the Visa Agent Directory at
https://agenticdirectory.visa.com, set in config, and refuses to start in production with any other origin for the Visa Agent Directory. - Your accepted TRIDs list the integrators whose agents you take, plus your own for your own agent, and not the sandbox TRID
40010092347. -
node fixture.mjsfrom Verify a signed request passes against your copy of the verifier. - An outage answers
503withRetry-After, and you don't record it as a failure. You've seen it: with your test switch on and the registry, or the Visa Agent Directory, pointed at a loopback port nothing listens on, such ashttp://127.0.0.1:9, a signed request answers503withRetry-After,tap_trust_unavailableandjudged: false, never403. - You rate-limit callers before the check, since lookups share a limit.
- You allow for the revocation window. A paused or revoked agent can pass for up to 60 seconds on a cached key answer, so make a fresh lookup before a payout.
- You cap request bodies. The example verifier refuses a body over 1 MiB, so stop reading at that size and answer
413before you digest anything. - Your
Signature-Agentallowlist holds only the values you accept, and a stand-in's origin is never on it outside a test. A Visa CLI agent sends the origin of the Visa Agent Directory its key is listed in:"https://agenticdirectory.visa.com"for a key in the Visa Agent Directory (production), which is every newly connected agent, and"https://sbx.agenticdirectory.visa.com"for an agent connected before 18 November. - Your nonce store is shared by every instance. See Run the checks in this order.
- Your own public origin is pinned, and your proxy forwards every signed header and passes
Retry-Afterback. - You tell your users which environment a check ran against.
If your own agent signs
If your service holds a signing key for its own agent, such as a house agent on a marketplace, production goes through your enabler, not through Visa. Your enabler creates your TRID from your company's details and registers each agent's key in the Visa Agent Directory under it. With Basis Theory, that's the same create-agent call you used in its test tenant, sent to https://api.basistheory.com without the sandbox header, and the key's network_key_ids.visa is the keyid. Production registration waits on Visa confirming its production host, and Basis Theory tells you when it's live. You never call VARS and never need Visa credentials. Agents and keys don't carry over from sandbox, so generate a new key, register it through your enabler and sign with the keyid it returns. Point your verifier at https://agenticdirectory.visa.com and check tokenRequestorId after each pass against the TRIDs you accept: your own TRID for your own agent, plus the integrators whose agents you take. A list with only your own TRID refuses everyone else's agents, and the sandbox TRID, 40010092347, comes out of a production list. The signing and verifying code stays the same; what changes is which of the Visa Agent Directory hosts you read, the accepted TRIDs, the keyid, the private key and the Signature-Agent value. Switching over has the detail.
If you register directly with Visa instead of through an enabler
Most integrators don't. Do this only if Visa has onboarded you to VARS yourself.
Registry credentials and agent signatures have separate roles, and it's easy to mix them up. Authentication has the byte-for-byte detail.
| What | Credentials | Where they're used |
|---|---|---|
| VARS, with X-Pay-Token | A Visa Developer Platform API key and decrypted shared secret, with HMAC SHA-256 | ?apiKey=… and x-pay-token on the registry call |
| VARS, with two-way TLS | A client certificate and private key, plus HTTP Basic username and password | The TLS handshake, plus Authorization: Basic … |
| VMRS | Visa's public specification leaves this out, which is a gap in the documentation and not proof of anonymous access | Confirm with your Visa Developer Platform project |
| Agent to merchant | The agent's private signing key | Signature-Input and Signature |
| Visa to merchant, ID token | Visa's signing key, chosen by the JWT kid and trusted issuer metadata | The signed ID token inside consumer recognition data |
| Payment to merchant | The merchant's VMRS public encryption key | Protects an encrypted payment payload |
Setting up
- Create or select a Visa Developer Platform project with the API access you need.
- Get credentials for the environment you're using, and complete Visa's onboarding for the next one when you move.
- For X-Pay-Token, upload an RSA public key to receive an encrypted shared secret, then decrypt it with the matching private key and OAEP SHA-256. These setup keys are separate from an agent's signing key.
Environments
| Environment | VARS and VMRS base URL | Visa Agent Directory origin |
|---|---|---|
| Sandbox | https://sandbox.api.visa.com | https://sbx.agenticdirectory.visa.com |
| Production | Visa gives you the production host | https://agenticdirectory.visa.com |
Make the base URL an explicit setting, with no default, so that nothing quietly falls back to Visa's test environment. A key that exists in one environment doesn't exist in the other, so register again and read it back there.
Transport
- X-Pay-Token. Hash and send the same string, serialize once, and generate the timestamp after any queued delay. Whitespace, query order and encoding must match the bytes you send. The HTTP method isn't part of the formula.
- Two-way TLS. Use TLS 1.2 as a minimum, verify server certificates, and refuse redirects.
- Timeouts. Visa CLI bounds each VARS request to 5 seconds, and that's a sensible bound for yours. A timeout doesn't tell you what went through, so read back before you retry a create.
- Spelling. VARS takes
apiKey, though Visa's generic guide spells itapikey. AkeyIdheader alone doesn't supply the API key.
To talk through moving a live integration, ask your Visa CLI partner contact, as Before you start explains.