Skip to content

Attach an assessment to a stored trace

POST
/v1/agent-traces/{session_id}/assessments
curl --request POST \
--url https://api.aerandil.com/v1/agent-traces/example/assessments \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{ "kind": "feedback", "span_seq": 1, "value": "example" }'

Typed verdict on a session or one span of it: feedback (judgement of what happened) or expectation (what should have happened). Requires traces:write.

session_id
required
string
Media typeapplication/json
object
kind
required
string
Allowed values: feedback expectation
span_seq

Attach to one span instead of the whole session.

integer
value
required

Assessment attached

No trace stored for the session