Skip to main content
GET
Wait for a background job to finish

Authorizations

X-CEKURA-API-KEY
string
header
required

API Key Authentication. It should be included in the header of each request.

Path Parameters

job_id
string
required

The progress_id returned by the endpoint that started the job.

Query Parameters

wait
number
default:25

Seconds to wait for the job to finish. 0 returns immediately.

Required range: 0 <= x <= 55

Response

Current state of the job. Its fields depend on job_type.

Started by the generate-evaluators endpoint.

job_type
enum<string>
Available options:
generate_scenarios
job_id
string

The job id you polled.

status
enum<string>

in_progress: still running, call again with the same id. needs_clarification: waiting on your answer. completed, failed, cancelled: finished.

Available options:
in_progress,
needs_clarification,
completed,
failed,
cancelled
agent_id
integer
total_scenarios
integer
completed_scenarios
integer
failed_scenarios
integer
scenarios_list
object[]

Evaluators generated so far.

errors
any[]
warnings
any[]
session_id
integer | null
current_step
string
questions
object[]

Only while status is needs_clarification (dashboard sessions). Answer via the generate-clarify-answer endpoint, then poll the same id.

agent_message
string

Only while status is needs_clarification.