Jobs
Cancel Job
Cancel an in-progress or queued job.
Returns the updated job with status ‘cancelled’.
POST
Documentation Index
Fetch the complete documentation index at: https://docs.retab.com/llms.txt
Use this file to discover all available pages before exploring further.
Cancellation Behavior
The cancellation behavior depends on the job’s current status:| 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 |
Jobs that are
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.If cancellation races with a concurrent state transition, Retab may return
409. In that case, retrieve the job again and decide whether another cancel
attempt is still needed.Use Cases
Cancel a Batch of Jobs
Timeout-based Cancellation
Authorizations
Path Parameters
Response
Successful Response
Core Job object following OpenAI-style specification.
Represents a single asynchronous job that can be polled for status and result retrieval.
Available options:
/v1/extractions, /v1/parses, /v1/splits, /v1/partitions, /v1/classifications, /v1/schemas/generate, /v1/edits, /v1/edits/templates/generate, /v1/evals/extract/process, /v1/evals/extract/extract, /v1/evals/extract/split Allowed value:
"job"Available options:
validating, queued, in_progress, completed, failed, cancelled, expired Error details when job fails.
Public response returned when job completes successfully.