For AI agents: a documentation index is available at /llms.txt. Append .md to any page URL for markdown, or send Accept: text/markdown.
Send eval results
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…
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.
https://statsigapi.net/console/v1/evals/send_results/{name}Authorizations
STATSIG-API-KEYstringrequiredapiKey (header)
Path parameters
namestringrequiredname
Body
application/jsonnamestringThe name of the eval run
My Eval Runnullableresultsobject[]requiredResults with input, expected, output and score fields
[{"input":"Foo","expected":"Hi Foo","output":"Hi Foo","category":["greeting"],"scores":{"correctness":{"score":1,"metadata":{"justification":"friendly"}},"tone":{"score":1}}}]Show child attributes
inputstringrequiredexpectedstringoutputstringrequiredcategoryoneOfstring[]stringrowIDstringStable id of the case this result belongs to, so runs line up row by row. Defaults to the position in results.
traceIDstringTrace that produced the output, when known.
spanIDstringscoresobjectrequiredparametersobjectParameters
{"parameter_name":"parameter_value"}summaryScoresobjectSummary scores
{"summary_score_name":100}primaryGraderstringScore name shown as the primary result. Defaults to the first score.
criticalGradersstring[]Score names treated as release gates: a mean of 0 fails the whole run.
Response
application/jsonmessagestringrequiredA simple string explaining the result of the operation.
dataobjectrequiredShow child attributes
idstringrequirednamestringrequiredevalIDstringrequiredstatusstringrequiredrunning until the run finishes, then completed, or failed when the run recorded an error.
runningcompletedfailedcreatedTimenumberrequiredformat: doublefinishTimenumberrequiredformat: doublenullablerunTimenumberrequiredformat: doublenullabledatasetIDstringrequiredDataset the run scored. Null for runs posted from code through send_results.
nullabledatasetItemCountnumberrequiredformat: doublegraderIDsstring[]requiredprimaryEvalGraderIDstringrequirednullableparametersobjectrequirednullableerrorReasonstringrequirednullablestatusintegerrequired403messagestringrequiredstatusintegerrequired404messagestringrequiredWas this helpful?