btcintel

Revoke a key (ops)

DELETE /v1/keys/{id}
who may call it
An operator
a human: admin
what it costs
1 request of the quota
tiers and keys
how fresh
Never cached
every answer carries the index's height and the node's
MCP tool
None
On this page

Parameters

NameWhereTypeRequiredWhat it does
idpathintegerrequiredThe key's id.
reasonquerystringoptionalWhy the key is revoked, kept with it; revoked by ops when none is given.

What it answers

Revoked; the key stops resolving within a minute.

FieldTypeWhat it carries
revokedintegerThe id of the key revoked.
reasonstringThe reason kept with it: the one given, or revoked by ops.
schema
  • revoked integer — The id of the key revoked.
  • reason string — The reason kept with it: the one given, or revoked by ops.

Errors

StatusCodeWhen
400invalid_inputMalformed input (invalid_input).
401unauthorizedunauthorized: the request does not say who makes it, or what it offers does not verify: no key or session where one is needed, or a password, a code, a passkey or a signed event that does not check. The message says what is missing.
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 -X DELETE https://api.btcintel.io/v1/keys/12 \
  -H "Authorization: Bearer $BTCINTEL_KEY" | jq

This route needs a key. Set BTCINTEL_KEY in your environment first: the snippet reads it from there and holds no key. The description above names the tiers the route takes.