Download run
Endpoint: GET /runs/{run_id}/download
Description Returns a CSV file of evaluation rows for the run. Column headers are dynamic: only columns that have at least one non-empty value are included.
Possible columns (in this order when present):
| Column | Description |
|---|---|
alias | Run alias, when set |
prompt | Record prompt |
input | Record input |
context | Record context |
output | Record output |
golden_answer | Record golden answer |
explanation | Evaluation explanation |
model_slug | Model used for this evaluation |
is_success | Whether the evaluation completed successfully |
evaluation_cost_raw | Raw evaluation cost |
evaluation_cost | Normalized evaluation cost |
is_gte_threshold | Whether the score met the threshold |
threshold | Threshold for this evaluation |
result | Evaluation score |
metric_id | Internal metric id |
eval_metadata | Metric-specific JSON metadata |
shortname | Metric shortname (for example ans_corr) |
name | Metric display name |
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)
shortname,result,threshold,is_gte_threshold,model_slug,prompt,output,golden_answer
ans_corr,100,70,true,gpt-4o,"What is 2+2?","4","4"
ans_corr,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"