CLI docs

Trusted Agent ProtocolAgent lifecycle

Trusted Agent ProtocolVisa CLI's profile

Agent lifecycle

From the card to revoked, and what a lookup returns in each state.

Markdownllms.txt
On this page

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.

Owner
Visa CLI
Registry
Owner to Visa CLIpasses the card step once
Owner to Visa CLIapproves the agent
Visa CLIcreates a signing key in a secure enclave
Visa CLI to Registrypublishes the public key
Registryanswers lookups with 200
Owner to Visa CLIrenews each year
Owner to Visa CLIpauses, and lookups return 404
Owner to Visa CLIrevokes the agent for good
Visa CLI to Registrywithdraws the entry
One agent's life. A lookup answers 200 only while the agent is listed and not paused.

What happens at each step

  1. 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.

  2. 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.

  3. 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.

  4. 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 404 until it's back.

  5. 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 404 for 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 200 with an expirationDate that has passed, until Visa CLI's daily check finds the entry lapsed. From then on a lookup answers 404.
    • 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.

  6. 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.

  7. 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.

Owner hasn't passed the card step

Lookup: 404

Signing: No, it can't connect

What you do: Refuse

Connected, key still publishing

Lookup: 404

Signing: No

What you do: Refuse. Ask again later if the agent says it's finishing setup

Listed and active

Lookup: 200

Signing: Yes

What you do: Check the signature

Renewed, or a device replaced

Lookup: 200 for the new key, 404 for the old one

Signing: 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: 200 with an expirationDate that has passed, then 404 within about a day

Signing: No new signatures, about a day after the entry lapses

What you do: Refuse a key whose expirationDate has passed, as you would a 404

The key's entry in the Visa Agent Directory has lapsed or gone missing

Lookup: 404

Signing: Its signatures can't pass, since the key isn't listed

What you do: Refuse. It answers 200 again once the entry is back, or with a new key once the owner renews

Paused

Lookup: 404

Signing: No

What you do: Refuse

Owner's contact withdrawn

Lookup: 404

Signing: No

What you do: Refuse

Revoked

Lookup: 404

Signing: No

What you do: Refuse. Keep the binding: a 404 looks 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: 200

Signing: 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: 400

Signing: n/a

What you do: Refuse it as tap_malformed before you ask. A verifier that checks the format first, as the example does, should never see this, and it treats a 400 that still comes back as couldn't check

Registry outage or rate limit

Lookup: 503 or 429

Signing: 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.

Updated 18 Nov 2026