Evaluate stored traces
Request evaluation of specific stored traces with current production judges, optionally restricted to named judges. Evaluation is asynchronous and costs JUs. Each judge type is checked against its own usage limit; the response lists admitted and skipped judges per trace and any unknown trace IDs or judge names.
/v1/projects/{projectId}/traces/evaluateAuthorizationPersonal API key · headerrequiredYour personal API key from Settings > Personal API Keys, sent as Bearer <key>.
X-Organization-IdOrganization ID · headerrequiredThe organization to act in. Copy it with Copy organization ID in the organization menu or the settings sidebar.
projectIdstringrequiredapplication/jsontrace_idsstring[]requiredTrace IDs to evaluate
judge_namesstring[]Restrict evaluation to these judge names
Response for status 200
enqueuedbooleanrequiredTrue when at least one judge was queued for at least one trace
trace_countnumberrequiredNumber of trace IDs in the request
tracesobject[]requiredShow propertiesHide properties
objecttrace_idstringrequiredadmittedstring[]requiredJudge names queued for this trace
skippedobject[]requiredJudges not queued for this trace, each with the reason
Show propertiesHide properties
objectjudgestringrequiredreasonstringrequiredon_demand_not_requested: on-demand judge, name it in judge_names to run it. sampled_out: excluded by the sampling rate. trigger_not_matched: the trace does not meet the run conditions, or the environment filter when the judge has both. environment_not_matched: the trace environment is not in the environment filter of a judge with no run conditions. no_session: session judge on a trace with no session. session_already_claimed: this session was already evaluated by the judge. usage_limited: the judge type is over the organization usage limit. rate_limited: the evaluation rate limit was reached.
on_demand_not_requestedsampled_outtrigger_not_matchedenvironment_not_matchedno_sessionsession_already_claimedusage_limitedrate_limitedunknown_trace_idsstring[]requiredRequested trace IDs with no stored root span in this project; they were not evaluated
unknown_judge_namesstring[]requiredRequested judge names that match no production judge in this project