DELETE /v1/jobs/{id}
DELETE https://api.deskew.dev/v1/jobs/{id}
Stops a queued or processing job. The job moves to canceled, no result is stored, no job.completed webhook fires and nothing is billed. Pages already running finish and are discarded. Jobs that are already completed, failed or canceled are returned unchanged.
Requires the jobs:write scope; a key without it may cancel if it has extract:write.
Path parameters
Section titled “Path parameters”| Name | Description |
|---|---|
id |
The job id |
Example
Section titled “Example”curl -X DELETE https://api.deskew.dev/v1/jobs/job_01JE4KB0X8Y2Z3A4B5C6D7E8F9 \ -H "Authorization: Bearer $DESKEW_API_KEY"job = requests.delete(f"{API}/v1/jobs/{job_id}", headers=HEADERS).json()assert job["status"] == "canceled"const job = await (await fetch(`${API}/v1/jobs/${jobId}`, { method: "DELETE", headers })).json();console.log(job.status); // "canceled"Response
Section titled “Response”200 with the job object:
{ "id": "job_01JE4KB0X8Y2Z3A4B5C6D7E8F9", "object": "job", "status": "canceled", "mode": "async", "file_name": "annual-report.pdf", "file_type": "pdf", "file_size": 8421377, "pages": { "total": 48, "done": 19, "failed": 0 }, "eta_seconds": null, "quality": "auto", "credits": { "estimated": 72, "used": null }, "engines": null, "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:15:02.337Z", "expires_at": "2026-12-03T09:14:07.512Z", "result_url": null}Errors
Section titled “Errors”| Status | Code | When |
|---|---|---|
| 403 | insufficient_scope |
Key has neither jobs:write nor extract:write |
| 404 | job_not_found |
Unknown id, or another project or mode |
| 401 / 429 | Authentication, rate limit |