Skip to main content
GET
Get a spec task count

Authorizations

X-API-Key
string
header
required

Organization API key

Path Parameters

spec_id
string
required

Query Parameters

search
string | null

Count only tasks whose label, ID, user message, or category contains this text.

split
enum<string> | null

Return only tasks in this split; unassigned selects tasks without one.

Available options:
train,
test,
unassigned
environment
enum<string> | null

Return only tasks whose environment needs setup (missing run command or runtime not ready), is building, failed to build, or is ready to run.

Available options:
setup_needed,
building,
failed,
ready
run_id
string[] | null

Return only tasks with a trajectory in one of these training or evaluation runs; repeat the parameter for each run ID.

Maximum array length: 200

Response

Successful Response

bench_id
string
required
task_count
integer
required

Tasks matching the filters. With search, counting stops at 1000; a smaller value is exact.