Revoke a key (ops)
DELETE /v1/keys/{id}- who may call it
- An operator
- a human:
admin - how fresh
- Never cached
- every answer carries the index's height and the node's
- MCP tool
- None
On this page
Parameters
| Name | Where | Type | Required | What it does |
|---|---|---|---|---|
id | path | integer | required | The key's id. |
reason | query | string | optional | Why 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.
| Field | Type | What it carries |
|---|---|---|
revoked | integer | The id of the key revoked. |
reason | string | The reason kept with it: the one given, or revoked by ops. |
schema
revokedinteger — The id of the key revoked.reasonstring — The reason kept with it: the one given, orrevoked by ops.
Errors
| Status | Code | When |
|---|---|---|
| 400 | invalid_input | Malformed input (invalid_input). |
| 401 | unauthorized | unauthorized: 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. |
| 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 -X DELETE https://api.btcintel.io/v1/keys/12 \
-H "Authorization: Bearer $BTCINTEL_KEY" | jqThis 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.