This page follows one Visa CLI agent from its owner's card step to the end of its life, and shows what you'd see if you looked its key up at each point. If you check agents, the short version is that only one answer matters: a 200 means the key belongs to a listed, active agent, and everything else means don't accept it.
What happens at each step
Pass the card step
The owner enters a US-issued Visa card in hosted fields and confirms a one-time code from their bank. It happens once per account, and it's what makes the owner eligible to connect agents. An agent can't connect before it. See Your Visa card.
Approve the agent
The owner approves the agent in their browser. Visa CLI creates a signing key for it in a secure enclave, and the private key never leaves. See Agent identity.
Publish the key
Visa CLI registers the public key with the Visa Agent Directory and reads it back. The one thing the owner might need to do is add a contact email, because the Visa Agent Directory requires one. If publishing fails, Visa CLI keeps retrying. Until it finishes, the agent reads as still finishing setup and a lookup returns
404.Stay listed
The key now answers in the registry and in the Visa Agent Directory. Visa CLI compares the two once a day. If the entry has gone missing, the key stops being listed and a lookup answers
404until it's back.Renew each year
The owner renews the agent once a year, with one press. A renewal gives the agent a new key under the same agent ID, listed in the Visa Agent Directory for another 365 days, and the old key stops being listed. While the new key is publishing, a lookup can answer
404for a moment. Replacing a device works the same way.If the year ends without a renewal, two things end about a day apart:
- The key's entry in the Visa Agent Directory. It's listed for 365 days from when the key was set up, and nothing extends it without the owner. Once that date passes, a lookup still answers
200with anexpirationDatethat has passed, until Visa CLI's daily check finds the entry lapsed. From then on a lookup answers404. - The owner's approval. About a day later, the agent can't sign until the owner renews.
If the Visa Agent Directory simply doesn't answer for a while, nothing changes.
- The key's entry in the Visa Agent Directory. It's listed for 365 days from when the key was set up, and nothing extends it without the owner. Once that date passes, a lookup still answers
Pause, if needed
The owner can pause an agent and resume it later, with the same key. While it's paused, it can't sign and lookups return
404.Revoke
The owner ends the agent. Its key is revoked and its entry in the Visa Agent Directory withdrawn. There's no way back: connecting again makes a new agent with a new key, so if you've bound a key to an account, the owner has to bind the new one. The old binding stays until then, and moving it needs the member's fresh confirmation, as the re-bind rule there says.
What a lookup returns
These are answers from GET /v1/tap/registry/keys/{jkt}API. The 404 answer is the same for every state that shows it, on purpose, so a lookup can't be used to learn which agents exist or what happened to them.
- Connected, key still publishing
Lookup:
404Signing: No
What you do: Refuse. Ask again later if the agent says it's finishing setup
- Renewed, or a device replaced
Lookup:
200for the new key,404for the old oneSigning: Yes, with the new key
What you do: Check as usual. The agent ID stays the same, so a binding on it carries on
- The year has ended without a renewal
Lookup:
200with anexpirationDatethat has passed, then404within about a daySigning: No new signatures, about a day after the entry lapses
What you do: Refuse a key whose
expirationDatehas passed, as you would a404- The key's entry in the Visa Agent Directory has lapsed or gone missing
Lookup:
404Signing: Its signatures can't pass, since the key isn't listed
What you do: Refuse. It answers
200again once the entry is back, or with a new key once the owner renews- Revoked
Lookup:
404Signing: No
What you do: Refuse. Keep the binding: a
404looks the same as a pause, so don't drop it on a lookup alone. The member moves to a new agent through the re-bind rule, which needs their fresh confirmation- Card removed after connecting
Lookup:
200Signing: A lookup can't tell you
What you do: Check as usual. The card step isn't checked again, as What is TAP? says
- Malformed key ID
Lookup:
400Signing: n/a
What you do: Refuse it as
tap_malformedbefore you ask. A verifier that checks the format first, as the example does, should never see this, and it treats a400that still comes back as couldn't check- Registry outage or rate limit
Lookup:
503or429Signing: Unknown
What you do: Don't judge the agent. See Verify a signed request
In words: a lookup answers 200 while the agent is listed and active, and 404 in every state where you should refuse, from a key still publishing to a revoked agent. The one 200 to refuse is a key whose expirationDate has passed.
Caching means a change can take up to 60 seconds to reach you. A lookup's expirationDate is the date the key's entry in the Visa Agent Directory ends. Treat every 404 as a refusal, whatever the reason behind it.