curl --request GET \
--url https://api.nugen.in/api/v3/benchmarks/{benchmark_id}/data \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.nugen.in/api/v3/benchmarks/{benchmark_id}/data"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.nugen.in/api/v3/benchmarks/{benchmark_id}/data', 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.nugen.in/api/v3/benchmarks/{benchmark_id}/data",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.nugen.in/api/v3/benchmarks/{benchmark_id}/data"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.nugen.in/api/v3/benchmarks/{benchmark_id}/data")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.nugen.in/api/v3/benchmarks/{benchmark_id}/data")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"benchmark_id": "benchmark_01k4x9m2p7q3r6a1",
"s3_key": "<string>",
"s3_url": "https://s3.amazonaws.com/benchmark_01k4x9m2p7q3r6a1.zip",
"document_ids": [
"document_01k4x9m2p7q3r5s8",
"document_01k4x9m2p7q3r5s9"
],
"questions": [
{
"answer": "Our return policy allows returns within 30 days of purchase.",
"question": "What is the return policy?",
"question_num": 1
}
],
"metadata": {},
"error": "<string>"
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}Get Generated Benchmark Data
Retrieve complete benchmark data with all questions and answers.
This endpoint returns the full benchmark dataset including all questions, expected answers, and metadata. Use this to access the complete benchmark content for evaluation or review.
Path Parameters:
benchmark_id: Unique benchmark identifier
Returns:
benchmark_id: Benchmark identifierdocument_ids: List of document IDs (single-element array for uploaded benchmarks, multiple elements for generated benchmarks)questions: Full list of benchmark questions with answers
Identity, status, and timestamps are served by GET /{benchmark_id}.
Raises:
404: If benchmark not found or user doesn’t have access
Example Request:
GET /api/v3/benchmarks/benchmark_01k4x9m2p7q3r6a1/data
Headers: {"Authorization": "Bearer <api_key>"}
Example Response:
{
"benchmark_id": "benchmark_01k4x9m2p7q3r6a1",
"document_ids": ["document_01k4x9m2p7q3r5se", "document_01k4x9m2p7q3r5sf"],
"questions": [
{
"question_num": 1,
"question": "What is the main purpose of the product?",
"answer": "To provide real-time collaboration tools for distributed teams."
},
{
"question_num": 2,
"question": "How does the authentication system work?",
"answer": "Uses OAuth 2.0 with JWT tokens for secure authentication."
}
]
}
Notes:
- Only returns benchmarks owned by the user
- Contains complete question and answer data for evaluation
- Use this endpoint when you need the full benchmark content (not just metadata)
curl --request GET \
--url https://api.nugen.in/api/v3/benchmarks/{benchmark_id}/data \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.nugen.in/api/v3/benchmarks/{benchmark_id}/data"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.nugen.in/api/v3/benchmarks/{benchmark_id}/data', 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.nugen.in/api/v3/benchmarks/{benchmark_id}/data",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.nugen.in/api/v3/benchmarks/{benchmark_id}/data"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.nugen.in/api/v3/benchmarks/{benchmark_id}/data")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.nugen.in/api/v3/benchmarks/{benchmark_id}/data")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"benchmark_id": "benchmark_01k4x9m2p7q3r6a1",
"s3_key": "<string>",
"s3_url": "https://s3.amazonaws.com/benchmark_01k4x9m2p7q3r6a1.zip",
"document_ids": [
"document_01k4x9m2p7q3r5s8",
"document_01k4x9m2p7q3r5s9"
],
"questions": [
{
"answer": "Our return policy allows returns within 30 days of purchase.",
"question": "What is the return policy?",
"question_num": 1
}
],
"metadata": {},
"error": "<string>"
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Path Parameters
Response
Returns the benchmark's questions and answers. Identity, status, and timestamps are served by GET /{benchmark_id}.
The benchmark's question payload. Identity, status and timestamps are served by GET /{benchmark_id}.
Benchmark ID
"benchmark_01k4x9m2p7q3r6a1"
S3 storage key
S3 download URL
"https://s3.amazonaws.com/benchmark_01k4x9m2p7q3r6a1.zip"
Document IDs used for generation
[
"document_01k4x9m2p7q3r5s8",
"document_01k4x9m2p7q3r5s9"
]
Complete list of benchmark questions
Show child attributes
Show child attributes
[
{
"answer": "Our return policy allows returns within 30 days of purchase.",
"question": "What is the return policy?",
"question_num": 1
}
]
Additional metadata
Error message if data fetch failed
Was this page helpful?