btcintel

Triage one entry (ops)

PATCH /v1/ops/feedback/{id}
who may call it
An operator
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

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.

Parameters

NameWhereTypeRequiredWhat it does
idpathintegerrequiredThe entry's id.
statusbodystringoptionalThe entry's new state.
triaged_bybodystringoptionalDefaults to the operator making the call.
linked_change_urlbodystringoptionalThe PR or changelog entry that answered the feedback.

The body is application/json.

schema FeedbackPatch
  • status string — The entry's new state. · one of "new", "triaged", "linked", "closed", "rejected"
  • triaged_by string — Defaults to the operator making the call. · at most 80 characters
  • linked_change_url string (uri) — The PR or changelog entry that answered the feedback. · at most 400 characters

What it answers

The entry after the change.

FieldTypeWhat it carries
idintegerThe entry's id.
atstringWhen it arrived.
channelstringHow it came: the web sheet, an agent over MCP, or an automatic failure report.
tierstring or nullThe caller's tier when it arrived.
subjectobject or nullThe subject the text is about. Null when it names none.
pagestring or nullThe web page or the agent context it came from. Null when it gave none.
toolstring or nullThe MCP tool involved. Null when it names none.
app_versionstring or 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 or 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 or nullWho triaged it last: the operator who changed it, unless the change named someone. Null until triaged.
triaged_atstring or nullWhen it was last triaged: every change sets it. Null until the first.
linked_change_urlstring or nullThe pull request or changelog entry that answered it. Null until one is linked.
schema FeedbackEntry
  • id integer required — The entry's id.
  • at string (date-time) required — When it arrived.
  • channel string required — How it came: the web sheet, an agent over MCP, or an automatic failure report. · one of "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 required — The text, as given.
  • details object required — 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 required — Where it stands in triage. · one of "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.

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