Skip to main content
POST
/
v1
/
feedback
Submit user feedback on a trace
curl --request POST \
  --url https://api.trulayer.ai/v1/feedback \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "trace_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "label": "good",
  "score": 123,
  "comment": "<string>",
  "metadata": {}
}
'
{
  "error": "<string>"
}

Authorizations

Authorization
string
header
required

SDK API key (tl_...) or Clerk session JWT

Body

application/json
trace_id
string<uuid>
required
label
enum<string>
required
Available options:
good,
bad,
neutral
score
number | null
comment
string | null
metadata
object

Response

Feedback recorded