Job object
Every extraction, synchronous or not, is a job. The full object is returned by GET /v1/jobs, GET /v1/jobs/{id} and DELETE /v1/jobs/{id}. The 202 response from POST /v1/extract carries a shorter stub of the same object with a poll_url.
{ "id": "job_01JE4KB0X8Y2Z3A4B5C6D7E8F9", "object": "job", "status": "processing", "mode": "async", "file_name": "annual-report.pdf", "file_type": "pdf", "file_size": 8421377, "pages": { "total": 48, "done": 19, "failed": 0 }, "eta_seconds": 84, "quality": "auto", "credits": { "estimated": 72, "used": null }, "engines": null, "webhook": { "url": "https://hooks.example.com/deskew" }, "error": null, "created_at": "2026-12-02T09:14:07.512Z", "started_at": "2026-12-02T09:14:08.104Z", "finished_at": null, "expires_at": "2026-12-03T09:14:07.512Z", "result_url": null}| Field | Type | Description |
|---|---|---|
id |
string | job_ followed by a ULID. Sorts by creation time |
object |
string | Always "job" |
status |
string | queued, processing, completed, failed, canceled |
mode |
string | sync if the job ran inside the request, async if it was queued (including a sync run that was downgraded after 55 s) |
file_name |
string | The uploaded file name, or the last path segment of url |
file_type |
string | Detected type: pdf, docx, xlsx, csv, pptx, image, eml, msg, html, txt |
file_size |
integer | Bytes |
pages.total |
integer | Pages planned; may grow for email once attachments are expanded |
pages.done |
integer | Pages finished |
pages.failed |
integer | Pages that could not be read; the job still completes |
eta_seconds |
integer | null | Estimated seconds remaining, from the observed page rate. Only while processing and after the first page |
quality |
string | The quality option the job ran with |
credits.estimated |
integer | Pre-processing estimate from the page plan; this is what quotas were checked against |
credits.used |
integer | null | Actual credits after completion; null before |
engines |
object | null | Page count per engine after completion, for example {"text-layer": 41, "deskew-ocr": 7} |
webhook |
object | null | { "url": … } when a per-request webhook_url was given |
error |
object | null | {type, code, message, doc_url} when status is failed. See Errors |
created_at |
string | When the request was accepted |
started_at |
string | null | When a worker (or the inline run) began |
finished_at |
string | null | When it completed, failed or was canceled |
expires_at |
string | When the stored result is deleted (24 hours after completion; set from creation until then) |
result_url |
string | null | https://api.deskew.dev/v1/jobs/{id}/result once completed, otherwise null |
The 202 stub
Section titled “The 202 stub”{ "id": "job_01JE4KB0X8Y2Z3A4B5C6D7E8F9", "object": "job", "status": "queued", "mode": "async", "pages": { "total": 48, "done": 0 }, "poll_url": "https://api.deskew.dev/v1/jobs/job_01JE4KB0X8Y2Z3A4B5C6D7E8F9", "created_at": "2026-12-02T09:14:07.512Z"}poll_url is the absolute URL of GET /v1/jobs/{id}. The remaining fields appear once you fetch it.
Lifecycle
Section titled “Lifecycle”POST /v1/extract │ ▼ queued ──────────► canceled (DELETE /v1/jobs/{id}) │ ▲ ▼ │ processing ────────────┘ │ ├──► completed result_url set, job.completed webhook, result kept 24 h │ └──► failed error set, job.failed webhookSynchronous jobs pass through processing to completed inside the request and are listed afterwards with mode: "sync".