---
title: "Key lookup"
description: "Look up the key behind a signature: base URLs, authentication, and a complete request and response."
url: https://app.visacli.sh/docs/reference/keys
updated: 2026-11-18
---

# Key lookup

> Look up the key behind a signature: base URLs, authentication, and a complete request and response.

Canonical: https://app.visacli.sh/docs/reference/keys. Updated: 2026-11-18. Full index: /llms.txt.

A verifier looks up the key named in a signature's `keyid`, and decides from the answer. This section covers TAP as its specification publishes it: an abstract key-store operation with no published host, and a catalog entry that Visa's OpenAPI lists under its sandbox server but with no parameters, responses or security contract. The lookup you can call today is Visa CLI's, below, and its full reference is [Look up a key](/docs/reference/visa-cli/public-signing-key-lookup.md).

## Base URLs

| Service | Base URL | What it holds |
| --- | --- | --- |
| Visa CLI registry, production | `https://auth.visacli.sh` | Visa CLI's listed agents and their keys. Each listing names where its key is registered: the Visa Agent Directory (production) for new agents, the Visa Agent Directory sandbox for agents connected before 18 November. Its key list is `https://auth.visacli.sh/.well-known/http-message-signatures-directory`, live with the listed agents' keys |
| The Visa Agent Directory, sandbox | `https://sbx.agenticdirectory.visa.com` | Visa's own record of a key, by UUID, at `/.well-known/jwks/keys/{keyId}` |
| The Visa Agent Directory, production | `https://agenticdirectory.visa.com` | The same, for production. A new Visa CLI agent's key resolves here |

## Authentication

None. Key and agent lookups are public reads with no API key, token or account. They send no CORS headers, so call them from your server. Registering agents and merchants is different, and [Authentication](/docs/reference/authentication.md) covers it.

## A complete lookup

This is Visa CLI's lookup, not part of the TAP specification. The example key is a well-formed thumbprint that isn't listed anywhere.

`GET https://auth.visacli.sh/v1/tap/registry/keys/{jkt}` takes the signature's `keyid`, either a 43-character thumbprint or the UUID the Visa Agent Directory gave the key.

| Status | Means | What to do |
| --- | --- | --- |
| `200` | Listed and active. Cached for 60 seconds | Verify the signature with the key whose `id` or `jkt` matches |
| `404` | Unknown, paused, revoked or still publishing. `no-store` | Refuse |
| `400` | Malformed `keyid`. `no-store` | Refuse a malformed `keyid` yourself, as `tap_malformed`, before you ask. The example verifier does, so a `400` that still comes back is unexpected, and it treats it as couldn't check |
| `503`, `429`, other | Couldn't check | Answer `503` with `Retry-After`, and don't record a failure |

In words: a `200` means listed and active. A `404` means refuse, because unknown, paused, revoked and still-publishing keys all look the same. A `503`, `429` or any other status means you couldn't check, so answer `503` with `Retry-After` and don't record a failure.

```sh
jkt='nEArpjG3kYMcxbdzInyGlBEYQUw7RfAfe3Tw1fZvAA0'

curl -i \
  "https://auth.visacli.sh/v1/tap/registry/keys/$jkt"
```

```js
const jkt = 'nEArpjG3kYMcxbdzInyGlBEYQUw7RfAfe3Tw1fZvAA0'
const url = `https://auth.visacli.sh/v1/tap/registry/keys/${encodeURIComponent(jkt)}`
const response = await fetch(url)
console.log(response.status, await response.json())
```

```python
import json
import urllib.error
import urllib.parse
import urllib.request

jkt = 'nEArpjG3kYMcxbdzInyGlBEYQUw7RfAfe3Tw1fZvAA0'
url = 'https://auth.visacli.sh/v1/tap/registry/keys/' + urllib.parse.quote(jkt, safe='')

try:
    with urllib.request.urlopen(url, timeout=5) as response:
        print(response.status, json.load(response))
except urllib.error.HTTPError as error:
    print(error.code, json.load(error))
```

The `200` response has every field a listing always carries, with example values. A key with metadata from the Visa Agent Directory also has `domain` at the top and `directory` on the key, as [Public signing key lookup](/docs/reference/visa-cli/public-signing-key-lookup.md) shows. The `404` is what production returned when we ran this, trimmed to the fields to branch on.

```json title="Response 200, example values"
{
  "id": "7f4c82a1-305e-4f9c-8d2a-1b3e5f7c502a",
  "name": "Example Commerce Agent",
  "isActive": true,
  "createdAt": "2026-11-05T00:00:00Z",
  "updatedAt": "2026-11-05T00:00:00Z",
  "keys": [
    {
      "id": "a1b2c384-56c7-48d9-be0f-1e2d3c4b5a6f",
      "agentId": "7f4c82a1-305e-4f9c-8d2a-1b3e5f7c502a",
      "keyName": "YOUR_PUBLIC_JWK_THUMBPRINT",
      "status": "active",
      "algorithm": "ed25519",
      "publicKey": "BASE64_ENCODED_SPKI_PEM_PUBLIC_KEY",
      "jkt": "YOUR_PUBLIC_JWK_THUMBPRINT",
      "expirationDate": "2027-11-05T00:00:00.000Z"
    }
  ]
}
```

```json title="Response 404, as production returns it today"
{
  "code": "not_found",
  "detail": "tap_registry_entry",
  "retryable": false,
  "retry_after_seconds": null
}
```

The full `404` body also has guidance fields worded for Visa CLI's own agent, which a verifier doesn't read. [A real lookup](/docs/keys-and-directories.md#a-real-lookup) shows a run with its headers. [Verify a signed request](/docs/verify-a-signed-request.md) turns the answer into a decision.

## TAP specification operations

| Method | Path | Operation |
| --- | --- | --- |
| `GET` | `/keys` | [Public key retrieval (abstract specification)](/docs/reference/keys/public-key-retrieval.md) |
| `GET` | `/v1/trustedAgentProtocol` | [TAP catalog entry](/docs/reference/keys/tap-catalog-entry.md) |
