Retract a claim with a reason (human curator or admin)
POST /v1/ops/claims/{claim_id}/retract- quién puede llamarla
- Un operador
- una persona:
adminocurator - 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 |
|---|---|---|---|---|
claim_id | ruta | string | obligatorio | The claim's id: ann_<n>, att_<n>, rel_<n> or evt_<n>. |
reason | cuerpo | string | obligatorio | Why the claim is retracted, kept with it. Required and never blank. |
El cuerpo es application/json.
esquema
reasonstring obligatorio — Why the claim is retracted, kept with it. Required and never blank.
Qué responde
Retracted; the claim stays addressable at its versions. A retracted annotation, attribution or relation stays retracted: no later import or match makes it current again. A retracted finding of the pool matcher (event:tag_address_mismatch) stays retracted too, but the block's next match writes a new one while the block's attributions still disagree. When the claim is a block's attribution and the block holds an open finding, the block is matched again in the same transaction, so no open finding cites the row; when the block's observation is not stored, its open finding is left for the block's next match.
| Campo | Tipo | Qué lleva |
|---|---|---|
retracted | string | The claim retracted, its id as the path gives it. |
reason | string | The reason given. |
esquema
retractedstring — The claim retracted, its id as the path gives it.reasonstring — The reason given.
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. |
| 403 | forbidden | forbidden: the caller is known but may not do this: a key without the scope or the tier the action needs, a session without an npub, a second factor or a recent sign-in, an operator without the role or switched off, or a source that does not allow it. The message says which. |
| 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. |
| 429 | quota_exceeded | quota_exceeded: the caller's tier ran out of requests for the minute or the day. Retry-After says when to try again; every rate-limited answer carries X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Reset and X-RateLimit-Tier. While the deployment runs in log-only mode the decision is logged instead and X-RateLimit-Policy: log-only is set. |
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 POST https://api.btcintel.io/v1/ops/claims/ann_33932/retract \
-H "Authorization: Bearer $BTCINTEL_KEY" \
-H 'Content-Type: application/json' \
-d '{"reason":"…"}' | jqThis route needs an operator credential. Set BTCINTEL_KEY to the ops bearer or a btci_ key with the ops:agent scope first: the snippet reads it from there and holds no key.