POST /v2/evals/runs/{run_id}/scores
Append one score by evaluating an existing run with a reference-free evaluator.
How to use
Evaluate an existing run with a reference-free evaluator. Requires evals.run and analytics.read. Each call appends a score, so an ambiguous retry can add another history entry.
Authentication and permissions
Required permissions: evals.run, analytics.read. Resource and owner access checks also apply.
Prepare request.json
Save the example body below as request.json for the curl sample. Replace example IDs, node keys, and dynamic configuration with values for your organization; these are illustrative, not pre-existing resources.
{
"evaluator_id": "00000000-0000-4000-8000-000000000001"
}Personal API key (sk_...) or supported user access JWT. See Authentication and authorization for endpoint restrictions and scopes. Use exactly one Authorization header.
Successful Response
Invalid request or pagination cursor
Missing or invalid credentials
Denied permission, project folder access, or API-key scope (meta.required_scope)
Resource not found in the caller's organization
Invalid evaluation contract, row shape, evaluator configuration, or filter combination
Client error returned in the public API envelope
curl --fail-with-body -sS \
"$STACKAI_BASE_URL/v2/evals/runs/${RUN_ID}/scores" \
-H "Authorization: Bearer $STACKAI_API_KEY" \
-H 'Content-Type: application/json' \
--data-binary @request.json{
"response_code": "text",
"meta": {
"ANY_ADDITIONAL_PROPERTY": "anything"
},
"data": {
"score_id": "123e4567-e89b-12d3-a456-426614174000",
"project_id": "text",
"experiment_row_id": "123e4567-e89b-12d3-a456-426614174000",
"run_id": "123e4567-e89b-12d3-a456-426614174000",
"project_version_id": 1,
"evaluator_id": "123e4567-e89b-12d3-a456-426614174000",
"score_kind": "numeric",
"score": 1,
"choice_label": "text",
"feedback": "text",
"status": "pending",
"error": "text",
"input_snapshot": {
"ANY_ADDITIONAL_PROPERTY": "anything"
},
"output_snapshot": {
"ANY_ADDITIONAL_PROPERTY": "anything"
},
"created_by": "123e4567-e89b-12d3-a456-426614174000",
"created_at": "2026-01-01T00:00:00.000Z",
"updated_at": "2026-01-01T00:00:00.000Z",
"evaluator_name": "text"
}
}Last updated
Was this helpful?

