Cancel an in-progress or queued job.
Returns the updated job with status ‘cancelled’.
"job"."cancelled" on success.| Current Status | Behavior |
|---|---|
validating | Immediately cancelled |
queued | Removed from queue and cancelled |
in_progress | Marked for cancellation; processing may complete if already finishing |
completed | Returns 400 error - cannot cancel |
failed | Returns 400 error - cannot cancel |
cancelled | Returns 400 error - already cancelled |
expired | Returns 400 error - cannot cancel |
in_progress may still complete if the cancellation request arrives after processing has finished but before the status is updated. Always check the final status of the returned job object.409. In that case, retrieve the job again and decide whether another cancel attempt is still needed.Successful Response
Core Job object following OpenAI-style specification.
Represents a single asynchronous job that can be polled for status and result retrieval.
/v1/documents/extract, /v1/documents/parse, /v1/documents/split, /v1/documents/classify, /v1/schemas/generate, /v1/edit/agent/fill, /v1/edit/templates/fill, /v1/edit/templates/generate, /v1/evals/extract/process, /v1/evals/split/process, /v1/evals/classify/process, /v1/evals/extract/extract, /v1/evals/extract/split "job"validating, queued, in_progress, completed, failed, cancelled, expired Error details when job fails.
Response stored when job completes successfully.