curl --request POST \
--url https://api.example.com/api/v2/projects/{project_id}/sessions/{session_id}/traces/{trace_id}/evaluations \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"eval_types": "all",
"criteria_ids": null
}
'{}Queue evaluations to run against a specific trace. Evaluations are executed asynchronously.
Use the eval_types field to control which evaluations run:
all (default): Run both LLM-as-judge and code evaluationsllm-as-judge: Run only LLM-based evaluationscode: Run only code-based evaluationsOptionally pass criteria_ids to run specific evaluation criteria. When provided, those
criteria are executed regardless of whether they have already been evaluated. When omitted,
only criteria that have not yet been evaluated for this trace will run.
curl --request POST \
--url https://api.example.com/api/v2/projects/{project_id}/sessions/{session_id}/traces/{trace_id}/evaluations \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"eval_types": "all",
"criteria_ids": null
}
'{}Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
EmptyResponse()
The response is of type EmptyResponse · object.