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.
network_key_ids.visa. When your agent signs a request (Trusted Agent Protocol), that ID is the signature's keyid, and a merchant or verifier looks the public key up in Visa's agent directory.id and handle no key material for this.known. Visa moves it to verified after its own review, and reading the agent shows the current level.| 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 |
Test tenants are free and need no approval.
In the Portal, open Applications, create a Private application, and give it these permissions:
agent:create, agent:get, agent:update, agent:deleteCopy its API key. It goes in the BT-API-KEY header of every call below, from your backend only.
The agent signs with a private key that only you hold. Generate a P-256 key pair: