Skip to content
Readsmith

Rate an answer

POST/docs/_readsmith/api/ai/feedback

Records a reader's thumbs signal on a logged answer.

Request bodyapplication/jsonrequired
Feedback
idstringrequiredminLen 1

The logged answer's id.

valueintegerrequired

The signal: positive up, negative down.

Responses
200 OKRecorded.
object
okbooleanrequired
400 Bad request
503 Unavailable
Request
POST/docs/_readsmith/api/ai/feedback
cURL
curl 'https://readsmith.dev/docs/_readsmith/api/ai/feedback' \
  -X POST \
  -H 'Content-Type: application/json' \
  -d '{}'
POST/_readsmith/api/ai/feedback
Request
Authorization
curl 'https://readsmith.dev/docs/_readsmith/api/ai/feedback' \
  -X POST \
  -H 'Content-Type: application/json' \
  -d '{"id":"string","value":0}'
Response
Send a request to see the response.
Response
200 OK
{
  "ok": false
}
Was this page helpful?