btcintel

Resolve a dispute (human curator or admin)

POST /v1/ops/disputes/{id}/resolve
quién puede llamarla
Un operador
una persona: admin o curator
qué cuesta
1 petición de la cuota
niveles y claves
cuán reciente
Nunca en caché
cada respuesta lleva la altura del índice y la del nodo
Herramienta MCP
Ninguna
En esta página

The outcome and the resolver's public note, plus an optional action on the Curated side, run under the operator as actor and audited: retract (any claim kind, with a reason), expire (annotations, attributions and relations, with valid_to) or new_version (a correction of an annotation from a ClaimInput patch — label, category, abuse, concepts, role, evidence — recorded as a new version of the same claim with a new content hash; the source, the subject and the confidence class stay). An agent operator cannot resolve: it proposes a resolution as a draft.

Parámetros

NombreDóndeTipoObligatorioQué hace
idrutaintegerobligatorioThe dispute's id.
outcomecuerpostringobligatorioThe decision: the dispute is upheld, rejected or partially upheld.
notecuerpostringopcionalA note for the public record, at most 4,096 characters.
actioncuerpoobjectopcionalWhat else to do to the claim: one of retract, expire or new_version. Without it the claim stays as it is.

El cuerpo es application/json.

esquema ResolveInput
  • outcome string obligatorio — The decision: the dispute is upheld, rejected or partially upheld. · uno de "upheld", "rejected", "partially_upheld"
  • note string — A note for the public record, at most 4,096 characters. · como mucho 4096 caracteres
  • action object — What else to do to the claim: one of retract, expire or new_version. Without it the claim stays as it is.
    • retract object — Retract the claim, with a reason, as POST /v1/ops/claims/{claim_id}/retract does.
      • reason string obligatorio — Why it is retracted. Required and never blank.
    • expire object — End the claim at a time. An event is retracted, never expired. A block's attribution so ended stays ended, since the pool matcher writes again only a row it ended itself; a block that holds an open finding is matched again in the same transaction, or, when its observation is not stored, at its next match.
      • valid_to string (date-time) obligatorio — When the claim stops holding, RFC 3339.
    • new_version object — A ClaimInput patch (label, category, abuse, concepts, role, evidence, first_reported_at); annotations only; the subject and the source never change.

Qué responde

Resolved; the action's effect is on the claim.

CampoTipoQué lleva
idintegerThe dispute's id.
opened_atstringWhen it was opened.
reasonstringThe reason the opener gave.
statusstringWhere it stands: open until an operator resolves it, then resolved.
claim_versionintegerThe claim's version in force when the dispute was opened; 0 when it had none.
outcomestring o nullThe operator's decision: upheld, rejected or partially upheld. Null while the dispute is open.
resolved_atstring o nullWhen it was resolved. Null while it is open.
notestring o nullThe resolver's public note.
textstringThe opener's words, as given. The public record carries them only when the opener chose public; an operator's read always does.
evidencearrayThe opener's evidence, as given. The public record carries it only when the opener chose public; an operator's read always does.
event_idstringThe Community note that carries the dispute, 64 hex. Only when the opener chose public and cited one.
claim_idstringThe disputed claim's id.
opened_bystringWho opened it: npub:<hex> for a person's key, account:<id> for an account, key:<id> for an API key, and operator:owner for the operator's token and for a caller with no key or session that reaches the API directly on the deployment's own network, never through a proxy. Operators only.
publicbooleanWhether the opener chose to show the text and the evidence in the public record.
resolved_bystring o nullThe operator who resolved it. Null while it is open.
actionstringWhat the resolution did to the claim: none, a retraction, an expiry or a new version. Only in the answer of a resolution.
new_versionintegerThe version the correction recorded on the claim.
esquema OpsDispute
  • id integer obligatorio — The dispute's id.
  • opened_at string (date-time) obligatorio — When it was opened.
  • reason string obligatorio — The reason the opener gave. · uno de "wrong_subject", "wrong_entity", "outdated", "source_misread", "other"
  • status string obligatorio — Where it stands: open until an operator resolves it, then resolved. · uno de "open", "resolved", "withdrawn"
  • claim_version integer — The claim's version in force when the dispute was opened; 0 when it had none.
  • outcome string | null — The operator's decision: upheld, rejected or partially upheld. Null while the dispute is open. · uno de "upheld", "rejected", "partially_upheld", null
  • resolved_at string | null (date-time) — When it was resolved. Null while it is open.
  • note string | null — The resolver's public note.
  • text string — The opener's words, as given. The public record carries them only when the opener chose public; an operator's read always does.
  • evidence array de object — The opener's evidence, as given. The public record carries it only when the opener chose public; an operator's read always does.
  • event_id string — The Community note that carries the dispute, 64 hex. Only when the opener chose public and cited one.
  • claim_id string obligatorio — The disputed claim's id.
  • opened_by string obligatorio — Who opened it: npub:<hex> for a person's key, account:<id> for an account, key:<id> for an API key, and operator:owner for the operator's token and for a caller with no key or session that reaches the API directly on the deployment's own network, never through a proxy. Operators only.
  • public boolean obligatorio — Whether the opener chose to show the text and the evidence in the public record.
  • resolved_by string | null obligatorio — The operator who resolved it. Null while it is open.
  • action string — What the resolution did to the claim: none, a retraction, an expiry or a new version. Only in the answer of a resolution. · uno de "none", "retract", "expire", "new_version"
  • new_version integer — The version the correction recorded on the claim.

Errores

EstadoCódigoCuándo
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.
403forbiddenforbidden: 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.
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.
409conflictconflict: the state refuses the change, for example a dispute of this caller's already open, a dispute or a claim no longer open, an address that belongs to another account, or a thing done already. The message says which.
422invalid_inputinvalid_input: the request is malformed: bad hex, an address of another network, a bad vout, or a value out of its range. The message says which.
429quota_exceededquota_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/disputes/1/resolve \
  -H "Authorization: Bearer $BTCINTEL_KEY" \
  -H 'Content-Type: application/json' \
  -d '{"outcome":"upheld"}' | jq

This 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.