GET /v1/jobs
GET https://api.deskew.dev/v1/jobs
Lists jobs in the key’s project and mode (test or live), newest first. Requires jobs:read.
Query parameters
Section titled “Query parameters”| Name | Type | Default | Description |
|---|---|---|---|
status |
string | Only jobs with this status: queued, processing, completed, failed, canceled |
|
limit |
integer 1–100 | 20 |
Page size |
starting_after |
string | A job id; returns jobs created before it. Use the last id of the previous page |
Example
Section titled “Example”curl "https://api.deskew.dev/v1/jobs?status=completed&limit=2" \ -H "Authorization: Bearer $DESKEW_API_KEY"def iter_jobs(status=None): params = {"limit": 100} if status: params["status"] = status while True: page = requests.get(f"{API}/v1/jobs", headers=HEADERS, params=params).json() yield from page["data"] if not page["has_more"]: return params["starting_after"] = page["data"][-1]["id"]async function* iterJobs(status) { const params = new URLSearchParams({ limit: "100" }); if (status) params.set("status", status); for (;;) { const page = await (await fetch(`${API}/v1/jobs?${params}`, { headers })).json(); yield* page.data; if (!page.has_more) return; params.set("starting_after", page.data.at(-1).id); }}Response
Section titled “Response”200 with a list of job objects:
{ "object": "list", "data": [ { "id": "job_01JE4KB0X8Y2Z3A4B5C6D7E8F9", "object": "job", "status": "completed", "mode": "async", "file_name": "annual-report.pdf", "file_type": "pdf", "file_size": 8421377, "pages": { "total": 48, "done": 48, "failed": 0 }, "eta_seconds": null, "quality": "auto", "credits": { "estimated": 72, "used": 61 }, "engines": { "text-layer": 41, "deskew-ocr": 7 }, "webhook": null, "error": null, "created_at": "2026-12-02T09:14:07.512Z", "started_at": "2026-12-02T09:14:08.104Z", "finished_at": "2026-12-02T09:16:40.811Z", "expires_at": "2026-12-03T09:16:40.811Z", "result_url": "https://api.deskew.dev/v1/jobs/job_01JE4KB0X8Y2Z3A4B5C6D7E8F9/result" }, { "id": "job_01JE4K9QW2M3N4P5Q6R7S8T9V0", "object": "job", "status": "completed", "mode": "sync", "file_name": "invoice.pdf", "file_type": "pdf", "file_size": 184233, "pages": { "total": 1, "done": 1, "failed": 0 }, "eta_seconds": null, "quality": "auto", "credits": { "estimated": 1, "used": 1 }, "engines": { "text-layer": 1 }, "webhook": null, "error": null, "created_at": "2026-12-02T09:11:52.001Z", "started_at": "2026-12-02T09:11:52.010Z", "finished_at": "2026-12-02T09:11:52.402Z", "expires_at": "2026-12-03T09:11:52.402Z", "result_url": "https://api.deskew.dev/v1/jobs/job_01JE4K9QW2M3N4P5Q6R7S8T9V0/result" } ], "has_more": true}Errors
Section titled “Errors”| Status | Code |
|---|---|
| 401 | missing_api_key, invalid_api_key, key_revoked, key_expired |
| 403 | insufficient_scope, ip_not_allowed |
| 422 | validation_error (for example limit out of range) |
| 429 | rate_limited |