btcintel

Triage one entry (ops)

PATCH /v1/ops/feedback/{id}
quién puede llamarla
Un operador
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

Set the status, who triaged it (the operator by default) and the PR or changelog entry that answered it. Every patch stamps triaged_at and is audited.

Parámetros

NombreDóndeTipoObligatorioQué hace
idrutaintegerobligatorioThe entry's id.
statuscuerpostringopcionalThe entry's new state.
triaged_bycuerpostringopcionalDefaults to the operator making the call.
linked_change_urlcuerpostringopcionalThe PR or changelog entry that answered the feedback.

El cuerpo es application/json.

esquema FeedbackPatch
  • status string — The entry's new state. · uno de "new", "triaged", "linked", "closed", "rejected"
  • triaged_by string — Defaults to the operator making the call. · como mucho 80 caracteres
  • linked_change_url string (uri) — The PR or changelog entry that answered the feedback. · como mucho 400 caracteres

Qué responde

The entry after the change.

CampoTipoQué lleva
idintegerThe entry's id.
atstringWhen it arrived.
channelstringHow it came: the web sheet, an agent over MCP, or an automatic failure report.
tierstring o nullThe caller's tier when it arrived.
subjectobject o nullThe subject the text is about. Null when it names none.
pagestring o nullThe web page or the agent context it came from. Null when it gave none.
toolstring o nullThe MCP tool involved. Null when it names none.
app_versionstring o nullThe version of the app that sent it. Null when it gave none.
textstringThe text, as given.
detailsobjectThe structured context sent with it; a claim_id sent with the entry is kept here. {} when there is none.
contactobject o nullThe npub, the key or both that the requester tied the report to. Null when there is none.
statusstringWhere it stands in triage.
triaged_bystring o nullWho triaged it last: the operator who changed it, unless the change named someone. Null until triaged.
triaged_atstring o nullWhen it was last triaged: every change sets it. Null until the first.
linked_change_urlstring o nullThe pull request or changelog entry that answered it. Null until one is linked.
esquema FeedbackEntry
  • id integer obligatorio — The entry's id.
  • at string (date-time) obligatorio — When it arrived.
  • channel string obligatorio — How it came: the web sheet, an agent over MCP, or an automatic failure report. · uno de "web", "mcp", "auto"
  • tier string | null — The caller's tier when it arrived.
  • subject object | null — The subject the text is about. Null when it names none.
    • kind string — The subject's kind.
    • key string — The subject's canonical key.
  • page string | null — The web page or the agent context it came from. Null when it gave none.
  • tool string | null — The MCP tool involved. Null when it names none.
  • app_version string | null — The version of the app that sent it. Null when it gave none.
  • text string obligatorio — The text, as given.
  • details object obligatorio — The structured context sent with it; a claim_id sent with the entry is kept here. {} when there is none.
  • contact object | null — The npub, the key or both that the requester tied the report to. Null when there is none.
    • npub string — 64 hex.
    • key_id integer — The id of the key the report is tied to. Absent when the contact names none.
  • status string obligatorio — Where it stands in triage. · uno de "new", "triaged", "linked", "closed", "rejected"
  • triaged_by string | null — Who triaged it last: the operator who changed it, unless the change named someone. Null until triaged.
  • triaged_at string | null (date-time) — When it was last triaged: every change sets it. Null until the first.
  • linked_change_url string | null — The pull request or changelog entry that answered it. Null until one is linked.

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.
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 PATCH https://api.btcintel.io/v1/ops/feedback/1 \
  -H "Authorization: Bearer $BTCINTEL_KEY" \
  -H 'Content-Type: application/json' \
  -d '{"status":"linked","linked_change_url":"https://github.com/satsboard-io/btcintel-api/pull/50"}' | 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.