The audit log (ops), paginated by id
GET /v1/ops/audit- who may call it
- An operator
- how fresh
- Never cached
- every answer carries the index's height and the node's
- MCP tool
- None
On this page
Parameters
| Name | Where | Type | Required | What it does |
|---|---|---|---|---|
since | query | integer | optional | Return rows with id greater than this. |
actor | query | string | optional | Only the rows of this actor, as the log names it (e.g. operator:owner). |
table | query | string | optional | Only the rows of this table (e.g. intel.drafts). |
limit | query | integer | optional | Rows 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.
| Field | Type | What it carries |
|---|---|---|
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 or null | The id of the page's last row: pass it as since for the next page. Null when the page is empty. |
schema
itemsarray of AuditEntry — The audit rows aftersince, oldest first, at mostlimit, narrowed byactorandtable.idinteger required — The row's id: the audit log pages by it.atstring (date-time) required — When it was written.actorstring required — Who acted, as<kind>:<id>: an operator, an account, an npub, a key or an importer.actionstring required — What was done, in a word: approve, retract, key_issue, …tablestring required — The table the action touched.row_idstring required — The id of the row it touched, as text.detailsobject required — 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.
Errors
| Status | Code | When |
|---|---|---|
| 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. |
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" | 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.