One import run (ops)
GET /v1/ops/imports/{id}- who may call it
- An operator
- how fresh
- Never cached
- every answer carries the index's height and the node's
- MCP tool
- None
On this page
Parameters
| Name | Where | Type | Required | What it does |
|---|---|---|---|---|
id | path | integer | required | The run's id: the import_run_id an import answers. |
What it answers
The run; status is running until it finishes.
| Field | Type | What it carries |
|---|---|---|
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 or null | When it finished. Null while it runs. |
notes | string or 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. |
schema ImportRun
idinteger — The run's id.source_idstring — The source imported.fetch_idinteger — The fetch the run read.statusstring —runninguntil the run finishes, thenokorfailed. · one of "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.
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. |
| 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/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.