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:
adminocurator - 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
| Nombre | Dónde | Tipo | Obligatorio | Qué hace |
|---|---|---|---|---|
id | ruta | string | obligatorio | The operator's id, as GET /v1/ops/operators lists it. |
days | consulta | integer | opcional | The window, in days back from now: 28 by default, 1 to 90. Any other value is a 400. |
Qué responde
The record.
| Campo | Tipo | Qué lleva |
|---|---|---|
operator_id | string | The operator's id, as asked. |
days | integer | The window, in days back from now. |
since | string | The start of the window: days days before the answer. |
sources | array | 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. |
sources[].source_id | string | Absent for the drafts proposed without a source. |
sources[].proposed | integer | The drafts the operator proposed in the window for that source. |
sources[].approved | integer | Those approved by now. |
sources[].rejected | integer | Those rejected by now. |
sources[].pending | integer | Those still waiting for a decision. |
sources[].withdrawn | integer | Those withdrawn. |
sources[].disputes_upheld | integer | The disputes resolved in the window as upheld, against claims published from the operator's drafts of that source. |
sources[].disputes_partly_upheld | integer | Those resolved in the window as partially upheld. |
esquema
operator_idstring obligatorio — The operator's id, as asked.daysinteger obligatorio — The window, in days back from now.sincestring (date-time) obligatorio — The start of the window:daysdays before the answer.sourcesarray 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_idstring — Absent for the drafts proposed without a source.proposedinteger obligatorio — The drafts the operator proposed in the window for that source.approvedinteger obligatorio — Those approved by now.rejectedinteger obligatorio — Those rejected by now.pendinginteger obligatorio — Those still waiting for a decision.withdrawninteger obligatorio — Those withdrawn.disputes_upheldinteger obligatorio — The disputes resolved in the window as upheld, against claims published from the operator's drafts of that source.disputes_partly_upheldinteger obligatorio — Those resolved in the window as partially upheld.
Errores
| Estado | Código | Cuándo |
|---|---|---|
| 400 | invalid_input | Malformed input (invalid_input). |
| 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. |
| 404 | not_found | not_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.