Retrieve a log score
Retrieve a specific score for a log/span.
Path parameters
log_id
Log/span unique ID to manage scores for.
score_id
Score ID returned as id in score responses.
Headers
Authorization
Bearer token. Use Bearer YOUR_API_KEY for API key auth or Bearer <JWT> for dashboard auth.
Response
Score details.
id
Score ID.
created_at
When the score was created.
type
Evaluator execution type. Legacy rows may contain legacy type values.
environment
Environment associated with the score.
numerical_value
Numeric score value. Use for numerical and percentage evaluators.
string_value
Text score value. Use for text and legacy comment evaluators.
boolean_value
Boolean score value. Use for boolean evaluators.
categorical_value
Categorical score values. Use for single_select, multi_select, and legacy categorical evaluators.
json_value
JSON score value encoded as a string. Use for json evaluators.
is_passed
Whether the score passes the evaluator conditions.
cost
Evaluation cost in USD, when available.
evaluator_id
Evaluator ID associated with the score.
evaluator_slug
Evaluator slug associated with the score.
evaluator_name
Human-readable evaluator name, when available.
scorer
Who or what produced the score. For log-scoped score writes, the backend derives this from the authenticated user.
log_id
Associated log/span ID.
prompt_id
Associated prompt ID, when available.
prompt_version_number
Associated prompt version number, when available.
dataset_id
Associated dataset ID, when available.
automation_id
Associated automation ID, when available.
status
Evaluation status, when available.
error_message
Evaluation error message, when available.
Errors
401
Unauthorized Error
404
Not Found Error