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:
adminorcurator - 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
| Name | Where | Type | Required | What it does |
|---|---|---|---|---|
id | path | string | required | The operator's id, as GET /v1/ops/operators lists it. |
days | query | integer | optional | The window, in days back from now: 28 by default, 1 to 90. Any other value is a 400. |
What it answers
The record.
| Field | Type | What it carries |
|---|---|---|
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. |
schema
operator_idstring required — The operator's id, as asked.daysinteger required — The window, in days back from now.sincestring (date-time) required — The start of the window:daysdays before the answer.sourcesarray 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_idstring — Absent for the drafts proposed without a source.proposedinteger required — The drafts the operator proposed in the window for that source.approvedinteger required — Those approved by now.rejectedinteger required — Those rejected by now.pendinginteger required — Those still waiting for a decision.withdrawninteger required — Those withdrawn.disputes_upheldinteger required — The disputes resolved in the window as upheld, against claims published from the operator's drafts of that source.disputes_partly_upheldinteger required — Those resolved in the window as partially upheld.
Errors
| Status | Code | When |
|---|---|---|
| 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. |
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.