One rule: a signature either matches a key you can look up, or you refuse the request.
The problem
More and more requests come from AI agents rather than people. When one reaches your server, you can't tell which agent sent it, or whether anything in it changed on the way. A name in a header proves nothing, because anyone can type one. And when an agent claims paid work, you'd also like to know that a real person stands behind it before reputation or money gets attached.
What TAP is
The Trusted Agent Protocol (TAP) is an open standard. An agent signs its HTTP requests with a private key, and its public key sits in the Visa Agent Directory. Anyone who receives a request can fetch that public key and check which key signed the request and that the request hasn't changed.
- The ownerPasses the card step with a US Visa card.Agent connects
- The agentGets its key and signs each request.Signed request
- Your serverChecks the signature and what was signed.Key lookup
- The registryAnswers with the public key, or a 404.
Try it
This checks a recorded test signature in your browser, with no account, in under a minute. Send it as signed, then break it and see which check refuses it.
This step was not reached.
const input = /^(\w+)=\(([^)]*)\)(.*)$/.exec(
request.headers['signature-input'] ?? '',
)
const signed = /^\w+=:([A-Za-z0-9+/]+={0,2}):$/.exec(
request.headers.signature ?? '',
)
if (!input || !signed) return refuse('tap_missing')
Getting ready…
This is a simulation that runs in your browser, on a recorded test signature. To get the same result on your machine, see Run it on your machine.
In short: the agent sends you a signed request, your server fetches the agent's public key from the registry, and the signature either checks out or it doesn't. The signatures are ordinary HTTP Message Signatures (RFC 9421).
The TAP specifications are on Visa Developer. The rest of this site is about how Visa CLI uses it, and Visa CLI's profile of TAP sets the two side by side.
You don't need to register anything to verify a Visa CLI agent. To register directly with Visa instead, start at Register an agent.
What Visa CLI adds
The TAP merchant specification is about an agent, a consumer and a card payment. Visa CLI starts at the card. An owner passes a card step, with a US Visa card from their bank and a one-time code from that bank. Their agent then connects and gets a signing key, it signs its requests, and anyone can check them.
A check tells you the agent was verified with a US Visa card, so a person is behind it, without telling you who, and reputation builds from there.
A lookup's response has no card data, by design: not the last four digits, not the issuing bank and not the card network. The card is checked earlier, when an agent is admitted. You know a card was verified because Visa CLI's registry only admits an agent after its owner passes the card step. Your Visa card has the rule on cards and agents.
Visa CLI's agents send no Consumer Recognition Object and no Payment Container, the objects the TAP merchant specification describes for consumer and payment data. That follows from what a check means: it says a card-verified person is behind the agent without saying who. Merchants following the TAP merchant specification see those objects only from agents whose integrator sends them. Verify requests as a merchant has the detail.
Some limits come with that:
- The owner passed the step once, at connection, and a listing isn't removed if the card is later removed.
- It's true of agents registered through Visa CLI, not of every agent in the Visa Agent Directory.
- It isn't a KYC, KYB or sanctions check. A verified agent doesn't mean its owner passed KYC or a sanctions screen: Visa CLI checks a card and doesn't screen the person for you, so don't rely on it for compliance.
- Visa CLI takes US-issued cards today. That's our limit and not TAP's. Other integrators can go global, and other wallets can.
- New agents' keys are listed in the Visa Agent Directory (production); agents connected before 18 November are still in sandbox. Status says what's real and what's test.
What you can do with it
- Restrict paid tasks to verified agents. A marketplace accepts a claim on a paid task only when the request's signature checks out against the registry. See Add verified agents to a marketplace.
- Verify any one request. Any service that takes HTTPS requests can go from a
Signatureheader to a decision. See Verify a signed request. - Ask an agent to prove itself on demand. A wallet or protocol gives an agent a nonce of its own, a random value used once, and asks it to sign a request carrying it.
- Make your own agent verifiable. Connect it through Visa CLI, and it can sign the requests it sends. See the Quickstart and Sign requests as an agent.
- Run your own card step. See Build with an enabler.
A check doesn't say whether the agent's work is any good.
What a pass proves, and what it doesn't
Each row names the test vectors that back it, so you can run the claim.
| A pass tells you | A pass doesn't tell you | Tested by |
|---|---|---|
| A holder of the listed key signed the covered parts of this request | That the request is allowed, or that the agent behaves well | accepted: key named by thumbprint, refused: signature bytes changed, refused: another key claims this keyid |
| The method, host, path, query and body haven't changed since signing | That what the body claims is true | refused: body changed, refused: path changed, refused: query changed, refused: signed for another site, refused: a header the signature does not cover |
| It was signed within the last 60 seconds, and this verifier hasn't accepted it before | That no other verifier has seen it. Your nonce store only covers you | refused: expired, refused: created in the future, refused: lifetime over 60 seconds, refused: replayed |
| The agent was listed and active when you last looked it up | That it still is. A cached answer can be up to 60 seconds old, so look it up again before you pay | refused: key not listed, refused: a listing that says the agent is paused |
| The agent was verified with a US Visa card, so a person is behind it | Who that person is. A lookup carries no card data | No vector. Visa CLI refuses to approve an agent until the account has an accepted card, and that can't be tested from outside |
In words: a pass tells you a listed key signed this exact request within the last 60 seconds, that you haven't accepted it before, and that the agent was verified with a US Visa card. It doesn't tell you who the person is, who owns the wallet, that a payment settled, or that the request is allowed.
When the registry can't answer, you've learned nothing about the agent, so that's "couldn't check" and never a refusal: could not check: registry down, saying when to ask again.