The transparency log records every issuance before the certificate is signed. Nothing leaves without
being in the log. This page finds a card inside that record: it does not issue, renew or suspend
anything.

## What the log holds

- One leaf per issuance: SHA-256 over `san_uri`, `spki_der` of `x5c[0]` and `serial`, with each field length in front as `uint32be`.
- A signed checkpoint with `tree_size`, `root_hash`, `timestamp`, `kid` and `firma`; the tree never shrinks.
- Immutable tiles and one inclusion proof per leaf.
- Nothing else: no leaf is removed and the log only grows.

Issuances for the `agentcard` and `delegator` profiles go to this log. `platform-agent` goes to its
platform's log, and `instance` does not go to the log in v1.

## The two search keys

| Key | What it is | Where it comes from |
| --- | --- | --- |
| `serial` | The serial of `x5c[0]` in the signed card | The certificate data |
| `hash` | The log leaf | SHA-256 of `san_uri`, `spki_der` and `serial` |

There is no third key. Searching by name, email, operator or any data about a person is not a valid
search: the portal answers only to `serial` and `hash`.

## Find a card

[[formulario-busqueda]]

The form sends the `serial` field. To search by hash, rename the field in the address: `/log?hash=…`.
Both forms reach the same answer.

You can also ask for it in JSON with the `Accept: application/json` header:

```bash
curl -H 'Accept: application/json' 'https://crdca.org/log?serial=0ae2e'
```

The `/log-busqueda` alias does the same and always answers JSON. The
`/log?serial=…&formato=json` variant exists for when you cannot send headers.

## What the answer contains

Each result carries the fields of the index row and, when the index has it, the card's position in the
status list: `seccion` and `posicion`. The JSON answer has three keys: `clave`, `valor` and `resultados`.

```json
{
  "clave": "serial",
  "valor": "0ae2e",
  "resultados": [
    {
      "serial": "0ae2e",
      "hash": "9f2c0a4b7e1d8c3a",
      "san_uri": "https://agent.example/.well-known/agent-card.json"
    }
  ]
}
```

The values are examples. A search with no results is not an error: it returns an empty list with 200.

## Search by index, not by traversal

The search is resolved by index. The portal does not walk the log or its leaves: it looks the key up in
the index published with each issuance and reads the matching row. The row holds the leaf, the serial and
the card URL, and points to the card's position in the status list, which is another index: the one for
class, platform and operator.

That has two practical consequences. First, the search is cheap even as the log grows. Second, the search
returns a position, not a proof. The inclusion proof is requested from the CDN.

The result is cached for 60 s, inside the 300 s cadence of the status list. A repeated search within the
same minute does not query the index again.

## If the card does not appear

Check the key first. The `serial` is hexadecimal, without `0x` and without separators. The `hash` is the
log leaf in lowercase hexadecimal, not the certificate fingerprint and not the `kid`.

Then check the moment. The search only knows what the issuer published in the index; a fresh issuance may
take a few seconds.

And if the index has no row, you can still test the leaf:

```bash
curl 'https://cdn.crdca.org/inclusion/{hash}'
```

A valid proof says the leaf is in the tree. A missing index row does not invalidate the card; it only
leaves the search without an answer.

## Search limit

The search has a limit of 10 requests per minute and per origin. When it is exhausted the answer is 429
with `Retry-After` in seconds. There are no accounts, cookies or sessions: nothing to reuse between
searches.

::: nota
Every page has a Markdown twin. This one is at [/en/log.md](/en/log.md).
:::
