btcintel

API reference

176 operations in 12 sections, generated from openapi.yaml (Btcintel native API 0.1.0) on every build. Hashes are canonical display byte order everywhere; every answer carries the index and node heights; errors use one envelope — the rules are on the semantics page. Agents get the same operations as MCP tools: MCP server.

On this page

Chain and blocks

11 operations · 2 MCP tools

Status, the tip, blocks by height or hash and their transactions. Facts from btcintel's own index; the node tip rides along for confirmations.

OperationMCP tool
Chain, node and mempool statusGET /v1/statusMCP tool get_status
Recent blocksGET /v1/blocksno MCP tool
Index tip heightGET /v1/blocks/tip/heightno MCP tool
Index tip hashGET /v1/blocks/tip/hashno MCP tool
Block by height or canonical hashGET /v1/blocks/{id}MCP tool get_block
Txids of a blockGET /v1/blocks/{id}/txsno MCP tool
Stale blocks and forks the node knowsGET /v1/blocks/staleno MCP tool
The reorgs the mempool engine sawGET /v1/blocks/reorgsno MCP tool
Block chain-statusGET /v1/blocks/{id}/statusno MCP tool
A block's figures, as the node computes them (getblockstats)GET /v1/blocks/{id}/statsno MCP tool
A block's transactions in block order, its OP_RETURNs, its composition and the transactions a source namesGET /v1/blocks/{id}/summaryno MCP tool

Transactions

4 operations · 1 MCP tool

A transaction with resolved inputs and outputs, its confirmation status and the spend status of its outputs.

OperationMCP tool
Transaction by canonical txidGET /v1/tx/{txid}MCP tool get_tx
Confirmation statusGET /v1/tx/{txid}/statusno MCP tool
Spend status of every outputGET /v1/tx/{txid}/outspendsno MCP tool
Spend status of one outputGET /v1/tx/{txid}/outspend/{vout}no MCP tool

Addresses and scripts

4 operations · 1 MCP tool

Address summaries keyed by the rendered address, history, unspent outputs, and the same summary by script hash.

OperationMCP tool
Address summaryGET /v1/address/{address}MCP tool get_address
Address history (newest first)GET /v1/address/{address}/txsno MCP tool
Unspent outputsGET /v1/address/{address}/utxosno MCP tool
Lookup by script hashGET /v1/scripthash/{hash}no MCP tool

Mempool and fees

7 operations · no MCP tool

The node's mempool as btcintel mirrors it, the projected next blocks, replacements and fee estimates — projection and node figures kept apart — and the live stream of all of them.

OperationMCP tool
Recent mempool transactionsGET /v1/mempoolno MCP tool
Txids of the mempool sampleGET /v1/mempool/txidsno MCP tool
Whole-mempool statisticsGET /v1/mempool/statsno MCP tool
Projected blocks (mempool engine)GET /v1/mempool/projectedno MCP tool
Recent RBF replacements (mempool engine)GET /v1/mempool/replacementsno MCP tool
Fee recommendations (mempool engine)GET /v1/fees/estimatesno MCP tool
Live updates (server-sent events)GET /v1/streamno MCP tool

Intel: claims, entities, sources

36 operations · 13 MCP tools

The Curated band: claims with their provenance and citation, entities and relations, sources, the change feed and the vocabularies. Absent is not empty. Campaigns with their members, the exports, the open events and the resolver of a claim's public path are here too.

OperationMCP tool
Claims on an addressGET /v1/address/{address}/annotationsno MCP tool
Entities (cursor or offset page), and all of them in sumGET /v1/entitiesno MCP tool
Entity with identifiers, aliases, relations, events and subjectsGET /v1/entities/{id}no MCP tool
What each source says about an entity, in sumGET /v1/entities/{id}/sourcesno MCP tool
The subjects the claims name for an entity (cursor page)GET /v1/entities/{id}/subjectsno MCP tool
Sources with licence, attribution and last fetchGET /v1/sourcesMCP tool list_sources
One source, what it states in sum, and the files readGET /v1/sources/{id}no MCP tool
Search current claims (cursor page, newest first)GET /v1/annotationsMCP tool search_annotations
Bulk lookup of claims by subjectPOST /v1/annotations/lookupMCP tool lookup_subjects
One claim by id or slug, current version or a given oneGET /v1/claims/{claim_id}MCP tool get_claim
One claim as a STIX 2.1 bundleGET /v1/claims/{claim_id}.stixno MCP tool
STIX 2.1 bundle of one subject, one entity, one source or one campaignGET /v1/export/stixno MCP tool
TagPack (GraphSense YAML) of one source or one campaignGET /v1/export/tagpackno MCP tool
Every recorded version of a claimGET /v1/claims/{claim_id}/versionsno MCP tool
The members of a campaign as CSVGET /v1/claims/{claim_id}/members.csvno MCP tool
The campaigns, each with what it names in force and what waits, and all of them in sumGET /v1/campaignsno MCP tool
One campaign, with its members counted by role and stateGET /v1/campaigns/{claim_id}MCP tool get_campaign
A campaign as one document, every member with its evidenceGET /v1/campaigns/{claim_id}/dossierMCP tool get_campaign_dossier
The members of a campaign, a page of claimsGET /v1/claims/{claim_id}/membersMCP tool list_campaign_members
What the chain shows of a page of a campaign's membersGET /v1/claims/{claim_id}/members/chainno MCP tool
The public dispute record of a claimGET /v1/claims/{claim_id}/disputesno MCP tool
Dispute a Curated claimPOST /v1/claims/{claim_id}/disputesMCP tool dispute_claim
Sanction listings of an address, with the fetch they are as ofGET /v1/sanctions/facts/{address}no MCP tool
Append-only feed of claim changes (cursor)GET /v1/changesno MCP tool
The vocabulary (DW-VA, btcintel extensions, confidence classes, event and relation kinds)GET /v1/taxonomy/conceptsno MCP tool
Attributions of a block (no stored winner)GET /v1/blocks/{id}/attributionno MCP tool
Template diff of a block (evidence, never a verdict)GET /v1/blocks/{id}/auditno MCP tool
Structural observations of a transaction (tx-obs-v1)GET /v1/tx/{txid}/classificationno MCP tool
Publish one incident dossier through a dossier source (ops)POST /v1/sources/{id}/dossiersMCP tool import_dossier
What publishing a dossier would do, without publishing itPOST /v1/sources/{id}/dossiers/checkMCP tool check_dossier
The subjects that carry intel, by kind, with the counts behind eachGET /v1/subjectsno MCP tool
The open events, each with its current member countGET /v1/eventsno MCP tool
What a public claim path names, and whether it is the canonical formGET /v1/resolveno MCP tool
The Curated siblings of a subject, without the chain factsGET /v1/subjects/{subject_kind}/{subject_key}MCP tool get_annotations
Propose a Curated claim (t2 agents, t3 humans; a human reviews it)POST /v1/annotations/proposeMCP tool propose_annotation
The caller's own proposals and what came of themGET /v1/annotations/proposalsMCP tool list_proposals

Community

7 operations · 5 MCP tools

What people say on Nostr about addresses, transactions and blocks: NIP-22 comments and NIP-32 labels indexed from our relay and the public relays, never endorsed by btcintel. The lens (labelers=) picks whose labels you see; zaps are a community signal, not an endorsement; the relay itself answers at GET /relay.

OperationMCP tool
The public labeler directory (Community)GET /v1/community/labelersMCP tool list_labelers
The Community firehose — recent notes across subjects, or one author's notesGET /v1/community/recentno MCP tool
One Community event with its threadGET /v1/community/events/{id}MCP tool get_community_event
Community notes about one subject — comments and labels, with a lensGET /v1/community/{subject_kind}/{subject_key}MCP tool get_community
Publish a signed Community event through the APIPOST /v1/community/publishMCP tool publish_community_event
Delete own Community events through the API (NIP-09)POST /v1/community/deleteMCP tool delete_community_event
The embedded Nostr relay (WebSocket) and its NIP-11 documentGET /relayno MCP tool

Watching

4 operations · 4 MCP tools

One watchlist for each key or npub, and the feed of what changed on the subjects it holds, read with a cursor.

OperationMCP tool
The caller's watchlistGET /v1/watchMCP tool list_watched
The change feed of the watched subjectsGET /v1/watch/changesMCP tool get_watch_changes
Watch a subjectPUT /v1/watch/{kind}/{key}MCP tool watch_subject
Stop watching a subjectDELETE /v1/watch/{kind}/{key}MCP tool unwatch_subject

Feedback

4 operations · 1 MCP tool

Tell us what is wrong or missing, and the triage queue ops read.

OperationMCP tool
The feedback queue (ops), newest firstGET /v1/ops/feedbackno MCP tool
Triage one entry (ops)PATCH /v1/ops/feedback/{id}no MCP tool
Delete one entry on the requester's word (ops)DELETE /v1/ops/feedback/{id}no MCP tool
Send feedback (the web sheet, agents, automatic failure reports)POST /v1/feedbackMCP tool send_feedback

Keys and quotas

5 operations · 1 MCP tool

Minting an anonymous token, reading your own key, and the ops routes that issue and revoke keys.

OperationMCP tool
Mint an anonymous t1 token (shown once)POST /v1/keys/anonno MCP tool
An agent issues its own t2 key, bound to the key that signs the requestPOST /v1/keys/agentno MCP tool
Issue a btci_ key (ops)POST /v1/keysno MCP tool
Revoke a key (ops)DELETE /v1/keys/{id}no MCP tool
The calling key's tier, quota and usage todayGET /v1/keys/meMCP tool get_auth_identity

Accounts and sign-in

59 operations · no MCP tool

The t4 band: sign-up and sign-in by password, link or passkey, the second factor and the step-up, the account's own data, organisations with members, invitations and API keys. Never an MCP tool; 501 not_configured while accounts are off. Signing in with a Nostr key, the session, the key backup, the provider sign-ins and the custodied key are here too.

OperationMCP tool
Sign in with a NIP-98 event and open a T3 sessionPOST /v1/auth/nip98no MCP tool
A nonce that binds the next NIP-98 login to this browserGET /v1/auth/nonceno MCP tool
The signed-in key or account, its tier, quota and live sessionsGET /v1/auth/meno MCP tool
Revoke the current session and clear the cookiePOST /v1/auth/logoutno MCP tool
Revoke one of the caller's sessionsDELETE /v1/auth/sessions/{id}no MCP tool
Create an account with an e-mail address and a passwordPOST /v1/auth/signupno MCP tool
Finish a sign-up with the link's tokenPOST /v1/auth/verifyno MCP tool
Sign in with an e-mail address and a passwordPOST /v1/auth/passwordno MCP tool
Set a new passwordPUT /v1/auth/passwordno MCP tool
Ask for a one-time sign-in linkPOST /v1/auth/linkno MCP tool
Sign in with the link's tokenPOST /v1/auth/link/verifyno MCP tool
Ask for a password-reset linkPOST /v1/auth/resetno MCP tool
Open the reset link's sessionPOST /v1/auth/reset/verifyno MCP tool
Change the display name or the e-mail addressPATCH /v1/auth/accountno MCP tool
Close the accountDELETE /v1/auth/accountno MCP tool
Confirm a new e-mail address with the link's tokenPOST /v1/auth/email/verifyno MCP tool
The account's data as one JSON documentGET /v1/auth/exportno MCP tool
Start enrolling an authenticator appPOST /v1/auth/totp/enrolno MCP tool
Confirm the app with its current codePOST /v1/auth/totp/verifyno MCP tool
Remove the authenticator appPOST /v1/auth/totp/disableno MCP tool
Regenerate the recovery codesPOST /v1/auth/recovery-codesno MCP tool
Lift this session to aal 2 for ten minutesPOST /v1/auth/step-upno MCP tool
The caller's organisationsGET /v1/orgsno MCP tool
Create an organisationPOST /v1/orgsno MCP tool
Join an organisation with an invitation's tokenPOST /v1/orgs/invites/acceptno MCP tool
An organisation and its membersGET /v1/orgs/{id}no MCP tool
Change a member's rolePATCH /v1/orgs/{id}/members/{account_id}no MCP tool
Remove a member, or leaveDELETE /v1/orgs/{id}/members/{account_id}no MCP tool
The open invitationsGET /v1/orgs/{id}/invitesno MCP tool
Invite an addressPOST /v1/orgs/{id}/invitesno MCP tool
The organisation's audit rowsGET /v1/orgs/{id}/auditno MCP tool
The organisation's keysGET /v1/orgs/{id}/keysno MCP tool
Issue a key owned by the organisationPOST /v1/orgs/{id}/keysno MCP tool
Revoke a key of the organisationDELETE /v1/orgs/{id}/keys/{key_id}no MCP tool
The account's keysGET /v1/auth/keysno MCP tool
Issue a key owned by the accountPOST /v1/auth/keysno MCP tool
Revoke a key of the accountDELETE /v1/auth/keys/{key_id}no MCP tool
The account's passkeysGET /v1/auth/webauthnno MCP tool
Start registering a passkeyPOST /v1/auth/webauthn/register/beginno MCP tool
Finish registering a passkeyPOST /v1/auth/webauthn/register/finishno MCP tool
Start a passkey sign-in or step-upPOST /v1/auth/webauthn/authenticate/beginno MCP tool
Finish a passkey sign-in or step-upPOST /v1/auth/webauthn/authenticate/finishno MCP tool
Remove a passkeyDELETE /v1/auth/webauthn/{id}no MCP tool
Download the NIP-49 backupGET /v1/auth/backupno MCP tool
Store the NIP-49 backup of the signed-in keyPUT /v1/auth/backupno MCP tool
Delete the NIP-49 backup (NIP-98 only)DELETE /v1/auth/backupno MCP tool
Start a sign-in with a providerGET /v1/auth/oauth/{provider}/startno MCP tool
The provider's returnGET /v1/auth/oauth/{provider}/callbackno MCP tool
The provider's return as a form POST (Apple)POST /v1/auth/oauth/{provider}/callbackno MCP tool
Link a provider to the account with the same verified addressPOST /v1/auth/oauth/confirmno MCP tool
Create a custodied signing key for the accountPOST /v1/auth/npub/custodiedno MCP tool
A challenge to prove an own key before linking itPOST /v1/auth/npub/challengeno MCP tool
Link the person's own key to the accountPOST /v1/auth/npub/linkno MCP tool
Unlink the account's keyDELETE /v1/auth/npub/{pubkey}no MCP tool
Sign an event with the account's custodied keyPOST /v1/auth/npub/signno MCP tool
Export the custodied key as an nsecPOST /v1/auth/npub/exportno MCP tool
A bunker link to use the custodied key in another appPOST /v1/auth/npub/bunkerno MCP tool
The apps connected to the custodied keyGET /v1/auth/npub/clientsno MCP tool
Disconnect an app from the custodied keyDELETE /v1/auth/npub/clients/{client_pubkey}no MCP tool

Ops

28 operations · no MCP tool

Operator routes: imports, operators, drafts and their approval, retractions, the audit log. Every call needs an operator credential and is audited.

OperationMCP tool
Whom the caller acts as (ops)GET /v1/ops/meno MCP tool
Operators (ops)GET /v1/ops/operatorsno MCP tool
Create or replace an operator (human admin)POST /v1/ops/operatorsno MCP tool
Change roles, budget, the kill switch or the account (human admin)PATCH /v1/ops/operators/{id}no MCP tool
Drafts awaiting or past decision (ops)GET /v1/ops/draftsno MCP tool
Propose a claim, entity, relation or event (ops; a human approves it)POST /v1/ops/draftsno MCP tool
The drafts to sample for a batch, as CSV (human curator or admin)GET /v1/ops/drafts.csvno MCP tool
An operator's drafts per source over a window (human curator or admin)GET /v1/ops/operators/{id}/recordno MCP tool
Approve a batch of drafts after reviewing a sample (human curator or admin)POST /v1/ops/drafts/batchno MCP tool
Approve a draft (human curator or admin, never its proposer)POST /v1/ops/drafts/{id}/approveno MCP tool
Reject a draft with a reason (human curator or admin)POST /v1/ops/drafts/{id}/rejectno MCP tool
Retract a claim with a reason (human curator or admin)POST /v1/ops/claims/{claim_id}/retractno MCP tool
Correct an event's public slug (human curator or admin)PUT /v1/ops/claims/{claim_id}/slugno MCP tool
Promote a source's provisional members of a campaign (human curator or admin)POST /v1/ops/campaigns/{claim_id}/promoteno MCP tool
Release one campaign member that waits for a review (human curator or admin)POST /v1/ops/claims/{claim_id}/releaseno MCP tool
Reject one campaign member that waits for a review (human curator or admin)POST /v1/ops/claims/{claim_id}/rejectno MCP tool
The dispute queue (ops)GET /v1/ops/disputesno MCP tool
Resolve a dispute (human curator or admin)POST /v1/ops/disputes/{id}/resolveno MCP tool
The audit log (ops), paginated by idGET /v1/ops/auditno MCP tool
The relay's write policy (ops)GET /v1/ops/relay/policyno MCP tool
Change the relay's write policy (ops, human admin)PATCH /v1/ops/relay/policyno MCP tool
The moderation trail (ops), newest firstGET /v1/ops/community/moderationno MCP tool
Hide or unhide an event, ban or unban a pubkey (ops, human admin or moderator)POST /v1/ops/community/moderationno MCP tool
The labeler directory, listed or not (ops)GET /v1/ops/community/labelersno MCP tool
Add a labeler to the directory (ops, human admin or curator)POST /v1/ops/community/labelersno MCP tool
Change a labeler's directory entry (ops, human admin or curator)PATCH /v1/ops/community/labelers/{pubkey}no MCP tool
Push a source file through its parser (ops)POST /v1/sources/{id}/importno MCP tool
One import run (ops)GET /v1/ops/imports/{id}no MCP tool

Discovery and health

7 operations · no MCP tool

The MCP endpoint, the discovery descriptor, llms.txt, the contract itself, and the probes.

OperationMCP tool
Liveness probeGET /healthno MCP tool
Readiness probeGET /readyno MCP tool
Prometheus metricsGET /metricsno MCP tool
MCP Streamable HTTP endpoint (JSON-RPC 2.0)POST /mcpno MCP tool
Discovery descriptor for agentsGET /.well-known/btcintel.jsonno MCP tool
The MCP Registry entry (server.json)GET /.well-known/mcp/server.jsonno MCP tool
llms.txt (mirror of the web's)GET /llms.txtno MCP tool

Worked example

# Address summary with annotations
curl -s https://api.btcintel.io/v1/address/1A1zP1eP5QGefi2DMPTfTL5SLmv7DivfNa \
  | jq '{balance_sat, tx_count, keyed_by, annotations: [.annotations[]? | {label, citation, source: .source.id}]}'

# HEAD is 200 on every GET /v1 route
curl -sI -X HEAD https://api.btcintel.io/v1/status | head -n 1

# Page through its history
curl -s "https://api.btcintel.io/v1/address/1A1zP1eP5QGefi2DMPTfTL5SLmv7DivfNa/txs?limit=50&offset=50" \
  | jq 'length'

Live updates

GET /v1/stream is one server-sent event stream of the tip, the mempool, the projected blocks, the fee estimates and the state of up to 16 transactions, from the mempool engine. It opens with a snapshot of everything asked for, then sends each change as the engine applies it; every event’s at says when. The schemas are in the reference.

# Twenty seconds of the tip and the fees
curl -sN --max-time 20 "https://api.btcintel.io/v1/stream?topics=block,fees"

// In a browser: follow one transaction
const es = new EventSource("https://api.btcintel.io/v1/stream?tx=<txid>");
es.addEventListener("snapshot", (e) => console.log(JSON.parse(e.data)));
es.addEventListener("tx", (e) => console.log(JSON.parse(e.data).state));
  • Topics. block, mempool, projected and fees, each sent only when it changed. tx= takes up to 16 txids; their events are pending, replaced (with replaced_by), confirmed (with height and hash) and dropped.
  • The snapshot. One snapshot event per topic and per transaction the engine knows, named by its topic. A transaction the engine does not know (never seen, or already in a block) gets none: read GET /v1/tx/{txid}.
  • Reconnecting. There is no replay: a reconnect gets a fresh snapshot, and Last-Event-ID is ignored. A comment line goes out every 15 s; the stream closes after six hours, or once a client falls 16 events behind. A browser’s EventSource reconnects on its own 3 s after a dropped connection.
  • Limits. Concurrent streams per caller, by tier: t0 2, t1 4, t2 and t3 10, t4 50, under a server-wide cap. Over one, a 429 with Retry-After. Opening a stream counts as one request of the quota; events do not.
  • Not for crawlers. The stream is for browsers and for agents with a key. The site’s pages open none in a crawler’s browser, and a request whose User-Agent claims a search or AI crawler is refused with 403 forbidden; the crawler reads the page instead.

Where a pending transaction stands

For a transaction in the node’s mempool, GET /v1/tx/{txid} adds projection: where the mempool engine’s latest projection places it. The engine orders the mempool the way a miner’s block template would (ancestor packages selected greedily by fee rate, method: ancestor_package_greedy) and recomputes it every two seconds; as_of says when.

  • block is its place among the next eight projected blocks, or beyond: true past them.
  • effective_fee_rate is the rate of the package it is selected with, a child paying for it included; next_block_min_fee_rate is the lowest rate the next block takes.
  • package is the node’s own entry: its ancestors and descendants, the transaction itself left out, and the size and fees with its ancestors. replaceable is absent when unknown.

It is an order, not a time and not a promise: the projection moves as transactions arrive, and a miner’s block may hold others. projection is absent while the engine is off, before its first projection, and for a transaction newer than the last one. A transaction the engine saw replaced answers mempool: false with replaced_by and replaced_at while the engine’s feed of its last 200 replacements holds it, and 404 after. A transaction’s page shows all of it and follows the transaction through the stream above.

Caching

Answers declare Cache-Control matched to how fast the data can change: curated intel carries max-age=60, stale-while-revalidate=300; content addressed by hash is immutable for a week: a block’s txid list read by its hash, and a block read by its hash once it is six blocks deep. Nearer the tip a block read by its hash answers as a block read by height does, since a reorg can still make it stale. Tip-coupled data lives seconds. Errors are always no-store — today’s 404 flips to 200 the moment the index catches up, and no cache may remember otherwise. Chain-read routes carry the header too: a block read by height answers max-age=10, stale-while-revalidate=30; a confirmed transaction or an address, max-age=5, stale-while-revalidate=30; the tip, the mempool and a transaction still in it, max-age=2, stale-while-revalidate=10.