Skip to main content
POST
cURL

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json
request_id
string
required

X-Request-ID of a /v1/decide call made by the same project.

question_id
string
required

Key of the answer being reviewed (the question id from the request). Always required, also for single-question requests, so every feedback row names exactly one answer.

correct
boolean
required

Whether the decision was right.

expected
object

The correct answer, typed like the question: {"type": "choice", "value": "billing"}, {"type": "noul", "value": true} or {"type": "score", "value": 2}.

expected_decision
string | null

Choice only, kept for compatibility: the option id that should have been chosen (≤ 200 characters). Same as expected: {"type": "choice", "value": ...}; if both are sent they must agree.

metadata
object | null

Optional JSON object (≤ 8 KiB serialized). Do not put personal data here.

Response

Feedback stored

id
string
required
object
string
required

Always feedback.

request_id
string
required
question_id
string
required
created_at
string<date-time>
required