The audit log (ops), paginated by id
GET /v1/ops/audit- quién puede llamarla
- Un operador
- cuán reciente
- Nunca en caché
- cada respuesta lleva la altura del índice y la del nodo
- Herramienta MCP
- Ninguna
En esta página
Parámetros
| Nombre | Dónde | Tipo | Obligatorio | Qué hace |
|---|---|---|---|---|
since | consulta | integer | opcional | Return rows with id greater than this. |
actor | consulta | string | opcional | Only the rows of this actor, as the log names it (e.g. operator:owner). |
table | consulta | string | opcional | Only the rows of this table (e.g. intel.drafts). |
limit | consulta | integer | opcional | Rows in id order after since: 100 by default, at most 1,000; a value outside 1 to 1,000 reads as 100. |
Qué responde
Audit rows.
| Campo | Tipo | Qué lleva |
|---|---|---|
items | array | The audit rows after since, oldest first, at most limit, narrowed by actor and table. |
items[].id | integer | The row's id: the audit log pages by it. |
items[].at | string | When it was written. |
items[].actor | string | Who acted, as <kind>:<id>: an operator, an account, an npub, a key or an importer. |
items[].action | string | What was done, in a word: approve, retract, key_issue, … |
items[].table | string | The table the action touched. |
items[].row_id | string | The id of the row it touched, as text. |
items[].details | object | What else the action recorded. {} when nothing. |
next_cursor | integer o null | The id of the page's last row: pass it as since for the next page. Null when the page is empty. |
esquema
itemsarray de AuditEntry — The audit rows aftersince, oldest first, at mostlimit, narrowed byactorandtable.idinteger obligatorio — The row's id: the audit log pages by it.atstring (date-time) obligatorio — When it was written.actorstring obligatorio — Who acted, as<kind>:<id>: an operator, an account, an npub, a key or an importer.actionstring obligatorio — What was done, in a word: approve, retract, key_issue, …tablestring obligatorio — The table the action touched.row_idstring obligatorio — The id of the row it touched, as text.detailsobject obligatorio — What else the action recorded.{}when nothing.
next_cursorinteger | null — The id of the page's last row: pass it assincefor the next page. Null when the page is empty.
Errores
| Estado | Código | Cuándo |
|---|---|---|
| 401 | unauthorized | unauthorized: the request does not say who makes it, or what it offers does not verify: no key or session where one is needed, or a password, a code, a passkey or a signed event that does not check. The message says what is missing. |
| 403 | forbidden | forbidden: the caller is known but may not do this: a key without the scope or the tier the action needs, a session without an npub, a second factor or a recent sign-in, an operator without the role or switched off, or a source that does not allow it. The message says which. |
Cada uno llega en el sobre de error único, y ninguno se guarda en caché: un error lleva Cache-Control: no-store.
Ejemplo
curl y jq, en cualquier shell.
curl -s 'https://api.btcintel.io/v1/ops/audit?limit=100' \
-H "Authorization: Bearer $BTCINTEL_KEY" | jqThis route needs an operator credential. Set BTCINTEL_KEY to the ops bearer or a btci_ key with the ops:agent scope first: the snippet reads it from there and holds no key.