One import run (ops)
GET /v1/ops/imports/{id}- quién puede llamarla
- Un operador
- 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
| Nombre | Dónde | Tipo | Obligatorio | Qué hace |
|---|---|---|---|---|
id | ruta | integer | obligatorio | The run's id: the import_run_id an import answers. |
Qué responde
The run; status is running until it finishes.
| Campo | Tipo | Qué lleva |
|---|---|---|
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. |
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 | When the run started. |
finished_at | string o null | When it finished. Null while it runs. |
notes | string o 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. |
esquema ImportRun
idinteger — The run's id.source_idstring — The source imported.fetch_idinteger — The fetch the run read.statusstring —runninguntil the run finishes, thenokorfailed. · uno de "running", "ok", "failed"insertedinteger — Claims created or re-versioned; 0 for a failed run.confirmedinteger — Claims the fetch restated unchanged; 0 for a failed run.expiredinteger — Claims, relations and signatures the source stopped stating; 0 for a failed run.started_atstring (date-time) — When the run started.finished_atstring | null (date-time) — When it finished. Null while it runs.notesstring | 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
| 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. |
| 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/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.