btcintel

Publish one incident dossier through a dossier source (ops)

POST /v1/sources/{id}/dossiers
quién puede llamarla
Un operador
An agent imports only a source flagged agent_may_publish.
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
import_dossier
en el servidor MCP
En esta página

One dossier, pushed as a bundle of one through the source's campaign-dossier parser: its campaign is written, bound or joined, its entities created or attached, its members written in the states the guards decide, and the diff touches that dossier's campaign alone. A dossier is sent whole: a member it no longer lists is delisted with a date; retired: true withdraws them all. The caller is an operator: the ops bearer, or a btci_ key with ops:agent on a source that carries agent_may_publish; the import is audited under the operator and counts one action of its budget. note is kept on the fetch: the validation the CEO made before publishing. Run check_dossier first; the same body, the same parser, nothing written.

Parámetros

NombreDóndeTipoObligatorioQué hace
idrutastringobligatorioA dossier source: btcintel-dossiers.
dossiercuerpoobjectobligatorioOne incident, schema version 1: the campaign, the entities it needs and one member per Bitcoin mainnet subject, each citing the public pages that name it. Other chains go in refs; a victim carries no abuse word; a person is never an entity; an actor is named only with an authority's page.
notecuerpostringopcionalKept on the fetch: the validation the CEO made before publishing. Ignored by the check.

El cuerpo es application/json.

esquema DossierPush
  • dossier Dossier obligatorio — One incident, schema version 1: the campaign, the entities it needs and one member per Bitcoin mainnet subject, each citing the public pages that name it. Other chains go in refs; a victim carries no abuse word; a person is never an entity; an actor is named only with an authority's page.
    • version integer obligatorio — The dossier's schema version: 1, the only one the parser reads. · uno de 1
    • key string obligatorio — The incident's slug; one dossier per incident, and the key never changes.
    • retired boolean — Withdraws every member the dossier ever named, with a date; a retired dossier lists no member.
    • campaign object obligatorio — The incident: its kind, title, summary, day and abuse word, the entities it names, and its context links.
      • kind string obligatorio — An event: concept (event:hack, event:theft, event:scam_campaign, event:ransomware_incident, event:seizure).
      • title string obligatorio — The campaign's title. Required and never blank.
      • summary string obligatorio — What the cited pages state, nothing more: no actor, no figure a page does not give.
      • occurred_at string (date) obligatorio — The day the incident happened, YYYY-MM-DD.
      • occurred_precision string — How fine occurred_at is known: day (when left out), month or year. · uno de "day", "month", "year"
      • abuse string obligatorio — The campaign's abuse word (abuse:theft, abuse:scam, …); a victim never carries it.
      • joins string — An existing campaign for the same incident to join instead of writing one.
      • entities array de object — The entities the campaign names, each with its role in it. An actor needs an authority_data page and is never declared in entities.
        • id string obligatorio — The entity's id: one the dossier declares in entities, or one btcintel already holds.
        • role string obligatorio — The entity's part in the incident. · uno de "victim", "actor", "authority"
        • evidence array de object — The pages that name the entity in that role.
      • refs array de object — Context links: the victim's statement, the write-ups, another chain's tracker. Never a member.
        • title string obligatorio — The link's title. Required and never blank.
        • url string obligatorio — The link, an http(s) address.
    • entities array de object — The entities the dossier declares. Each is written, or goes to the entity that answers to its name; never a person, a threat actor or a malware family.
      • id string obligatorio — The entity's id. Required.
      • name string obligatorio — The entity's name. Required and never blank.
      • kind string obligatorio — An entity: concept; never a person, a threat actor or a malware family.
      • description string — What the entity is.
      • aliases array de string — Other names the entity goes by.
      • identifiers array de object — The entity's ids in other registries.
        • scheme string obligatorio — The registry the id belongs to. Required.
        • value string obligatorio — The id in that registry. Required.
        • url string — The entity's entry in that registry.
    • members array de object — One member for each subject, each citing the pages that name it. At least one, unless the dossier is retired; a retired dossier lists none.
      • subject object obligatorio — The member's subject, each at most once in the dossier.
        • kind string obligatorio — The subject's kind. A sweep is a transaction; a member of any other role is an address or an outpoint. · uno de "address", "tx", "outpoint"
        • key string obligatorio — The subject's key. Required.
      • role string obligatorio — The member's part in the incident: a victim, a sweep, a vault or a cash-out. · uno de "victim", "sweep", "vault", "cash_out"
      • chain_fact string obligatorio — Checked against the index when the member is written. · uno de "funded", "spent", "confirmed"
      • first_reported_at string (date) — The day the subject was first reported, YYYY-MM-DD. Without it, the earliest page_date of its evidence.
      • derived_from object — The sweep of this dossier the address is a direct output of; such a vault needs no page of its own and inherits the sweep's class and corroboration.
        • kind string obligatorio — Always tx. · uno de "tx"
        • key string obligatorio — The txid of a sweep this dossier lists.
      • evidence array de object — The pages that name the subject: at least one url entry, unless the member is derived from a sweep.
        • kind string obligatorio — What the entry is: a page (url), a transaction (txid) or a Nostr event (nostr_event). · uno de "url", "txid", "nostr_event"
        • value string obligatorio — The page's http(s) address, the transaction's txid in 64 lowercase hex, or the event's id.
        • author string — An organisation, or the handle as the page shows it.
        • page_date string (date) — The page's date, YYYY-MM-DD. Required on a url entry.
        • quote string — Verbatim. · como mucho 300 caracteres
        • class string — What the page earns; the first url entry sets the member's confidence class. · uno de "authority_data", "service_data", "trusted_provider", "web_crawl"
        • note string — A note on the entry.
  • note string — Kept on the fetch: the validation the CEO made before publishing. Ignored by the check. · como mucho 2000 caracteres

Qué responde

200 · application/json

Import finished.

CampoTipoQué lleva
fetch_idintegerThe fetch the import recorded for the file: the one its claims cite.
import_run_idintegerThe import's run: the id GET /v1/ops/imports/{id} takes.
insertedintegerClaims created or re-versioned.
confirmedintegerClaims the fetch restated unchanged.
expiredintegerClaims, relations and signatures the source stopped saying.
skippedintegerClaims left out and noted on the run: an invalid subject, a word outside the vocabulary, a campaign member without a campaign role (victim, sweep, vault, cash_out), a victim with an abuse word.
rejectedintegerRecords left out whole because they are not text PostgreSQL stores (a NUL byte, an escaped surrogate outside a pair, bytes that are not UTF-8, or in XML a character reference to a surrogate), with, for a dossier source, every record of a dossier that holds one, and an ATT&CK relationship to an object rejected so, or because they hold a Bitcoin private key (a WIF key or an extended private key); named on the run by position and key, by position alone for a private key; included in record_count. Nothing of them is written and nothing they may have stated is withdrawn: their claims stay as they were, and while a fetch rejects a record no relation, signature, alias or identifier of the source is withdrawn.
record_countintegerRecords the parser emitted from the file, distinct by record key, the rejected ones included: rows as parsed, not claims (see Source.last_fetch.record_count).
provisionalintegerCampaign members that landed provisional: a source's first import into the campaign, a batch over the batch size, or a sweep, vault or cash-out named by one source. Included in inserted.
promotedintegerMembers held back only for want of a second source that another source now names: current now.
esquema ImportResult
  • fetch_id integer — The fetch the import recorded for the file: the one its claims cite.
  • import_run_id integer — The import's run: the id GET /v1/ops/imports/{id} takes.
  • inserted integer — Claims created or re-versioned.
  • confirmed integer — Claims the fetch restated unchanged.
  • expired integer — Claims, relations and signatures the source stopped saying.
  • skipped integer — Claims left out and noted on the run: an invalid subject, a word outside the vocabulary, a campaign member without a campaign role (victim, sweep, vault, cash_out), a victim with an abuse word.
  • rejected integer — Records left out whole because they are not text PostgreSQL stores (a NUL byte, an escaped surrogate outside a pair, bytes that are not UTF-8, or in XML a character reference to a surrogate), with, for a dossier source, every record of a dossier that holds one, and an ATT&CK relationship to an object rejected so, or because they hold a Bitcoin private key (a WIF key or an extended private key); named on the run by position and key, by position alone for a private key; included in record_count. Nothing of them is written and nothing they may have stated is withdrawn: their claims stay as they were, and while a fetch rejects a record no relation, signature, alias or identifier of the source is withdrawn.
  • record_count integer — Records the parser emitted from the file, distinct by record key, the rejected ones included: rows as parsed, not claims (see Source.last_fetch.record_count).
  • provisional integer — Campaign members that landed provisional: a source's first import into the campaign, a batch over the batch size, or a sweep, vault or cash-out named by one source. Included in inserted.
  • promoted integer — Members held back only for want of a second source that another source now names: current now.

202 · application/json

Import still running after the budget; poll the run.

CampoTipoQué lleva
import_run_idintegerThe import's run: poll it at GET /v1/ops/imports/{id}.
source_idstringThe source the dossier is imported into.
statusstringAlways running: the import goes on past the budget.
esquema
  • import_run_id integer — The import's run: poll it at GET /v1/ops/imports/{id}.
  • source_id string — The source the dossier is imported into.
  • status string — Always running: the import goes on past the budget. · uno de "running"

Errores

EstadoCódigoCuándo
400invalid_inputThe body is not a dossier (invalid_input), or it carries a private key (a Nostr nsec1, a WIF key or an extended private key such as xprv), its note included, which the answer never repeats: nothing is imported or recorded.
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.
403forbiddenAn agent may publish only a source flagged agent_may_publish (forbidden).
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.
409source_inactiveSource inactive (source_inactive), or a link-out without a grant of reuse (link_out).
413too_largeBody over the size cap (too_large).
422parse_failedThe parser refused the dossier (parse_failed); the fetch is recorded as failed and no claim changes.
429quota_exceededAn import of this source is already running (quota_exceeded, Retry-After), or the agent's daily budget is spent.

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 -X POST https://api.btcintel.io/v1/sources/ransomwhere/dossiers \
  -H "Authorization: Bearer $BTCINTEL_KEY" \
  -H 'Content-Type: application/json' \
  -d '{"dossier":{"version":1,"key":"bc1qz654h5qcqzalv6ltpxsk4ksdcc3e20wkedqntgnarv3a0t2e2p7scr48pl","campaign":{"kind":"address","title":"…","summary":"…","occurred_at":"…","abuse":"…"}}}' | jq

This route needs a key. Set BTCINTEL_KEY in your environment first: the snippet reads it from there and holds no key. The description above names the tiers the route takes.