Revoke a key (ops)
DELETE /v1/keys/{id}- quién puede llamarla
- Un operador
- una persona:
admin - cuán reciente
- Nunca en caché
- cada respuesta lleva la altura del índice y la del nodo
- Herramienta MCP
- Ninguna
En esta página
Parámetros
| Nombre | Dónde | Tipo | Obligatorio | Qué hace |
|---|---|---|---|---|
id | ruta | integer | obligatorio | The key's id. |
reason | consulta | string | opcional | Why the key is revoked, kept with it; revoked by ops when none is given. |
Qué responde
Revoked; the key stops resolving within a minute.
| Campo | Tipo | Qué lleva |
|---|---|---|
revoked | integer | The id of the key revoked. |
reason | string | The reason kept with it: the one given, or revoked by ops. |
esquema
revokedinteger — The id of the key revoked.reasonstring — The reason kept with it: the one given, orrevoked by ops.
Errores
| Estado | Código | Cuándo |
|---|---|---|
| 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. |
Cada uno llega en el sobre de error único, y ninguno se guarda en caché: un error lleva Cache-Control: no-store.
Ejemplo
curl y jq, en cualquier 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.