btcintel

An operator's drafts per source over a window (human curator or admin)

GET /v1/ops/operators/{id}/record
who may call it
An operator
a human: admin or curator
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

Per source: the drafts the operator proposed in the window, by their status now, and the disputes resolved in the window against claims published from them, upheld and partly upheld. Counts only: nothing is rated or ranked. It is the data behind a decision to widen an agent's autonomy for a source.

Parameters

NameWhereTypeRequiredWhat it does
idpathstringrequiredThe operator's id, as GET /v1/ops/operators lists it.
daysqueryintegeroptionalThe window, in days back from now: 28 by default, 1 to 90. Any other value is a 400.

What it answers

The record.

FieldTypeWhat it carries
operator_idstringThe operator's id, as asked.
daysintegerThe window, in days back from now.
sincestringThe start of the window: days days before the answer.
sourcesarrayOne entry for each source of the operator's drafts in the window, or of the disputes resolved in it against claims published from its drafts. Empty when there is none.
sources[].source_idstringAbsent for the drafts proposed without a source.
sources[].proposedintegerThe drafts the operator proposed in the window for that source.
sources[].approvedintegerThose approved by now.
sources[].rejectedintegerThose rejected by now.
sources[].pendingintegerThose still waiting for a decision.
sources[].withdrawnintegerThose withdrawn.
sources[].disputes_upheldintegerThe disputes resolved in the window as upheld, against claims published from the operator's drafts of that source.
sources[].disputes_partly_upheldintegerThose resolved in the window as partially upheld.
schema
  • operator_id string required — The operator's id, as asked.
  • days integer required — The window, in days back from now.
  • since string (date-time) required — The start of the window: days days before the answer.
  • sources array of object required — One entry for each source of the operator's drafts in the window, or of the disputes resolved in it against claims published from its drafts. Empty when there is none.
    • source_id string — Absent for the drafts proposed without a source.
    • proposed integer required — The drafts the operator proposed in the window for that source.
    • approved integer required — Those approved by now.
    • rejected integer required — Those rejected by now.
    • pending integer required — Those still waiting for a decision.
    • withdrawn integer required — Those withdrawn.
    • disputes_upheld integer required — The disputes resolved in the window as upheld, against claims published from the operator's drafts of that source.
    • disputes_partly_upheld integer required — Those resolved in the window as partially upheld.

Errors

StatusCodeWhen
400invalid_inputMalformed input (invalid_input).
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.
404not_foundnot_found: what the path names is not known: not in the index (for a transaction, not in the node's mempool either), or no such record. 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/operators/1/record?days=28' \
  -H "Authorization: Bearer $BTCINTEL_KEY" | jq '{operator_id, days, since}'

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.