This page is for a marketplace, wallet or protocol that wants to run its own card step through an enabler, rather than admit agents through Visa CLI. An enabler is a company that handles card details and tokens for you, such as VGS or Basis Theory. We use VGS, and each integrator chooses its own. This page shows how the jobs split and what we've learned.
If you only want to check agents that connected through Visa CLI, you don't need an enabler at all, and you can stop at Verify a signed request.
How an enabler fits
Each integrator gets its own TRID through its enabler. The enabler creates it from the company's details: its legal name, address, website, a contact and its EIN. The enabler registers all of that integrator's agents in the Visa Agent Directory under that one TRID. The integrator never calls Visa's agent registry API and never needs Visa credentials. In Visa's Intelligent Commerce flow, the same TRID goes in the agent registry's tokenRequestorId and in the Intelligent Commerce agentId.
These facts hold for every agent an enabler registers:
- One TRID covers many agents, and each agent needs a unique domain host.
- Your own TRID comes only from onboarding, so don't make one up. To test before onboarding, register agents from your enabler's test tenant: Basis Theory's test tenants all share one sandbox TRID, as Rehearse it in sandbox shows.
- Registration takes the agent's public key and the TRID, and no card.
- Agents are active on creation. Nobody needs to activate them, and there's nothing to wait for.
- the Visa Agent Directory returns a level in
agent.agentType:knownortrusted.trustedmeans the agent is registered with Visa as a token requestor itself, which Visa grants after approving and certifying the solution, either directly or through an enabler.knownmeans the agent's TRID belongs to its wallet or enabler, so a new agent you register under your TRID isknown. Every Visa CLI agent isknown, and a Verified with Visa agent, whose owner passed the card step, still readsknown. The level doesn't affect signature verification. Visa intends it for CDN and merchant access policies, so check that the key resolves rather than gating on the level. Levels in the Visa Agent Directory has more. - The key ID is a UUID from VARS. It's the
keyidin every signature and the lookup key, and never the agent ID or the TRID. - Unknown, revoked, paused and expired keys all answer
404, and Visa sends no notice when a key is revoked. - A signature proves that a registered key signed this exact request, recently, once. It doesn't prove that a payment settled, who the owner is, or who owns the wallet.
- A lookup never carries the card. With Basis Theory, the allowance ties a card to an agent through Basis Theory's agent ID, so that link lives with your enabler. Keep your own rule as well: register an agent's key only after its owner has passed the card step.
Enroll agents through an enabler
Enrolling is the enabler's job, and the enabler documents it: setting up your account, getting your TRID, the card step and registering your agents. It doesn't involve Visa CLI. If your enabler is Basis Theory, start with Basis Theory's documentation. Questions about the enabler's card model, card-removal and other events, webhooks, pricing and PCI scope are answered there, not here.
Once your agents are registered, verifiers read them in the Visa Agent Directory, https://agenticdirectory.visa.com/.well-known/jwks/keys/{keyid}, or the Visa Agent Directory sandbox at https://sbx.agenticdirectory.visa.com, with no credentials. The verifier on Verify a signed request carries over: give it directoryOrigin in place of registryOrigin, as Verifier code shows. Visa CLI's own agents stay in Visa CLI's registry. You don't need the production VARS address or its request contracts, because your enabler calls VARS for you.
What you'd choose
| Job | Your choice | What Visa CLI does, for comparison |
|---|---|---|
| Card verification | Which enabler, which cards and countries, and which ceremony | VGS, US-issued Visa cards, the bank's one-time code |
| Admission | When the card step gates an agent, and whether it's checked again later | Before an agent connects, once |
| Identity | Who holds keys. Your enabler registers them in the Visa Agent Directory under your TRID | An enclave holds them, and Visa CLI publishes them |
| Signing | How your agents sign, and with which profile | Through Visa CLI only |
| Checking | Which lists you accept and what a pass means to you | Visa CLI's registry, by key |
Visa CLI is US-only today, and that's our limit and not TAP's. Other integrators can go global, and other wallets can.
Visa describes two ways to connect in its Visa Intelligent Commerce documentation: an Agent Provider that connects directly, and an Agent Enabler that connects and proxies for providers downstream. Read Visa's page for which fits you, since we don't speak for it here.
A card step you can copy
This is the pattern Visa CLI follows, written so you can run it with your own enabler. The names of the calls differ between enablers, so use VGS's documentation or Basis Theory's for those.
Here's what to do at each point, and the decisions that come with it.
Collect the card in the enabler's hosted fields
Card numbers go straight from the owner's browser to the enabler, and your servers only ever see a token.
Limit the field to Visa cards. Enablers' card fields usually accept every brand unless you say otherwise. With Basis Theory Elements, set
cardBrands: ['visa'](v3) orcardTypes(v2), and the field refuses other brands, saved cards included. It runs only in the browser, and a token created through the API never meets it, so it saves the owner a late refusal but isn't a check on its own.Enroll the card with Visa Intelligent Commerce
Do this through your enabler. It runs under your own TRID, which you get through your enabler. Check the issuer's eligibility here if you limit which cards you accept. Ours is limited to US-issued Visa cards, which is our choice and not a rule of the pattern.
Ask the bank for a one-time code and confirm it
Use a fresh code for each attempt. This sequence, with the bank's one-time code, is the only card step we accept.
Record the result on the owner's account
Record it on the account and not on an agent, so one passed step can cover every agent the owner connects. Store the token reference and the enabler's card fingerprint, and no card data.
Refuse a card another account already holds
Match on the fingerprint. This works within one vault. It doesn't reach across another provider's vault.
Gate at the moment an agent connects
Require an eligible owner before you approve an agent, and only then give it a key and have your enabler register it. A lookup won't carry the card, so this gate is what your promise rests on.
Resume when the outcome is unclear
Don't retry. If the enabler's answer gets lost, resume the same attempt, because a second attempt can leave you unsure which one counted. With Basis Theory, each agent has its own domain, so you can find out what happened: list your agents with
GET /agentic/agentsand look for that domain. If it's there, keep that agent's IDs. A second create with the same domain answers409 AGENT_DOMAIN_CONFLICTrather than making a duplicate.Decide what happens later
We check once and leave a listing in place if a card is removed. You may want something stricter, and if so, say what you do.
Whatever you choose, write down what a pass means so that the people checking your agents can read it, in the same plain way How the pieces fit does for ours.
Rehearse it in sandbox
Before your enabler onboards you, you can run the whole flow in sandbox: the card step, registering your agent's key in the Visa Agent Directory sandbox, and signing and verifying requests. With Basis Theory, all of it runs in a test tenant, which is free and self-serve and needs no contract, no TRID of your own and no Visa credentials. The calls you need to register, sign, revoke and clean up are on this page. Basis Theory's guide to registering agents has everything else. It's a Notion page, so it needs a browser to read, and a plain fetch comes back empty.
What the test tenant gives you: a free signup, the shared sandbox TRID 40010092347, test cards, and real registration in the Visa Agent Directory sandbox at sbx.agenticdirectory.visa.com.
Every Basis Theory test tenant registers agents under one shared sandbox TRID, 40010092347, so in sandbox a lookup can't tell your agents from another tenant's.
-
The card. In your enabler's test tenant, the owner enters a test card and passes the enabler's verification. With Basis Theory, that's an allowance and
verifyAllowance(), and theagentic.allowance.verification.completedwebhook tells your service it passed. -
Your rule. Your service marks the owner eligible, storing the enabler's token reference and fingerprint and no card data.
-
The key. When the owner approves an agent, generate a key pair for it. Basis Theory takes P-256 (
ecdsa-p256) or Ed25519 (ed25519). The private key stays with you, in your secret store and never in your repository. Sign with a key you hold shows how to sign with it. -
Registration. Create the agent in your test tenant, from your backend, with the
BT-Visa-Agent-Registry: sandboxheader. The header registers it with Visa in sandbox, so its key resolves inhttps://sbx.agenticdirectory.visa.com:POST https://api.test.basistheory.com/agentic/agents BT-API-KEY: <your private application's API key> BT-Visa-Agent-Registry: sandbox Content-Type: application/json {"name": "Acme Shopping Agent", "domain": "https://agent.acme.example.com", "contact_email": "agent-ops@acme.example.com", "keys": [{"public_key": "-----BEGIN PUBLIC KEY-----\n…\n-----END PUBLIC KEY-----", "algorithm": "ecdsa-p256", "expires_at": "2027-05-01T00:00:00Z"}]}public_keyis the key's SPKI PEM, with its line breaks written as\n, andexpires_atis a future date. To make a key and print both the SPKI PEM you register and the private JWK you sign with:import { generateKeyPairSync } from 'node:crypto' const { publicKey, privateKey } = generateKeyPairSync('ec', { namedCurve: 'P-256' }) console.log(JSON.stringify(publicKey.export({ type: 'spki', format: 'pem' }))) console.log(JSON.stringify(privateKey.export({ format: 'jwk' })))The first line is the
public_keyvalue, already JSON-escaped. Keep the second, the private JWK, where only your signer can read it. For Ed25519, usegenerateKeyPairSync('ed25519'). For an Ed25519 key, send its SPKI PEM the same way with"algorithm": "ed25519".descriptionis optional.Which source to trust: Basis Theory's public API reference lists
/agentic/agentson a page marked deprecated, and that page doesn't show thedomain,contact_emailandkeysfields. The calls on this page follow Basis Theory's registration guide, and we ran each of them live against a Basis Theory test tenant on 17 November 2026, so use these.Use a new host for each agent, under a real domain you control. The domain must be unique across the Visa Agent Directory, and Basis Theory answers
409 AGENT_DOMAIN_CONFLICTfor any host under.example, even one nobody has used, so in tests use a random subdomain underexample.comor your own domain. On a409 AGENT_DOMAIN_CONFLICT, pick another host and try again.agent.acme.example.comabove stands for that new host.Send a
User-Agentheader that names your app. Basis Theory's edge refuses some clients' default one, Python'surllibamong them, witherror code: 1010.The answer is
201, trimmed here:{ "id": "agt_…", "name": "Acme Shopping Agent", "status": "active", "keys": [{ "id": "key_…", "algorithm": "ecdsa-p256", "status": "active", "network_key_ids": { "visa": "11111111-2222-4333-8444-555555555555" } }], "registrations": [{ "network": "visa", "status": "active", "trust_level": "known" }] }Keep three IDs from it.
keys[i].network_key_ids.visais yourkeyid: sign with it and look it up with it. The agent'sid(agt_…) and the key'sid(key_…) are Basis Theory's own IDs. Never sign with them, but store them beside thekeyid, because revoking a key or deleting the agent needs them. Without the header, registration is mocked, key IDs start withmock-, and they never resolve in the Visa Agent Directory. Because test tenants share one TRID, a contact email another tenant already used answers409 AGENT_CONTACT_EMAIL_CONFLICT, so use a plus-address. -
Sign and verify. Sign requests with the
keyid, and check the key resolves athttps://sbx.agenticdirectory.visa.com/.well-known/jwks/keys/{keyid}. It answers200as soon as the agent is created, withagent.tokenRequestorId40010092347, and lists a P-256 key'salgorithmasecdsa-p256-sha256. Verify with the verifier from Verifier code, reading the Visa Agent Directory sandbox. Label a pass as a sandbox test agent, not a verified agent. -
Revoke. To take one key out of the Visa Agent Directory, delete it from the agent at Basis Theory, from your backend:
DELETE https://api.test.basistheory.com/agentic/agents/{agent_id}/keys/{key_id} BT-API-KEY: <your private application's API key> BT-Visa-Agent-Registry: sandbox{agent_id}is the agent'sid(agt_…) and{key_id}is the key'sid(key_…), both Basis Theory's IDs from the201answer, never the Visakeyid. It answers200with the agent, where that key now reads"status": "inactive", and the agent and its other keys stay active. Then look thekeyidup until the Visa Agent Directory sandbox answers404. In our runs it did at once. Visa sends no notice, so look a key up again before anything consequential, such as a payout.Revoking a key leaves the agent in your tenant, so when a test is done, delete the agent too. Delete the whole agent with
DELETE https://api.test.basistheory.com/agentic/agents/{agent_id}and the same headers. It answers204and deactivates all the agent's keys, so each of itskeyids answers404in the Visa Agent Directory sandbox.
In your own tests, a check that expects "verified" from a key nobody registered is a wrong test. For unit tests and CI, run the verifier against a stand-in key lookup at its own localhost origin, behind a test-only switch that your production config refuses to start with, and label a pass as a test key. Make a test pass recognisable in your app: store where the key was looked up, the stand-in's origin, with every pass, and store the agent as a test key, never as a verified agent, so nothing a test wrote can unlock a verified-only feature. A stand-in for Visa CLI's registry can mark its listings simulated: true: the example verifier then refuses them unless you create it with acceptSimulated: true, a pass carries simulated: true, and the marketplace example's payout check reads them as not_listed. The Visa Agent Directory has no such flag, so for a stand-in of it, the origin you stored is the label. Never let a stand-in answer for sbx.agenticdirectory.visa.com or agenticdirectory.visa.com, and never accept a header that names a key without a signature. To test revocation, have the stand-in answer 404 with {"message":"The requested key was not found"}, which is what the Visa Agent Directory returns for a revoked key, or revoke a sandbox key for real with your enabler's call (at Basis Theory, step 6 above). A key you revoked seconds ago still passes a verifier that cached its answer, for up to 60 seconds, so create the verifier with cacheSeconds: 0 in a revocation test. Keep every private key in a secret store or a setting, never in your repository, test keys included, and replace any key that has been committed. For the real thing, use the sandbox above.
Sandbox keys never resolve in the Visa Agent Directory (production), so a production verifier that reads only agenticdirectory.visa.com refuses them. Anyone can register a sandbox key, so a sandbox key proves the request was signed and nothing about a person.
What carries over from Visa CLI
Signatures are ordinary HTTP Message Signatures (RFC 9421), so the verification recipe on Verify a signed request is reusable. The profile, the judged distinction and the replay rules are all worth copying. A generic TAP library may not accept our profile, and whoever verifies your agents will have to know which profile you sign with, so publish yours by name.
What doesn't carry over
The admission sentence on How the pieces fit is true of agents registered through Visa CLI, not of every agent in the Visa Agent Directory. If you run your own card step, the equivalent promise is yours to make, about your own admission.
Visa CLI's registry lists agents admitted through Visa CLI's own card step. A card step run elsewhere doesn't lead to a key in this registry today, and partner-run signing isn't available through our routes. Agents your enabler registers are listed in the Visa Agent Directory instead.
Visa CLI's check that a card isn't already held matches within one VGS vault and our own records. It doesn't reach across another provider's vault.
Questions integrators ask
Questions about the enabler's own side, such as its card model, whose account the card sits in, per-agent limits, the hosted form or API, card-removal events and webhooks, test cards, pricing and PCI scope, are answered in your enabler's documentation. For Basis Theory, that's Basis Theory's documentation. The rest are answered here.
| Question | Answer |
|---|---|
| Who holds the TRID? | The integrator. It's your own, and one TRID covers all your agents. Your enabler creates it from your company's details: legal name, address, website, a contact and your EIN. The enabler registers all your agents under it. |
| Who calls the Visa Agent Directory's registration service, and who keeps the credentials? | Your enabler. With Basis Theory, you call its create-agent endpoint with each agent's name, domain, contact email and public key, and it registers the agent under your TRID and returns the keyid. You never call Visa's agent registry API and never need Visa credentials, and reading the Visa Agent Directory needs none either. |
| What's the production registration address, and where are the request contracts? | You don't need them. Your enabler calls VARS for you. Verifiers read https://agenticdirectory.visa.com/.well-known/jwks/keys/{keyid}. |
Does a second agent on the same TRID get a 409? | Not for sharing the TRID. One TRID covers many agents, each with a unique domain host and a contact email that's unique on the TRID. A repeated domain or contact email does answer 409. |
| Can an agent be registered without a card? | Yes. Registration takes a public key and the TRID, and no card. Register an agent's key only after its owner has passed your card step. |
| Who activates an agent, and how long does it take? | Nobody needs to. Agents created through the API are active immediately. |
What do known and trusted mean? Does activation make an agent trusted? | The lookup shows the level in agent.agentType. An agent under its wallet's or enabler's TRID is known, and activation doesn't change that. trusted means the agent is registered with Visa as a token requestor itself: it moves there through one manual step at Visa, after Visa approves and certifies the solution, directly or through an enabler. The level doesn't affect signature verification, so don't gate tasks on it: the check is that the key resolves, which means a registered, active agent. Visa CLI's "Verified with Visa" means the owner passed the card step, and that agent reads known too. |
| Who assigns the key ID? | VARS. It's a UUID, used as the keyid in every signature and as the lookup key, and never the agent ID or the TRID. |
| How do expiry, rotation and revocation show up? | Visa CLI lists each key for 365 days. The owner's yearly renewal, or a replaced device, lists a new key under the same agent, and the old key stops being listed. Unknown, revoked, paused and expired keys all answer 404, and Visa sends no notice when a key is revoked, so look keys up again before anything consequential. Send an expiry with every key you register. |
| Can enrolling be done from a CLI alone? | No. The card step and the owner's verification happen in a browser. Visa CLI hands off to the browser and picks up again after. |
| What happens if the card is removed or expires? | Visa CLI checks the card once, when an agent connects, so the agent's listing stays. Your enabler's documentation covers its own events. |
| What does "verified" mean for an agent that never pays? | The same thing. The card step is about the owner, and Visa CLI's agents don't pay with the card. They pay in OUSD on Tempo. |
| Which list should my verifier read? | For agents registered through an enabler, the Visa Agent Directory: GET https://agenticdirectory.visa.com/.well-known/jwks/keys/{keyid}, or https://sbx.agenticdirectory.visa.com in sandbox, unauthenticated. A key that resolves answers 200, and an unknown, revoked or expired key answers 404. For Visa CLI's agents, Visa CLI's registry. Where to look up a key shows both answers. |
| What do signatures look like? | A signature is made for 60 seconds. Signature-Agent is a plain quoted URL, such as "https://sbx.agenticdirectory.visa.com". Unpaid and worker requests carry tag="agent-browser-auth". Paid requests carry tag="agent-payer-auth" and also cover authorization. For an Ed25519 key, the algorithm may be written Ed25519 or ed25519, in the Visa Agent Directory or in a signature, so accept both. A P-256 key signs with alg="ecdsa-p256-sha256". |
| Is RSA or ECDSA allowed? | Visa CLI's agents sign with Ed25519. Basis Theory registers P-256 (ecdsa-p256) or Ed25519 (ed25519) keys. P-256 signatures use alg="ecdsa-p256-sha256", and the Visa Agent Directory lists the key's algorithm as ecdsa-p256-sha256. The example verifier takes Ed25519 and P-256 when it reads the Visa Agent Directory. |
| Can I test against the Visa Agent Directory sandbox? | Yes, with no credentials. Reading needs none, and agents you create in a Basis Theory test tenant with the BT-Visa-Agent-Registry: sandbox header resolve there, as Rehearse it in sandbox shows. |
| Must each agent have a unique domain and contact email? | Yes. The domain must be unique across the Visa Agent Directory, and the contact email unique on your TRID. Basis Theory answers 409 AGENT_DOMAIN_CONFLICT or 409 AGENT_CONTACT_EMAIL_CONFLICT, and a plus-address counts as a different email. Use a new host for each agent under a real domain you control, never under .example, which always conflicts, and on a domain conflict pick another host. |
| What does a signature prove? | That a registered key signed this exact request, recently, once. Not that a payment settled, who the owner is, or who owns the wallet. |
To talk through a design, ask your Visa CLI partner contact, as Before you start explains.