Create a score
Create an evaluation score. Prefer the log-scoped route POST /api/logs/{log_id}/scores/ when creating a score for a known log.
Headers
Bearer token. Use Bearer YOUR_API_KEY for API key auth or Bearer <JWT> for dashboard auth.
Request
Evaluator ID. Provide either evaluator_id or evaluator_slug.
Custom evaluator slug. Provide either evaluator_id or evaluator_slug.
Log/span ID. Required for general score creation when not using the log-scoped route.
Optional score producer for general score creation. Log-scoped routes derive this from the authenticated user.
Numeric score value. Use for numerical and percentage evaluators.
Text score value. Use for text and legacy comment evaluators.
Boolean score value. Use for boolean evaluators.
Categorical score values. Use for single_select, multi_select, and legacy categorical evaluators.
JSON score value encoded as a string. Use for json evaluators.
Response
Numeric score value. Use for numerical and percentage evaluators.
Text score value. Use for text and legacy comment evaluators.
Boolean score value. Use for boolean evaluators.
Categorical score values. Use for single_select, multi_select, and legacy categorical evaluators.
JSON score value encoded as a string. Use for json evaluators.
Human-readable evaluator name, when available.
Who or what produced the score. For log-scoped score writes, the backend derives this from the authenticated user.
Associated log/span ID.