Skip to main content

Download dataset

Endpoint: GET /datasets/{dataset_id}/download

Description

Exports the dataset’s rows as a CSV file. Columns match the dataset’s structure. The response includes Content-Disposition: attachment with a generated filename.

Parameters

  • Path: dataset_id — integer.

Error responses

  • 401 — Authentication failed.
  • 403 — Not allowed to download this dataset.
  • 404 — Dataset not found, or no records.
  • 500 — Server error.

Responses

  • 200text/csv body.

curl

curl -L -o export.csv \
"https://api.aegisevals.ai/api/v1/datasets/3/download" \
-H "Authorization: Bearer sk_00000000000000000000000000000000"