This guide takes a wallet from signing up with Basis Theory to having a registered agent whose keys resolve in Visa's agent directory. Everything up to production runs in a test tenant and needs no contract, no token requestor ID (TRID) and no Visa credentials.

How it works

Environments

Test Production
API https://api.test.basistheory.com https://api.basistheory.com
Signup Self-serve Onboarding with Basis Theory
TRID Shared sandbox TRID Your own
Agent registration Mocked by default, or Visa's VARS sandbox with the BT-Visa-Agent-Registry: sandbox header Visa's VARS, once Basis Theory switches it on (see Going to production)
Key lookup https://sbx.agenticdirectory.visa.com/.well-known/jwks/keys/{keyid} Visa's production agent directory

Step 1: Create a Basis Theory account and a test tenant

  1. Sign up at portal.basistheory.com with a work email.
  2. Create a tenant and choose Test.

Test tenants are free and need no approval.

Step 2: Create a private application

In the Portal, open Applications, create a Private application, and give it these permissions:

Copy its API key. It goes in the BT-API-KEY header of every call below, from your backend only.

Step 3: Generate the agent's key pair

The agent signs with a private key that only you hold. Generate a P-256 key pair: