Skip to main content
POST
/
api
/
v2
/
projects
/
{project_id}
/
sessions
/
{session_id}
/
traces
/
{trace_id}
/
evaluations
Execute Evals for Trace
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
}
'
{}

Authorizations

Authorization
string
header
required

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

Path Parameters

project_id
string
required
session_id
string
required
trace_id
string
required

Body

application/json
eval_types
enum<string>
default:all
Available options:
all,
llm-as-judge,
code
criteria_ids
string<uuid>[] | null

Response

202 - application/json

EmptyResponse()

The response is of type EmptyResponse · object.