Skip to main content
GET
/
api
/
v3
/
benchmark
/
{id}
/
data
Get Benchmark Data
curl --request GET \
  --url https://api.nugen.in/api/v3/benchmark/{id}/data \
  --header 'Authorization: Bearer <token>'
{
  "benchmark_id": "benchmark-123",
  "benchmark_name": "Customer Support Q&A",
  "status": "pending",
  "num_questions": 10,
  "created_at": "2024-01-15T10:30:00Z",
  "updated_at": "2024-01-15T12:30:00Z",
  "source": "<string>",
  "s3_key": "<string>",
  "s3_url": "https://s3.amazonaws.com/benchmark-123.zip",
  "documents": [
    "doc-abc123",
    "doc-def456"
  ],
  "questions": [
    {
      "answer": "Our return policy allows returns within 30 days of purchase.",
      "question": "What is the return policy?",
      "question_num": 1
    }
  ],
  "metadata": {},
  "error": "<string>"
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

id
string
required

Response

Returns the full benchmark data including all questions and answers for a specific benchmark

benchmark_id
string
required

Benchmark ID

Example:

"benchmark-123"

benchmark_name
string
required

Name of the benchmark

Example:

"Customer Support Q&A"

status
enum<string>
required

Benchmark status

Available options:
pending,
completed,
deploying,
evaluating,
undeployed,
evaluated,
failed
Example:

"pending"

num_questions
integer
required

Total number of questions

Example:

10

created_at
string<date-time>
required

Creation timestamp

Example:

"2024-01-15T10:30:00Z"

updated_at
string<date-time>
required

Last update timestamp

Example:

"2024-01-15T12:30:00Z"

source
string
required

Data source

s3_key
string | null

S3 storage key

s3_url
string | null

S3 download URL

Example:

"https://s3.amazonaws.com/benchmark-123.zip"

documents
string[]

Document IDs used for generation

Example:
["doc-abc123", "doc-def456"]
questions
BenchmarkQuestion · object[]

Complete list of benchmark questions

Example:
[
{
"answer": "Our return policy allows returns within 30 days of purchase.",
"question": "What is the return policy?",
"question_num": 1
}
]
metadata
Metadata · object

Additional metadata

error
string | null

Error message if data fetch failed