btcintel

Resolve a dispute (human curator or admin)

POST /v1/ops/disputes/{id}/resolve
who may call it
An operator
a human: admin or curator
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

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.

Parameters

NameWhereTypeRequiredWhat it does
idpathintegerrequiredThe dispute's id.
outcomebodystringrequiredThe decision: the dispute is upheld, rejected or partially upheld.
notebodystringoptionalA note for the public record, at most 4,096 characters.
actionbodyobjectoptionalWhat else to do to the claim: one of retract, expire or new_version. Without it the claim stays as it is.

The body is application/json.

schema ResolveInput
  • outcome string required — The decision: the dispute is upheld, rejected or partially upheld. · one of "upheld", "rejected", "partially_upheld"
  • note string — A note for the public record, at most 4,096 characters. · at most 4096 characters
  • 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 required — 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) required — 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.

What it answers

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

FieldTypeWhat it carries
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 or nullThe operator's decision: upheld, rejected or partially upheld. Null while the dispute is open.
resolved_atstring or nullWhen it was resolved. Null while it is open.
notestring or 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 or 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.
schema OpsDispute
  • id integer required — The dispute's id.
  • opened_at string (date-time) required — When it was opened.
  • reason string required — The reason the opener gave. · one of "wrong_subject", "wrong_entity", "outdated", "source_misread", "other"
  • status string required — Where it stands: open until an operator resolves it, then resolved. · one of "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. · one of "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 of 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 required — The disputed claim's id.
  • opened_by string required — 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 required — Whether the opener chose to show the text and the evidence in the public record.
  • resolved_by string | null required — 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. · one of "none", "retract", "expire", "new_version"
  • new_version integer — The version the correction recorded on the claim.

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

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