---
title: "Send eval results"
method: POST
path: "/console/v1/evals/send_results/{name}"
tags: ["Evals"]
---

# Send eval results

`POST /console/v1/evals/send_results/{name}`

## Request

- Base URL: `https://statsigapi.net`
- URL: `https://statsigapi.net/console/v1/evals/send_results/{name}`
- Auth: API key in header `STATSIG-API-KEY`

Create a run on an existing eval from results scored outside Statsig. Each result carries its input, output, optional expected value and categories, and one or more named scores from 0 to 1.

## Path parameters

- `name` string, required

## Request body

- EvalRunResultsDto
  - `name` string, nullable: The name of the eval run
  - `results` object[], required: Results with input, expected, output and score fields
    - `input` string, required
    - `expected` string
    - `output` string, required
    - `category` union
      - string[]
      - string
    - `rowID` string: Stable id of the case this result belongs to, so runs line up row by row. Defaults to the position in results.
    - `traceID` string: Trace that produced the output, when known.
    - `spanID` string
    - `scores` object, required
  - `parameters` object: Parameters
  - `summaryScores` object: Summary scores
  - `primaryGrader` string: Score name shown as the primary result. Defaults to the first score.
  - `criticalGraders` string[]: Score names treated as release gates: a mean of 0 fails the whole run.

## Response `200`

Send eval results

- object
  - `message` string, required: A simple string explaining the result of the operation.
  - `data` object, required: A single result.
    - `id` string, required
    - `name` string, required
    - `evalID` string, required
    - `status` 'running' | 'completed' | 'failed', required: running until the run finishes, then completed, or failed when the run recorded an error.
    - `createdTime` number, double, required
    - `finishTime` number, double, nullable, required
    - `runTime` number, double, nullable, required
    - `datasetID` string, nullable, required: Dataset the run scored. Null for runs posted from code through send_results.
    - `datasetItemCount` number, double, required
    - `graderIDs` string[], required
    - `primaryEvalGraderID` string, nullable, required
    - `parameters` object, nullable, required
    - `errorReason` string, nullable, required

## Other responses

- `403`: Forbidden. The request was valid, but the server is refusing action. You might not have the necessary permissions to access the resource.
- `404`: Not Found. The requested resource could not be found.

## Changes

- **2026-10-21** `df19329dc8c0`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/statsig/apis/console-api/changes/console/v1/evals/send_results/:name/post.md)

---

[API](https://skmtc.dev/statsig/apis/console-api.md) - [All operations](https://skmtc.dev/statsig/apis/console-api/llms.txt) - [OpenAPI document](https://skmtc.dev/statsig/apis/console-api/revisions/605b784f2a7d?raw)
