POST
/
v5
/
evaluation-items
/
export
Export Evaluation Items
curl --request POST \
  --url https://api.egp.scale.com/v5/evaluation-items/export \
  --header 'Content-Type: application/json' \
  --header 'x-api-key: <api-key>' \
  --data '{
  "export_method": "direct",
  "export_format": "csv",
  "evaluation_id": "<string>",
  "include_archived": false
}'
{
  "filename": "<string>",
  "signed_url": "<string>"
}

Authorizations

x-api-key
string
header
required

Headers

x-selected-account-id
string | null

Body

application/json
evaluation_id
string
required

The ID of the evaluation to export items from.

export_method
enum<string>

The method for exporting evaluation items. signed_url returns a pre-signed URL, while direct returns the raw content.

Available options:
signed_url,
direct
export_format
enum<string>

The format of the exported evaluation items. json returns a single JSON array, while jsonl returns one JSON object per line.

Available options:
json,
jsonl,
csv
include_archived
boolean
default:false

If true, include archived evaluation items in the export.

Response

Successful Response

Response model for exporting evaluation items. This class represents the response when users export evaluation items. It contains either a signed URL to download the exported data from object storage, or the actual content bytes when direct download is used (in environments where object storage is not configured).

filename
string
required

The name of the exported file

signed_url
string

Pre-signed URL to download the file from object storage, if applicable

content
file

The raw file content as bytes, used when direct download is enabled