Download run
Endpoint: GET /runs/{run_id}/download
Description Returns a CSV file of evaluation rows for the run.
Parameters
- Path:
run_id— integer run id.
Error responses
401— Authentication failed.404— Run not found, or no evaluation rows for that run (CSV would be empty).500— Error building the CSV.
Responses
200—Content-Type: text/csv, file name likerun_<run_id>_report.csv.
Example response (200)
record_index,metric,result,threshold,is_gte_threshold,model_slug,prompt,output,golden_answer
0,answer_correctness,100,70,true,gpt-4o,"What is 2+2?","4","4"
1,answer_correctness,0,70,false,gpt-4o,"Capital of Germany?","Munich","Berlin"
curl
curl -o "run_1_report.csv" \
"https://api.aegisevals.ai/api/v1/runs/1/download" \
-H "Authorization: Bearer sk_00000000000000000000000000000000"