Skip to main content
POST
/
api
/
v3
/
benchmark
/
create
Create Benchmark Task
curl --request POST \
  --url https://api.nugen.in/api/v3/benchmark/create \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "documents": [
    "doc-abc123",
    "doc-def456"
  ],
  "num_questions": 10
}
'
{
  "id": "benchmark-123",
  "status": "pending"
}

Authorizations

Authorization
string
header
required

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

Body

application/json
documents
string[]
required

List of document IDs to generate benchmark from

Example:
["doc-abc123", "doc-def456"]
num_questions
integer | null

Number of questions to generate (if None, DeepEval decides based on content)

Required range: 1 <= x <= 100
Example:

10

Response

Returns a unique task identifier and initial status for the benchmark generation process initiated from specified documents

id
string
required

Created benchmark task identifier

Example:

"benchmark-123"

status
string
default:pending

Initial benchmark generation status

Example:

"pending"