Report whether one request worked
Records a thumbs up or down on one of your own requests, keyed by the request id every response carries.
Requires scope: none (any valid key)
Records a thumbs up or down on one of your own requests, keyed by the request id every response
carries. Agents should send one report per task, with intent, when a request failed or the result
was wrong. Nothing is charged for it.
A new down report on a request that charged credits refunds those credits, in whole credits
rounded down, to the organization's balance, within a daily cap per organization (UTC day):
25 credits and 10 reports by default. The response says how much was refunded
(credits_refunded) and whether a cap held a refund back (refund_cap_reached). A repeat, an
up rating, a limit-refused request and another project's request are never refunded.
Reports are kept with a copy of the request's log fields, so they outlive the request log. The console groups repeat failures by error code, engine and host.
One report per request and source: a second report on the same request answers 200 with
already_submitted: true. A request that failed with a rate or quota limit (ERR::LIMIT::*) is
refused with 409, since the fault is the limit, not the target.
The route accepts any API key and needs no scope. Free text is stored after API keys and bearer tokens are removed.
Authorization
bearerAuth Authorization: Bearer <key>. Read the key from the SPICRAWL_API_KEY environment
variable; never hard-code or log it. spicrawl_test_… keys can never spend live
credits. Scopes: scrape, batch, sessions (granted by default), browser
and read (granted deliberately), and partner (only on a partner account's key).
A missing scope is 403 ERR::AUTH::INSUFFICIENT_SCOPE naming the scope.
In: header
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
application/json
application/problem+json
application/problem+json
application/problem+json
application/problem+json
application/problem+json
application/problem+json
curl -X POST "https://example.com/v1/feedback" \ -H "Content-Type: application/json" \ -d '{ "request_id": "01M0FK1EP2E7FBMWAR7W10SMXW", "rating": "down", "kind": "broken", "impact": "blocked", "intent": "Get the price table from the product page", "comment": "Page rendered empty; content loads after a cookie banner", "agent": "claude-code/2.1" }'{ "feedback_id": "80f6c85b-11c0-4096-8196-5d1b150f0db2", "already_submitted": true, "credits_refunded": 0, "refund_cap_reached": true}