btcintel

The audit log (ops), paginated by id

GET /v1/ops/audit
quién puede llamarla
Un operador
qué cuesta
1 petición de la cuota
niveles y claves
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

NombreDóndeTipoObligatorioQué hace
sinceconsultaintegeropcionalReturn rows with id greater than this.
actorconsultastringopcionalOnly the rows of this actor, as the log names it (e.g. operator:owner).
tableconsultastringopcionalOnly the rows of this table (e.g. intel.drafts).
limitconsultaintegeropcionalRows 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.

CampoTipoQué lleva
itemsarrayThe audit rows after since, oldest first, at most limit, narrowed by actor and table.
items[].idintegerThe row's id: the audit log pages by it.
items[].atstringWhen it was written.
items[].actorstringWho acted, as <kind>:<id>: an operator, an account, an npub, a key or an importer.
items[].actionstringWhat was done, in a word: approve, retract, key_issue, …
items[].tablestringThe table the action touched.
items[].row_idstringThe id of the row it touched, as text.
items[].detailsobjectWhat else the action recorded. {} when nothing.
next_cursorinteger o nullThe id of the page's last row: pass it as since for the next page. Null when the page is empty.
esquema
  • items array de AuditEntry — The audit rows after since, oldest first, at most limit, narrowed by actor and table.
    • id integer obligatorio — The row's id: the audit log pages by it.
    • at string (date-time) obligatorio — When it was written.
    • actor string obligatorio — Who acted, as <kind>:<id>: an operator, an account, an npub, a key or an importer.
    • action string obligatorio — What was done, in a word: approve, retract, key_issue, …
    • table string obligatorio — The table the action touched.
    • row_id string obligatorio — The id of the row it touched, as text.
    • details object obligatorio — What else the action recorded. {} when nothing.
  • next_cursor integer | null — The id of the page's last row: pass it as since for the next page. Null when the page is empty.

Errores

EstadoCódigoCuándo
401unauthorizedunauthorized: 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.
403forbiddenforbidden: 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" | jq

This 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.