Skip to main content
POST
Upload Benchmark File

Authorizations

Authorization
string
header
required

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

Body

multipart/form-data
file
file
required

JSON file containing benchmark questions

name
string
required

Benchmark name

document_id
string
required

Document ID that this benchmark is based on

description
string | null

Benchmark description

Response

Returns the details of the uploaded benchmark including its unique identifier, name, status, and the list of questions with expected answers

benchmark_id
string
required

Unique identifier for the benchmark

Example:

"benchmark-abc123"

benchmark_name
string
required

Name of the benchmark

Example:

"My Benchmark"

status
enum<string>
required

Status of the benchmark

Available options:
PROCESSING,
READY,
FAILED,
DEPLOYING,
EVALUATING,
UNDEPLOYED,
EVALUATED,
STOPPED
Example:

"PROCESSING"

num_questions
integer
required

Number of questions in the benchmark

Example:

10

questions
BenchmarkQuestion · object[]

List of uploaded benchmark questions