GET /v2/evals/experiments/{experiment_id}/jobs/{job_id}
A job is one accepted request to generate outputs for an experiment or to score its existing outputs. This route returns the job's lifecycle and, once it has finished, its outcome. Poll it until status is completed, completed_with_failures, failed or cancelled. The experiment's /status route reports its latest job and current result counts. A 503 means the job's live state cannot be read right now; retry the same job URL.
How to use
Poll this exact accepted job until completed, completed_with_failures, failed, or cancelled. On 503 retry this GET. Inspect final outcome before deciding whether a new job is warranted.
Authentication and permissions
Required permissions: evals.read. Resource and owner access checks also apply.
Personal API key (sk_...) or supported user access JWT. See Authentication and authorization for endpoint restrictions and scopes. Use exactly one Authorization header.
The experiment the job belongs to.
The job ID returned when the job was created.
Successful Response
Machine-readable response code, when provided.
Invalid request or pagination cursor
Missing or invalid credentials
Denied permission, project folder access, or API-key scope (meta.required_scope)
Resource not found in the caller's organization
Job launch was rejected or job state is temporarily unavailable
Client error returned in the public API envelope
curl --fail-with-body -sS \
"$STACKAI_BASE_URL/v2/evals/experiments/${EXPERIMENT_ID}/jobs/${JOB_ID}" \
-H "Authorization: Bearer $STACKAI_API_KEY"{
"response_code": "text",
"meta": {
"ANY_ADDITIONAL_PROPERTY": "anything"
},
"data": {
"job_id": "123e4567-e89b-12d3-a456-426614174000",
"experiment_id": "123e4567-e89b-12d3-a456-426614174000",
"mode": "generate",
"evaluator_ids": [
"123e4567-e89b-12d3-a456-426614174000"
],
"status": "queued",
"created_at": "2026-01-01T00:00:00.000Z",
"started_at": "2026-01-01T00:00:00.000Z",
"finished_at": "2026-01-01T00:00:00.000Z",
"last_activity_at": "2026-01-01T00:00:00.000Z",
"error": {
"code": "text",
"message": "text"
}
}
}Last updated
Was this helpful?

