GET /v1/jobs/{id}/result
GET https://api.deskew.dev/v1/jobs/{id}/result
Returns the result object for a completed job, exactly as a synchronous 200 from POST /v1/extract would have. Requires jobs:read.
Path parameters
Section titled “Path parameters”| Name | Description |
|---|---|
id |
The job id |
Example
Section titled “Example”curl https://api.deskew.dev/v1/jobs/job_01JE4KB0X8Y2Z3A4B5C6D7E8F9/result \ -H "Authorization: Bearer $DESKEW_API_KEY" \ -o result.jsonr = requests.get(f"{API}/v1/jobs/{job_id}/result", headers=HEADERS)if r.status_code == 200: result = r.json()elif r.json()["error"]["code"] == "result_not_ready": ... # keep polling GET /v1/jobs/{id}const res = await fetch(`${API}/v1/jobs/${jobId}/result`, { headers });if (res.ok) { const result = await res.json();} else if ((await res.json()).error.code === "result_not_ready") { // keep polling GET /v1/jobs/{id}}Response
Section titled “Response”200 with Content-Type: application/json and the stored result:
{ "id": "job_01JE4KB0X8Y2Z3A4B5C6D7E8F9", "status": "completed", "pages": 48, "markdown": "# Annual report 2025\n\n...", "tables": [ { "page": 12, "n_rows": 14, "n_cols": 5, "rows": [ ["...", "..."] ], "csv": "...", "markdown": "..." } ], "page_results": [ { "page": 1, "kind": "digital", "engine": "text-layer", "confidence": 1.0, "duration_ms": 97, "credits": 1, "low_confidence": false }, { "page": 2, "kind": "scanned", "engine": "deskew-ocr", "confidence": 0.91, "quality_score": 0.77, "duration_ms": 4120, "credits": 1, "low_confidence": false } ], "usage": { "pages": 48, "credits": 61, "premium_credits": 0, "engines": { "text-layer": 41, "deskew-ocr": 7 } }, "warnings": ["1 table(s) joined across pages", "page 31: first pass flagged: repetition_loop"]}Fields that do not apply to the requested output are omitted (exclude_none): a markdown request has no text or blocks.
Errors
Section titled “Errors”| Status | Code | When |
|---|---|---|
| 404 | job_not_found |
Unknown id, or another project or mode |
| 409 | result_not_ready |
Job is queued, processing, failed or canceled; the message names the status |
| 410 | result_expired |
More than 24 hours since completion; the stored result was deleted |
| 401 / 403 / 429 | Authentication, scope, rate limit |