Send feedback (the web sheet, agents, automatic failure reports)
POST /v1/feedback- quién puede llamarla
- Cualquiera
- sin clave y sin sesión
- cuán reciente
- Nunca en caché
- cada respuesta lleva la altura del índice y la del nodo
En esta página
Explicit feedback, never telemetry. Open to every tier within feedback_per_day of the tier ladder, counted per caller per UTC day (in memory): a refused call is quota_exceeded with Retry-After to midnight UTC. A report the web's server relays for a reader, carrying the X-Forwarded-For and CF-Connecting-IP it received and no cookie or credential, is counted against that reader's address, in the same count as the reports the reader sends with no key; from any caller outside the deployment's own network those headers are ignored. channel defaults to web; the MCP tool send_feedback forces mcp; auto is a failure report an agent or the MCP layer sends about a tool error. subject is canonicalised and linked to the subject row; claim_id names the claim the text is about. contact is optional and never an email: an npub (npub1… or 64 hex), a btci_ token, or {"token": true} to link the key sent as the bearer. Text is stored as given and rendered escaped everywhere; nothing is fetched or rendered as HTML. The web sheet renders only while /v1/status.features.feedback is true.
Parámetros
| Nombre | Dónde | Tipo | Obligatorio | Qué hace |
|---|---|---|---|---|
channel | cuerpo | string | opcional | Who is speaking: the web sheet, an agent over MCP, or an automatic failure report. |
subject | cuerpo | object | opcional | The subject the text is about, canonicalised on arrival. |
claim_id | cuerpo | string | opcional | The claim the text is about (ann_123, attr_45…). |
page | cuerpo | string | opcional | The web page or the agent context it came from. |
tool | cuerpo | string | opcional | The MCP tool involved, if any. |
app_version | cuerpo | string | opcional | The version of the app that sends it, as the app names it. |
text | cuerpo | string | obligatorio | Free text, stored as given. |
details | cuerpo | object | opcional | Structured context under 8 KB: error payloads, request ids. |
contact | cuerpo | uno de | opcional | Optional, never an email: an npub (npub1… or 64 hex), a btci_ token, or {npub, token} where token: true links the key sent as the bearer. It ties the report to that npub or key, and brings no reply. |
El cuerpo es application/json.
esquema FeedbackBody
channelstring — Who is speaking: the web sheet, an agent over MCP, or an automatic failure report. · uno de "web", "mcp", "auto" · por defecto "web"subjectobject — The subject the text is about, canonicalised on arrival.kindstring obligatorio — The kind of subject, which sets howkeyis read. · uno de "address", "script", "tx", "block", "outpoint", "pool", "descriptor", "pubkey"keystring obligatorio — The subject's key, canonicalised as its kind wants.
claim_idstring — The claim the text is about (ann_123,attr_45…).pagestring — The web page or the agent context it came from. · como mucho 200 caracterestoolstring — The MCP tool involved, if any. · como mucho 80 caracteresapp_versionstring — The version of the app that sends it, as the app names it. · como mucho 40 caracterestextstring obligatorio — Free text, stored as given. · al menos 1 caracteres · como mucho 4096 caracteresdetailsobject — Structured context under 8 KB: error payloads, request ids.contactuno de — Optional, never an email: an npub (npub1…or 64 hex), abtci_token, or{npub, token}wheretoken: truelinks the key sent as the bearer. It ties the report to that npub or key, and brings no reply.- string
- object
npubstring — The npub the report is tied to,npub1…or 64 hex.tokenuno de —truelinks the key the request is sent with; abtci_token links that key.- boolean
- string
Qué responde
201 · application/json
The report is stored. No reply comes through this channel.
Cabeceras: Cache-Control
| Campo | Tipo | Qué lleva |
|---|---|---|
id | integer | The entry's id. |
status | string | Always new: the entry waits for triage. |
esquema FeedbackReceipt
idinteger obligatorio — The entry's id.statusstring = "new" obligatorio — Alwaysnew: the entry waits for triage.
Errores
| Estado | Código | Cuándo |
|---|---|---|
| 400 | invalid_input | Malformed input (invalid_input). |
| 413 | too_large | Body over 16 KB (too_large). |
| 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. |
| 501 | not_configured | Feedback is not enabled on this deployment (not_configured). |
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/feedback \
-H 'Content-Type: application/json' \
-d '{"page":"/tx/71e4dae2…","subject":{"kind":"tx","key":"71e4dae29ed1bc9fe008bba7f3542fd5961b780c220ca8778100a7cb8bd4c81b"},"text":"the label looks wrong"}' | jq