Jobs
Approve, retry or reject a paused job
Changed onResumes or ends a multi-step pipeline job that is paused in awaiting_confirmation after a step that asked for confirmation. The job's step_state shows each step's status and intermediate output.
- approve (default) runs the next step.
- retry runs the same step again (a new take). Use overrides to change the input, for example an edited prompt.
- reject cancels the job. Steps already completed stay billed.
The steps completed so far are billed when the job pauses and the hold is released, so approve and retry reserve the estimate for the remaining steps again. If the balance does not cover it, the response is 402 insufficient_balance and the job stays paused: add credits and confirm again. The response is the job, now queued (approve/retry) or cancelled (reject).
post/jobs/{id}/confirm
Request
- Base URL: https://api.varg.ai/v2
- URL: https://api.varg.ai/v2/jobs/{id}/confirm
- Auth: HTTP bearer
Path parameters
idstring required
Request body
Response
The job after the decision
Example response
{
"id": "job_a1b2c3d4e5f6",
"attempts": [
{
"n": 1,
"provider": "byteplus",
"model_key": "byteplus:dreamina-seedance-2-5-260628",
"reason": "real person in the reference images"
}
],
"tool": "tool_2001a2b3c4d5",
"tool_key": "video",
"output": {
"outputs": [
{
"media_type": "video/mp4"
}
]
},
"progress_message": "stitching 3/8 (40%)",
"step_state": {
"current_step": "extend"
},
"pricing": {
"billed_units": {
"images": 1
}
},
"provider": "fal",
"provider_model": "fal:flux_schnell"
}Changes
- info
added the required property
to the response with the status
- info
- info
endpoint added
- info