CLI docs

PartnersBasis Theory

Partners

Basis Theory

Get your company a TRID, register your agents, and turn a stored card into a single-purchase credential.

Markdownllms.txt
On this page

Gets your company a TRID and turns a stored card into a single-purchase credential for your agent.

Agent identityKey custodyCard credentialStablecoin wallet
Basis Theory docs

Where Basis Theory fits

Basis Theory is an enabler: a company that connects you to Visa's agent programs, so you don't have to sign your own agreement with each card network. During onboarding it registers a token requestor ID (TRID) for your company, the ID your company registers agents under, using details you provide. You get a Basis Theory account (a tenant) with Visa Intelligent Commerce, Visa's program for cards that agents pay with, turned on.

After that, a person enters their card in Basis Theory's hosted fields. The card number goes straight to Basis Theory's vault, and you get back a token. You create an allowance, which says how much the agent may spend and on what. The person approves it in their browser, and Basis Theory creates a credential that works for one purchase. That credential is the only thing your agent ever sees.

Basis Theory and Visa CLI

Visa CLI doesn't run on Basis Theory. It registers its own agents with Visa and runs its card step on VGS. Basis Theory is how your company does those same two jobs under its own name: your own TRID, your agents registered in the Visa Agent Directory, and the card step for your users. How Visa CLI is built shows where each job sits.

Choose Basis Theory when

  • You run a wallet or agent platform and want your users' agents verified under your own name, not Visa CLI's.
  • You want your own TRID without signing an agreement with each network.
  • Your agents pay merchants with cards and should never see a card number.
  • You want to build and rehearse the whole flow in a test tenant before onboarding.

Not the right fit when

  • You only verify signed requests. That needs no partner. See Verify a signed request.
  • Your agents run under Visa CLI. Visa CLI already registers them and runs the card step.

Set it up

  1. Start in a test tenant. You don't need onboarding to try the whole flow against Basis Theory's test values.
  2. Collect a card with Basis Theory Elements, then create a payment method with POST /agentic/payment-methods. Elements accepts every card brand by default, so set cardBrands: ['visa'] (v3) or cardTypes (v2). It's a browser filter, not a check: a token created through the API skips it.
  3. Create an allowance with POST /agentic/allowances, and have the person approve it with verifyAllowance() in their browser.
  4. When your agent buys something, mint a credential for that purchase.
  5. Register each agent with POST /agentic/agents and its public key. In a test tenant, the BT-Visa-Agent-Registry: sandbox header registers it in the Visa Agent Directory sandbox under the shared sandbox TRID, 40010092347; in production, Basis Theory registers it in the Visa Agent Directory under your TRID. Sign with the key's network_key_ids.visa as the keyid. Rehearse it in sandbox has the create, revoke and delete calls with their answers. Basis Theory's guide to registering agents has everything else, and it's a Notion page that needs a browser to read.
  6. When you're ready for production, tell Basis Theory and complete its onboarding with your company's details. Basis Theory enables your production tenant with your own TRID, and the same create-agent call, sent to https://api.basistheory.com without the sandbox header, registers each agent in the Visa Agent Directory (production) under that TRID. Registration in the Visa Agent Directory starts once Basis Theory switches it on, which waits on Visa confirming its production host. Basis Theory tells you when it's live; until then, an agent created in production has no Visa registration.

Full steps are in Basis Theory's agentic payments guide.

Live and coming

Live todayComing
Agentic payment methods, allowances and single-purchase credentials on Visa Intelligent Commerce, with a test tenant (guide)With Visa Intelligent Commerce V2, which Basis Theory expects in early December, Basis Theory signs credential requests as the agent named on them, with that agent's key (guide)
A TRID registered for your company during onboarding (guide)Your agents registered in the Visa Agent Directory, once Visa confirms its production host (guide)
Registering your agents' keys in the Visa Agent Directory sandbox from a test tenant, self-serve (guide)

Works with

  • Turnkey to keep each agent's signing key in an enclave.

Updated 18 Nov 2026