---
name: visa-cli-verify
description: How a service checks a signed request from a Visa CLI agent, so it knows it's dealing with an agent a person verified with a Visa card, and what each result means.
---

# Verifying a signed request from a Visa CLI agent

Visa CLI lets AI agents do real economic work you can trust. A person verifies their agent with a Visa card, and when a request from that agent passes this check, you know you're dealing with a verified person's agent.

Full docs: https://app.visacli.sh/docs/verify-a-signed-request. Index: /llms.txt.

## The decision

- The check reads the registry by key: GET https://auth.visacli.sh/v1/tap/registry/keys/{jkt}, where {jkt} is the signature's keyid: a thumbprint or the UUID the Visa Agent Directory gave the key. No account, API key or card is involved.
- A pass means the key is listed and active. The registry has no levels.
- Production lists Visa CLI's agents. Since 18 November 2026 new agents' keys are registered in the Visa Agent Directory, and agents connected earlier are still in the Visa Agent Directory sandbox. A key it doesn't list answers 404.

## Three results

| Result | Status | judged | Meaning |
| --- | --- | --- | --- |
| Accepted | 200 | | Listed, active, unchanged, fresh, used once |
| Refused | 403 | true | The code says why, and the message says what to fix |
| Couldn't check | 503 | false | tap_trust_unavailable or tap_trust_invalid. Nothing is known about the agent, so this isn't a refusal |

## Codes

tap_missing, tap_malformed, tap_expired, tap_replayed, tap_key_unknown, tap_key_inactive, tap_signature_invalid, tap_signature_agent_not_accepted, tap_simulated_not_accepted, tap_trust_unavailable, tap_trust_invalid.

## What breaks most integrations

- The digest covers raw bytes, so a parsed and re-serialised body fails.
- The signature base uses the pinned public origin, never Host or forwarding headers.
- The request target must start with a single /. One such as .attacker.example/tasks/42/claim or :8443/tasks/42/claim, pasted after the origin, would move the host the signature is checked against, so it's refused as tap_malformed.
- Authorization, Cookie, X-Payment and Payment-Signature are refused, so they come off before the check.
- A nonce store in one process only covers that process.
- A request sent twice is refused as tap_replayed. To retry, the agent signs the request again, which gives it a new nonce.
- A key cached under 60 seconds keeps passing during an outage.

## Testing

https://app.visacli.sh/docs/conformance has 94 published test cases: requests to accept, to refuse, and ones a verifier could not check.
