btcintel

One import run (ops)

GET /v1/ops/imports/{id}
who may call it
An operator
what it costs
1 request of the quota
tiers and keys
how fresh
Never cached
every answer carries the index's height and the node's
MCP tool
None
On this page

Parameters

NameWhereTypeRequiredWhat it does
idpathintegerrequiredThe run's id: the import_run_id an import answers.

What it answers

The run; status is running until it finishes.

FieldTypeWhat it carries
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 or nullWhen it finished. Null while it runs.
notesstring or 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.
schema 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. · one of "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.

Errors

StatusCodeWhen
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.

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.