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 '
{
"evaluation_id": "<string>",
"export_method": "direct",
"export_format": "csv",
"include_archived": false
}
'import requests
url = "https://api.egp.scale.com/v5/evaluation-items/export"
payload = {
"evaluation_id": "<string>",
"export_method": "direct",
"export_format": "csv",
"include_archived": False
}
headers = {
"x-api-key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'x-api-key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
evaluation_id: '<string>',
export_method: 'direct',
export_format: 'csv',
include_archived: false
})
};
fetch('https://api.egp.scale.com/v5/evaluation-items/export', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.egp.scale.com/v5/evaluation-items/export",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'evaluation_id' => '<string>',
'export_method' => 'direct',
'export_format' => 'csv',
'include_archived' => false
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"x-api-key: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.egp.scale.com/v5/evaluation-items/export"
payload := strings.NewReader("{\n \"evaluation_id\": \"<string>\",\n \"export_method\": \"direct\",\n \"export_format\": \"csv\",\n \"include_archived\": false\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("x-api-key", "<api-key>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.egp.scale.com/v5/evaluation-items/export")
.header("x-api-key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"evaluation_id\": \"<string>\",\n \"export_method\": \"direct\",\n \"export_format\": \"csv\",\n \"include_archived\": false\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.egp.scale.com/v5/evaluation-items/export")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["x-api-key"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"evaluation_id\": \"<string>\",\n \"export_method\": \"direct\",\n \"export_format\": \"csv\",\n \"include_archived\": false\n}"
response = http.request(request)
puts response.read_body{
"filename": "<string>",
"signed_url": "<string>",
"content": "<string>"
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>",
"input": "<unknown>",
"ctx": {}
}
]
}Export evaluation items to a file
Export all evaluation items for a single evaluation as a downloadable file.
The evaluation is specified by evaluation_id in the request body. export_format
selects CSV, JSON, or JSONL; for CSV the per-item data and files fields are
flattened into individual columns and metric-like result columns are expanded.
export_method controls delivery: direct returns the file contents inline in the
response, while signed_url uploads the file to object storage and returns a
pre-signed download URL. Requesting signed_url in an environment where object
storage is not configured fails with a 501, so use direct there instead. Set
include_archived=true to include archived items in the export. This endpoint reads
items only and does not modify the evaluation.
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 '
{
"evaluation_id": "<string>",
"export_method": "direct",
"export_format": "csv",
"include_archived": false
}
'import requests
url = "https://api.egp.scale.com/v5/evaluation-items/export"
payload = {
"evaluation_id": "<string>",
"export_method": "direct",
"export_format": "csv",
"include_archived": False
}
headers = {
"x-api-key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'x-api-key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
evaluation_id: '<string>',
export_method: 'direct',
export_format: 'csv',
include_archived: false
})
};
fetch('https://api.egp.scale.com/v5/evaluation-items/export', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.egp.scale.com/v5/evaluation-items/export",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'evaluation_id' => '<string>',
'export_method' => 'direct',
'export_format' => 'csv',
'include_archived' => false
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"x-api-key: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.egp.scale.com/v5/evaluation-items/export"
payload := strings.NewReader("{\n \"evaluation_id\": \"<string>\",\n \"export_method\": \"direct\",\n \"export_format\": \"csv\",\n \"include_archived\": false\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("x-api-key", "<api-key>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.egp.scale.com/v5/evaluation-items/export")
.header("x-api-key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"evaluation_id\": \"<string>\",\n \"export_method\": \"direct\",\n \"export_format\": \"csv\",\n \"include_archived\": false\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.egp.scale.com/v5/evaluation-items/export")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["x-api-key"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"evaluation_id\": \"<string>\",\n \"export_method\": \"direct\",\n \"export_format\": \"csv\",\n \"include_archived\": false\n}"
response = http.request(request)
puts response.read_body{
"filename": "<string>",
"signed_url": "<string>",
"content": "<string>"
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>",
"input": "<unknown>",
"ctx": {}
}
]
}Body
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).