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.
| Operation | MCP tool |
|---|---|
Chain, node and mempool statusGET /v1/status | MCP tool get_status |
Recent blocksGET /v1/blocks | no MCP tool |
Index tip heightGET /v1/blocks/tip/height | no MCP tool |
Index tip hashGET /v1/blocks/tip/hash | no MCP tool |
Block by height or canonical hashGET /v1/blocks/{id} | MCP tool get_block |
Txids of a blockGET /v1/blocks/{id}/txs | no MCP tool |
Stale blocks and forks the node knowsGET /v1/blocks/stale | no MCP tool |
The reorgs the mempool engine sawGET /v1/blocks/reorgs | no MCP tool |
Block chain-statusGET /v1/blocks/{id}/status | no MCP tool |
A block's figures, as the node computes them (getblockstats)GET /v1/blocks/{id}/stats | no MCP tool |
A block's transactions in block order, its OP_RETURNs, its composition and the transactions a source namesGET /v1/blocks/{id}/summary | no 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.
| Operation | MCP tool |
|---|---|
Transaction by canonical txidGET /v1/tx/{txid} | MCP tool get_tx |
Confirmation statusGET /v1/tx/{txid}/status | no MCP tool |
Spend status of every outputGET /v1/tx/{txid}/outspends | no 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.
| Operation | MCP tool |
|---|---|
Address summaryGET /v1/address/{address} | MCP tool get_address |
Address history (newest first)GET /v1/address/{address}/txs | no MCP tool |
Unspent outputsGET /v1/address/{address}/utxos | no 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.
| Operation | MCP tool |
|---|---|
Recent mempool transactionsGET /v1/mempool | no MCP tool |
Txids of the mempool sampleGET /v1/mempool/txids | no MCP tool |
Whole-mempool statisticsGET /v1/mempool/stats | no MCP tool |
Projected blocks (mempool engine)GET /v1/mempool/projected | no MCP tool |
Recent RBF replacements (mempool engine)GET /v1/mempool/replacements | no MCP tool |
Fee recommendations (mempool engine)GET /v1/fees/estimates | no MCP tool |
Live updates (server-sent events)GET /v1/stream | no 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.
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.
| Operation | MCP tool |
|---|---|
The public labeler directory (Community)GET /v1/community/labelers | MCP tool list_labelers |
The Community firehose — recent notes across subjects, or one author's notesGET /v1/community/recent | no 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/publish | MCP tool publish_community_event |
Delete own Community events through the API (NIP-09)POST /v1/community/delete | MCP tool delete_community_event |
The embedded Nostr relay (WebSocket) and its NIP-11 documentGET /relay | no 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.
| Operation | MCP tool |
|---|---|
The caller's watchlistGET /v1/watch | MCP tool list_watched |
The change feed of the watched subjectsGET /v1/watch/changes | MCP 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.
| Operation | MCP tool |
|---|---|
The feedback queue (ops), newest firstGET /v1/ops/feedback | no 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/feedback | MCP 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.
| Operation | MCP tool |
|---|---|
Mint an anonymous t1 token (shown once)POST /v1/keys/anon | no MCP tool |
An agent issues its own t2 key, bound to the key that signs the requestPOST /v1/keys/agent | no MCP tool |
Issue a btci_ key (ops)POST /v1/keys | no MCP tool |
Revoke a key (ops)DELETE /v1/keys/{id} | no MCP tool |
The calling key's tier, quota and usage todayGET /v1/keys/me | MCP 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.
| Operation | MCP tool |
|---|---|
Sign in with a NIP-98 event and open a T3 sessionPOST /v1/auth/nip98 | no MCP tool |
A nonce that binds the next NIP-98 login to this browserGET /v1/auth/nonce | no MCP tool |
The signed-in key or account, its tier, quota and live sessionsGET /v1/auth/me | no MCP tool |
Revoke the current session and clear the cookiePOST /v1/auth/logout | no 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/signup | no MCP tool |
Finish a sign-up with the link's tokenPOST /v1/auth/verify | no MCP tool |
Sign in with an e-mail address and a passwordPOST /v1/auth/password | no MCP tool |
Set a new passwordPUT /v1/auth/password | no MCP tool |
Ask for a one-time sign-in linkPOST /v1/auth/link | no MCP tool |
Sign in with the link's tokenPOST /v1/auth/link/verify | no MCP tool |
Ask for a password-reset linkPOST /v1/auth/reset | no MCP tool |
Open the reset link's sessionPOST /v1/auth/reset/verify | no MCP tool |
Change the display name or the e-mail addressPATCH /v1/auth/account | no MCP tool |
Close the accountDELETE /v1/auth/account | no MCP tool |
Confirm a new e-mail address with the link's tokenPOST /v1/auth/email/verify | no MCP tool |
The account's data as one JSON documentGET /v1/auth/export | no MCP tool |
Start enrolling an authenticator appPOST /v1/auth/totp/enrol | no MCP tool |
Confirm the app with its current codePOST /v1/auth/totp/verify | no MCP tool |
Remove the authenticator appPOST /v1/auth/totp/disable | no MCP tool |
Regenerate the recovery codesPOST /v1/auth/recovery-codes | no MCP tool |
Lift this session to aal 2 for ten minutesPOST /v1/auth/step-up | no MCP tool |
The caller's organisationsGET /v1/orgs | no MCP tool |
Create an organisationPOST /v1/orgs | no MCP tool |
Join an organisation with an invitation's tokenPOST /v1/orgs/invites/accept | no 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}/invites | no MCP tool |
Invite an addressPOST /v1/orgs/{id}/invites | no MCP tool |
The organisation's audit rowsGET /v1/orgs/{id}/audit | no MCP tool |
The organisation's keysGET /v1/orgs/{id}/keys | no MCP tool |
Issue a key owned by the organisationPOST /v1/orgs/{id}/keys | no MCP tool |
Revoke a key of the organisationDELETE /v1/orgs/{id}/keys/{key_id} | no MCP tool |
The account's keysGET /v1/auth/keys | no MCP tool |
Issue a key owned by the accountPOST /v1/auth/keys | no MCP tool |
Revoke a key of the accountDELETE /v1/auth/keys/{key_id} | no MCP tool |
The account's passkeysGET /v1/auth/webauthn | no MCP tool |
Start registering a passkeyPOST /v1/auth/webauthn/register/begin | no MCP tool |
Finish registering a passkeyPOST /v1/auth/webauthn/register/finish | no MCP tool |
Start a passkey sign-in or step-upPOST /v1/auth/webauthn/authenticate/begin | no MCP tool |
Finish a passkey sign-in or step-upPOST /v1/auth/webauthn/authenticate/finish | no MCP tool |
Remove a passkeyDELETE /v1/auth/webauthn/{id} | no MCP tool |
Download the NIP-49 backupGET /v1/auth/backup | no MCP tool |
Store the NIP-49 backup of the signed-in keyPUT /v1/auth/backup | no MCP tool |
Delete the NIP-49 backup (NIP-98 only)DELETE /v1/auth/backup | no MCP tool |
Start a sign-in with a providerGET /v1/auth/oauth/{provider}/start | no MCP tool |
The provider's returnGET /v1/auth/oauth/{provider}/callback | no MCP tool |
The provider's return as a form POST (Apple)POST /v1/auth/oauth/{provider}/callback | no MCP tool |
Link a provider to the account with the same verified addressPOST /v1/auth/oauth/confirm | no MCP tool |
Create a custodied signing key for the accountPOST /v1/auth/npub/custodied | no MCP tool |
A challenge to prove an own key before linking itPOST /v1/auth/npub/challenge | no MCP tool |
Link the person's own key to the accountPOST /v1/auth/npub/link | no 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/sign | no MCP tool |
Export the custodied key as an nsecPOST /v1/auth/npub/export | no MCP tool |
A bunker link to use the custodied key in another appPOST /v1/auth/npub/bunker | no MCP tool |
The apps connected to the custodied keyGET /v1/auth/npub/clients | no 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.
Discovery and health
7 operations · no MCP tool
The MCP endpoint, the discovery descriptor, llms.txt, the contract itself, and the probes.
| Operation | MCP tool |
|---|---|
Liveness probeGET /health | no MCP tool |
Readiness probeGET /ready | no MCP tool |
Prometheus metricsGET /metrics | no MCP tool |
MCP Streamable HTTP endpoint (JSON-RPC 2.0)POST /mcp | no MCP tool |
Discovery descriptor for agentsGET /.well-known/btcintel.json | no MCP tool |
The MCP Registry entry (server.json)GET /.well-known/mcp/server.json | no MCP tool |
llms.txt (mirror of the web's)GET /llms.txt | no 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,projectedandfees, each sent only when it changed.tx=takes up to 16 txids; their events arepending,replaced(withreplaced_by),confirmed(withheightandhash) anddropped. - The snapshot. One
snapshotevent per topic and per transaction the engine knows, named by itstopic. A transaction the engine does not know (never seen, or already in a block) gets none: readGET /v1/tx/{txid}. - Reconnecting. There is no replay: a reconnect gets a fresh snapshot, and
Last-Event-IDis 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’sEventSourcereconnects 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-Agentclaims a search or AI crawler is refused with 403forbidden; 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.
blockis its place among the next eight projected blocks, orbeyond: truepast them.effective_fee_rateis the rate of the package it is selected with, a child paying for it included;next_block_min_fee_rateis the lowest rate the next block takes.packageis the node’s own entry: its ancestors and descendants, the transaction itself left out, and the size and fees with its ancestors.replaceableis 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.