Skip to content

GET /v1/jobs/{id}

GET https://api.deskew.dev/v1/jobs/{id}

Returns the job object. Poll this while a job is queued or processing. Requires jobs:read.

Name Description
id The job id (job_…) from the 202 response or a webhook
Terminal window
curl https://api.deskew.dev/v1/jobs/job_01JE4KB0X8Y2Z3A4B5C6D7E8F9 \
-H "Authorization: Bearer $DESKEW_API_KEY"

200 while processing:

{
"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
}

200 after a failure:

{
"id": "job_01JE4KF1A2B3C4D5E6F7G8H9J0",
"object": "job",
"status": "failed",
"mode": "async",
"file_name": "locked.pdf",
"file_type": "pdf",
"file_size": 92311,
"pages": { "total": 0, "done": 0, "failed": 0 },
"eta_seconds": null,
"quality": "auto",
"credits": { "estimated": 0, "used": null },
"engines": null,
"webhook": null,
"error": {
"type": "document_error",
"code": "password_protected",
"message": "The PDF is encrypted. Send the password in options.pdf_password or upload an unlocked copy.",
"doc_url": "https://docs.deskew.dev/errors#password_protected"
},
"created_at": "2026-12-02T09:20:11.000Z",
"started_at": "2026-12-02T09:20:11.420Z",
"finished_at": "2026-12-02T09:20:11.655Z",
"expires_at": "2026-12-03T09:20:11.000Z",
"result_url": null
}
Status Code When
401 missing_api_key, invalid_api_key, key_revoked, key_expired
403 insufficient_scope, ip_not_allowed
404 job_not_found Unknown id, or a job from another project or mode
429 rate_limited Polling too fast