Get Generated Benchmark
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",
"document_ids": [
"document_01k4x9m2p7q3r5s8",
"document_01k4x9m2p7q3r5s9"
],
"samples": [
{
"instruction": "Summarise the indemnity cap.",
"response": "Liability is capped at twelve months of fees paid.",
"sample_num": 1
}
],
"metadata": {},
"error": "<string>"
}{
"detail": "Model not found"
}{
"detail": "Model not found"
}{
"detail": "Model not found"
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}Benchmarks
Get Generated Benchmark
Retrieve complete benchmark data with all samples.
This endpoint returns the full benchmark dataset including all samples, their expected responses, 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: Thedocument_idof each knowledge item used (single-element array for uploaded benchmarks, multiple elements for generated benchmarks)samples: Full list of benchmark samples with their responses
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"],
"samples": [
{
"sample_num": 1,
"instruction": "What is the main purpose of the product?",
"response": "To provide real-time collaboration tools for distributed teams."
},
{
"sample_num": 2,
"instruction": "How does the authentication system work?",
"response": "Uses OAuth 2.0 with JWT tokens for secure authentication."
}
]
}
Notes:
- Only returns benchmarks owned by the user
- Contains complete sample data for evaluation
- Use this endpoint when you need the full benchmark content (not just metadata)
GET
/
api
/
v3
/
benchmarks
/
{benchmark_id}
/
data
Get Generated Benchmark
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",
"document_ids": [
"document_01k4x9m2p7q3r5s8",
"document_01k4x9m2p7q3r5s9"
],
"samples": [
{
"instruction": "Summarise the indemnity cap.",
"response": "Liability is capped at twelve months of fees paid.",
"sample_num": 1
}
],
"metadata": {},
"error": "<string>"
}{
"detail": "Model not found"
}{
"detail": "Model not found"
}{
"detail": "Model not found"
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}Response
Returns the benchmark's samples. Identity, status, and timestamps are served by GET /{benchmark_id}.
The benchmark's sample payload. Identity, status and timestamps are served by GET /{benchmark_id}.
Was this page helpful?