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.
- 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
| Name | Where | Type | Required | What it does |
|---|---|---|---|---|
path | query | string | required | The 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.
| Field | Type | What it carries |
|---|---|---|
kind | string | What the path names: an event, a member (an annotation that names a campaign), or another claim. |
claim_id | string | The canonical claim id: ann_<n>, att_<n>, rel_<n> or evt_<n>. |
current | boolean | 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 | object | A member's subject. Only for a member. |
role | string | A member's role in its campaign. |
status | string | A member's state. |
campaign | object | A member's campaign. |
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. |
schema Resolution
kindstring required — What the path names: anevent, amember(an annotation that names a campaign), or anotherclaim. · one of "event", "member", "claim"claim_idstring required — The canonical claim id: ann_<n>, att_<n>, rel_<n> or evt_<n>.currentboolean 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.slugstring — An event's current slug; absent until the backfill reaches the event.retractedboolean — An event: whether it is retracted.subjectSubject — A member's subject. Only for a member.kindstring — What the key names, which also sets the key's form. · one of "address", "script", "tx", "block", "outpoint", "pool", "descriptor", "pubkey"keystring — Canonical key.
rolestring — A member's role in its campaign. · one of "victim", "sweep", "vault", "cash_out"statusstring — A member's state. · one of "current", "provisional", "held", "rejected"campaignobject — A member's campaign.claim_idstring required — The campaign's claim id, evt_<n>.slugstring — The campaign's slug. Absent while it has none.titlestring — The campaign's title. Absent when it has none.
pageobject — Where the member sits in its campaign's members list under the filter that shows it (its role;include=provisionalwhen it is provisional), 100 a page: its index and the page's cursor, null on the first page.indexinteger required — The member's place in that list, from 0: how many members come before it.cursorstring | null required — Thecursorof the page that holds the member. Null on the first page.
Errors
| Status | Code | When |
|---|---|---|
| 400 | invalid_input | Malformed input (invalid_input). |
| 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/resolve?path=%E2%80%A6' | jq '{kind, claim_id, current}'