btcintel

What a public claim path names, and whether it is the canonical form

GET /v1/resolve
who may call it
Anyone
A held or rejected member is an operator's read: anyone else gets 404.
what it costs
1 request of the quota
tiers and keys
how fresh
Cached for 1 minute
and up to 5 minutes more while it is read again · every answer carries the index's height and the node's
MCP tool
None
On this page

The one lookup behind the web's 301s, so that the web keeps no table of its own. Given a public claim path (/claims/evt_189, /claims/<slug>, /claims/EVT_189/, with or without a sub-path or a query after the reference), it says what the path names. An event answers its id and its current slug; current says whether the reference given is that slug, so an id, a retired slug or another case of it redirect in one hop. A campaign member (an annotation that names a campaign) has no page of its own: it answers its subject, its role and status, its campaign with the campaign's slug, and the page of the campaign's members list that holds it, so the web sends the reader to the address or to the campaign. Any other claim answers its id. A held or rejected member is a 404 except to an operator. A reference of neither shape is a 400; an unknown one a 404.

Parameters

NameWhereTypeRequiredWhat it does
pathquerystringrequiredThe public path, /claims/<claim id or slug>, with or without a sub-path or a query after it.

What it answers

What the path names.

FieldTypeWhat it carries
kindstringWhat the path names: an event, a member (an annotation that names a campaign), or another claim.
claim_idstringThe canonical claim id: ann_<n>, att_<n>, rel_<n> or evt_<n>.
currentbooleanTrue when the reference given is the canonical public form: an event's current slug (its id while it has none), another claim's id. Always false for a member.
slugstringAn event's current slug; absent until the backfill reaches the event.
retractedbooleanAn event: whether it is retracted.
subjectobjectA member's subject. Only for a member.
rolestringA member's role in its campaign.
statusstringA member's state.
campaignobjectA member's campaign.
pageobjectWhere the member sits in its campaign's members list under the filter that shows it (its role; include=provisional when it is provisional), 100 a page: its index and the page's cursor, null on the first page.
schema Resolution
  • kind string required — What the path names: an event, a member (an annotation that names a campaign), or another claim. · one of "event", "member", "claim"
  • claim_id string required — The canonical claim id: ann_<n>, att_<n>, rel_<n> or evt_<n>.
  • current boolean required — True when the reference given is the canonical public form: an event's current slug (its id while it has none), another claim's id. Always false for a member.
  • slug string — An event's current slug; absent until the backfill reaches the event.
  • retracted boolean — An event: whether it is retracted.
  • subject Subject — A member's subject. Only for a member.
    • kind string — What the key names, which also sets the key's form. · one of "address", "script", "tx", "block", "outpoint", "pool", "descriptor", "pubkey"
    • key string — Canonical key.
  • role string — A member's role in its campaign. · one of "victim", "sweep", "vault", "cash_out"
  • status string — A member's state. · one of "current", "provisional", "held", "rejected"
  • campaign object — A member's campaign.
    • claim_id string required — The campaign's claim id, evt_<n>.
    • slug string — The campaign's slug. Absent while it has none.
    • title string — The campaign's title. Absent when it has none.
  • page object — Where the member sits in its campaign's members list under the filter that shows it (its role; include=provisional when it is provisional), 100 a page: its index and the page's cursor, null on the first page.
    • index integer required — The member's place in that list, from 0: how many members come before it.
    • cursor string | null required — The cursor of the page that holds the member. Null on the first page.

Errors

StatusCodeWhen
400invalid_inputMalformed input (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.

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/resolve?path=%E2%80%A6' | jq '{kind, claim_id, current}'