---
title: "Public agent lookup"
description: "Look up a published, active agent by its ID. Base URL: https://auth.visacli.sh"
url: https://app.visacli.sh/docs/reference/visa-cli/public-agent-lookup
updated: 2026-11-18
---

# Public agent lookup

> Look up a published, active agent by its ID. Base URL: https://auth.visacli.sh

Canonical: https://app.visacli.sh/docs/reference/visa-cli/public-agent-lookup. Updated: 2026-11-18. Full index: /llms.txt.

```text
GET /v1/tap/registry/agents/{tapAgentId}
```

Related guide: [Verify a signed request](/docs/verify-a-signed-request.md).

A public lookup that needs no login. It returns one currently published, active agent and its key document.

| Parameter | Location | Required | Type / meaning |
| --- | --- | --- | --- |
| `tapAgentId` | path | Yes | `string`<br>The agent's registry ID. A local owner or agent UUID only works if it is that registry ID. |

| HTTP | Result | Caching |
| --- | --- | --- |
| `200` | Current public agent + key document. | `Cache-Control: public, max-age=60` |
| `400` | Malformed lookup: Problem code `invalid_request`. | `no-store` |
| `404` | No published active listing: Problem code `not_found`. | `no-store` |
| `503` | Registry failure: Problem code `unavailable`; Retry-After when available. | `no-store` |

```json title="Response shape — illustrative, not a live capture"
{
  "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"
    }
  ]
}
```

When verified metadata from the Visa Agent Directory exists, the response also has `domain` and `keys[].directory` containing `agentDomain` and optional `directoryOrigin`. `expirationDate` is the expiry the Visa Agent Directory confirmed for the key, or `null` when none was recorded. Activation timestamps can also be null.

The response omits owner contact, human claims and payment authorization. Treat absent payer bindings as an empty array and a missing countersigned registry entry as null.

This example targets production with an ID it doesn't list, so it returns the documented not-listed `404`. [A real lookup](/docs/keys-and-directories.md#a-real-lookup) shows the output.

```sh
tapAgentId='example-agent-id'

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

```js
const tapAgentId = 'example-agent-id'
const url = `https://auth.visacli.sh/v1/tap/registry/agents/${encodeURIComponent(tapAgentId)}`
const response = await fetch(url)
console.log(response.status, await response.json())
```

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

tapAgentId = 'example-agent-id'
url = 'https://auth.visacli.sh/v1/tap/registry/agents/' + urllib.parse.quote(tapAgentId, 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))
```
