btcintel

What publishing a dossier would do, without publishing it

POST /v1/sources/{id}/dossiers/check
quién puede llamarla
Cualquiera
sin clave y sin sesión
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
check_dossier
en el servidor MCP
En esta página

The dry run of import_dossier: the same parser, the same guards, nothing written. Per dossier, the campaign it would write, bind or join, each entity it would create or attach to an existing one, as the import resolves it (resolved_to is the id the import writes to when it is not the one declared, so a software declared under an id that a threat actor holds is created with that id followed by -malware, the two never being one entity), and each member with the state it would land in (current, provisional, held, known, skipped), its chain check against the index, the collisions that would hold it, and the claims and campaigns btcintel already holds on its subject; errors lists what would fail the whole import. A dossier that holds a record that is not text PostgreSQL stores (an escaped surrogate outside a pair, bytes that are not UTF-8, a NUL) is rejected, as the import rejects it whole: its records are named, and the other dossiers are reported as the import would write them. Open to every tier under its quota: the Research agent reads it before it sends a dossier, the CEO before it publishes one.

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

The report.

CampoTipoQué lleva
sourcestringThe source checked: the id of the path.
parser_versionstringThe parser that read the bundle, with its version.
sha256stringOf the bundle as read; the fetch an import would cite.
recordsintegerThe records the parser made of the bundle: one for each campaign, entity and member, a repeat counted once.
errorsarrayWhat would fail the whole import: a join to a missing or retracted event, an entity named but neither existing nor declared, a word outside the vocabulary.
dossiersarrayOne entry for each dossier of the bundle, by key.
dossiers[].keystringThe dossier's key.
dossiers[].retiredbooleanTrue when the dossier is retired. Absent otherwise.
dossiers[].campaignobjectWhat the import would do with the dossier's campaign.
dossiers[].entitiesarrayThe entities the dossier declares, each with what the import would do with it.
dossiers[].membersarrayOne entry for each member, with the state its import would land in.
dossiers[].expiresarrayCurrent members the source names in the campaign that this push leaves out: the import would delist them with a date. A dossier is sent whole.
dossiers[].summaryobjectThe members counted by what would become of them: current, provisional, held, known and skipped, and expires for the ones the push would delist; for a rejected dossier, rejected, its records the import rejects.
dossiers[].rejectedarrayFor a rejected dossier, its records as the import's run names them: by position among the bundle's records and by key when the key is text, never by content, those rejected with their dossier marked (its dossier). Absent otherwise.
esquema DossierCheckReport
  • source string obligatorio — The source checked: the id of the path.
  • parser_version string obligatorio — The parser that read the bundle, with its version.
  • sha256 string obligatorio — Of the bundle as read; the fetch an import would cite.
  • records integer obligatorio — The records the parser made of the bundle: one for each campaign, entity and member, a repeat counted once.
  • errors array de string obligatorio — What would fail the whole import: a join to a missing or retracted event, an entity named but neither existing nor declared, a word outside the vocabulary.
  • dossiers array de object obligatorio — One entry for each dossier of the bundle, by key.
    • key string — The dossier's key.
    • retired boolean — True when the dossier is retired. Absent otherwise.
    • campaign object — What the import would do with the dossier's campaign.
      • action string — new: the event would be written. bound: the key already has its event. joins: it would bind to the event joins names. nothing: a retired key that was never imported. rejected: a record of the dossier is not text PostgreSQL stores, so the import writes nothing of the dossier and withdraws nothing it stated before; rejected names its records, and the dossier is not read further. · uno de "new", "bound", "joins", "nothing", "rejected"
      • event_id string — The event the campaign is bound to or joins, evt_<n>. Absent for a new one, and when nothing would be done.
      • title string — The campaign's title, as the dossier gives it.
      • kind string — The campaign's kind, as the dossier gives it.
      • kind_in_vocabulary boolean — False when that kind is not in the vocabulary (errors says so), or the dossier is rejected.
      • entities object — The entities the campaign names, each id with its role. Absent when it names none.
    • entities array de object — The entities the dossier declares, each with what the import would do with it.
      • id string — The entity's id, as the dossier declares it.
      • name string — Its name, as declared.
      • kind string — Its kind, as declared.
      • kind_in_vocabulary boolean — False when that kind is not in the vocabulary; errors then says so.
      • action string — created: the import makes the entity; exists: the record's own is there; attaches: it joins another. · uno de "exists", "attaches", "created"
      • resolved_to string — The id the import writes to when it is not id: the entity joined, or the id made for the record.
    • members array de object — One entry for each member, with the state its import would land in.
      • subject string — The member's subject as kind:key, canonicalised when it parses.
      • role string — The member's role.
      • class string — The confidence class it would carry, as confidence:<class>: its first url entry's, or web_crawl.
      • corroborated boolean — True when an authority's page, or two pages by different authors on different hosts, name the subject, or another source already names it in the campaign.
      • chain_fact string — The fact on the chain the dossier states of the subject: funded, spent or confirmed.
      • chain_check string — What the lookup of that fact found. Absent for a member skipped before the lookup. · uno de "verified", "mismatch", "not_checkable"
      • observed string — What the chain showed, or why the fact could not be looked up.
      • would_be string — The state the member would land in: current; provisional while one source alone names it; held for a chain mismatch or a collision; known when the same row is already published; skipped when it cannot be a member. · uno de "current", "provisional", "held", "known", "skipped"
      • reason string — Why it would land so. Absent for a current member.
      • collisions array de string — Claims of another source that name the subject as a service, ann_<n>. Absent when there is none, and for a cash-out.
      • campaigns array de string — Other campaigns the subject is already a member of: the same incident joins them.
      • existing_claims array de string — Up to five claims of other sources on the subject outside any campaign, each as ann_<n> (source: label). Absent when there is none.
    • expires array de string — Current members the source names in the campaign that this push leaves out: the import would delist them with a date. A dossier is sent whole.
    • summary object — The members counted by what would become of them: current, provisional, held, known and skipped, and expires for the ones the push would delist; for a rejected dossier, rejected, its records the import rejects.
    • rejected array de string — For a rejected dossier, its records as the import's run names them: by position among the bundle's records and by key when the key is text, never by content, those rejected with their dossier marked (its dossier). Absent otherwise.

Errores

EstadoCódigoCuándo
400invalid_inputThe source's parser declares no dossiers, the body is not a dossier, or it carries a private key (a Nostr nsec1, a WIF key or an extended private key such as xprv), which the answer never repeats (invalid_input).
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.
413too_largeBody over the size cap (too_large).
422parse_failedThe parser refused the dossier (parse_failed): the message names the first refusal.
429quota_exceededquota_exceeded: the caller's tier ran out of requests for the minute or the day. Retry-After says when to try again; every rate-limited answer carries X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Reset and X-RateLimit-Tier. While the deployment runs in log-only mode the decision is logged instead and X-RateLimit-Policy: log-only is set.

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/check \
  -H 'Content-Type: application/json' \
  -d '{"dossier":{"version":1,"key":"bc1qz654h5qcqzalv6ltpxsk4ksdcc3e20wkedqntgnarv3a0t2e2p7scr48pl","campaign":{"kind":"address","title":"…","summary":"…","occurred_at":"…","abuse":"…"}}}' | jq