btcintel

The audit log (ops), paginated by id

GET /v1/ops/audit
who may call it
An operator
what it costs
1 request of the quota
tiers and keys
how fresh
Never cached
every answer carries the index's height and the node's
MCP tool
None
On this page

Parameters

NameWhereTypeRequiredWhat it does
sincequeryintegeroptionalReturn rows with id greater than this.
actorquerystringoptionalOnly the rows of this actor, as the log names it (e.g. operator:owner).
tablequerystringoptionalOnly the rows of this table (e.g. intel.drafts).
limitqueryintegeroptionalRows in id order after since: 100 by default, at most 1,000; a value outside 1 to 1,000 reads as 100.

What it answers

Audit rows.

FieldTypeWhat it carries
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 or nullThe id of the page's last row: pass it as since for the next page. Null when the page is empty.
schema
  • items array of AuditEntry — The audit rows after since, oldest first, at most limit, narrowed by actor and table.
    • id integer required — The row's id: the audit log pages by it.
    • at string (date-time) required — When it was written.
    • actor string required — Who acted, as <kind>:<id>: an operator, an account, an npub, a key or an importer.
    • action string required — What was done, in a word: approve, retract, key_issue, …
    • table string required — The table the action touched.
    • row_id string required — The id of the row it touched, as text.
    • details object required — 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.

Errors

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

Each comes in the one error envelope, and none is cached: an error carries Cache-Control: no-store.

Example

curl and jq, in any 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.