If you work through an enabler, such as Basis Theory, you don't need this page: your enabler registers your agents in the Visa Agent Directory, and you never call VARS or need Visa credentials. To test before your enabler onboards you, register agents from your enabler's test tenant, as Rehearse it in sandbox shows.
This page is for you if you hold your own agent's signing key and want to register it directly with the Visa Agent Registry Service (VARS). You don't need it for a Visa CLI agent: connecting through Visa CLI does all of this for you, and starts with the card step, which direct registration doesn't include. An agent registered this way isn't in Visa CLI's registry, so nothing here lets anyone say a card was verified.
Prepare a stable identity
Create the agent, optionally with its key
Confirm the agent is active
Add, activate and read back the key
Treat only confirmed state as live
Sign your requests
Every call authenticates as described on Authentication, and field-level detail is on each linked page.
Prepare a stable identity
Decide these before you make any call, because they have to stay the same if you retry:
- A unique
domainhost for each agent, and a routablecontactEmailthat's unique on your TRID. A second agent with the same contact email is refused with409, which Basis Theory reports asAGENT_CONTACT_EMAIL_CONFLICT, and a plus-address, such asagent-team+one@example.com, counts as a different email. One TRID covers many agents, so the sametokenRequestorIdon several agents isn't a duplicate. - The
tokenRequestorIdfor your Visa integration. Visa CLI sends a label of its own for each agent as this value, not the agent's ID. For your integration, use the TRID your Visa integration is given. - The agent's public signing key, with
algorithm: "ed25519", as the base64 of its full SPKI PEM. Request a 365-dayexpirationDate.
- A unique
Create the agent
Send Register Agent,
POST /vars/v1/agentsAPI, with those values and optionally the key. For many agents at once, there's Agents bulk onboarding.Save the returned
idstraight away. If you lose the result of a create, don't send it again. Look the identity up first with Get agents by TRID, since another create can collide or leave a duplicate.Confirm the agent is active
Agents created through the API are active by default, so there's no activation step to wait for. Read Get Agent to confirm
isActive: true. To change its details, use Update Agent.Add, activate and read back the key
- Read List Keys, all pages, and compare the complete public key. Search keys is also available, but it comes from earlier sandbox evidence rather than Visa's catalog.
- If your key is missing, add it with Add Key.
- If the key reads back inactive, activate it with Activate Key. The agent itself is active on creation; whether a new key still needs this call is being confirmed with Visa, so read it back either way.
- If the expiry is too near, extend it with Update Key.
- Read it back with Get Key. On a VARS key record, the key's
statuswins, and the key's olderisActiveonly applies whenstatusis absent. The agent record has anisActiveof its own, which is about the agent, not the key.
Treat only confirmed state as live
Sign with a key, or tell anyone it's listed, only after you've read it back as active. Renew within 30 days of its expiry. When you retire one, send Deactivate Key and read again to confirm it's no longer active; VARS treats
DELETEas deactivation.Sign your requests
Sign to the rules in Verify requests as a merchant, which describes what a merchant checks under Visa's published TAP. Visa CLI's signing routes don't sign for keys you hold.
If you work through an enabler, you don't register agents yourself: the enabler registers them in the Visa Agent Directory under your TRID. See Build with an enabler.