btcintel

One import run (ops)

GET /v1/ops/imports/{id}
quién puede llamarla
Un operador
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

Parámetros

NombreDóndeTipoObligatorioQué hace
idrutaintegerobligatorioThe run's id: the import_run_id an import answers.

Qué responde

The run; status is running until it finishes.

CampoTipoQué lleva
idintegerThe run's id.
source_idstringThe source imported.
fetch_idintegerThe fetch the run read.
statusstringrunning until the run finishes, then ok or failed.
insertedintegerClaims created or re-versioned; 0 for a failed run.
confirmedintegerClaims the fetch restated unchanged; 0 for a failed run.
expiredintegerClaims, relations and signatures the source stopped stating; 0 for a failed run.
started_atstringWhen the run started.
finished_atstring o nullWhen it finished. Null while it runs.
notesstring o nullWhat the run noted: why it failed, or the records it rejected (by position and key, never by content; by position alone for a record that holds a private key) and the claims it skipped. Null when there was nothing to note.
esquema ImportRun
  • id integer — The run's id.
  • source_id string — The source imported.
  • fetch_id integer — The fetch the run read.
  • status string — running until the run finishes, then ok or failed. · uno de "running", "ok", "failed"
  • inserted integer — Claims created or re-versioned; 0 for a failed run.
  • confirmed integer — Claims the fetch restated unchanged; 0 for a failed run.
  • expired integer — Claims, relations and signatures the source stopped stating; 0 for a failed run.
  • started_at string (date-time) — When the run started.
  • finished_at string | null (date-time) — When it finished. Null while it runs.
  • notes string | null — What the run noted: why it failed, or the records it rejected (by position and key, never by content; by position alone for a record that holds a private key) and the claims it skipped. Null when there was nothing to note.

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.
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/imports/1 \
  -H "Authorization: Bearer $BTCINTEL_KEY" | jq '{id, source_id, fetch_id}'

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.