btcintel

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

GET /v1/ops/operators/{id}/record
quién puede llamarla
Un operador
una persona: admin o curator
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

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.

Parámetros

NombreDóndeTipoObligatorioQué hace
idrutastringobligatorioThe operator's id, as GET /v1/ops/operators lists it.
daysconsultaintegeropcionalThe window, in days back from now: 28 by default, 1 to 90. Any other value is a 400.

Qué responde

The record.

CampoTipoQué lleva
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.
esquema
  • operator_id string obligatorio — The operator's id, as asked.
  • days integer obligatorio — The window, in days back from now.
  • since string (date-time) obligatorio — The start of the window: days days before the answer.
  • sources array de object obligatorio — 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 obligatorio — The drafts the operator proposed in the window for that source.
    • approved integer obligatorio — Those approved by now.
    • rejected integer obligatorio — Those rejected by now.
    • pending integer obligatorio — Those still waiting for a decision.
    • withdrawn integer obligatorio — Those withdrawn.
    • disputes_upheld integer obligatorio — The disputes resolved in the window as upheld, against claims published from the operator's drafts of that source.
    • disputes_partly_upheld integer obligatorio — Those resolved in the window as partially upheld.

Errores

EstadoCódigoCuándo
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.

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