Skip to content

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.

Name Description
id The job id
Terminal window
curl -X DELETE https://api.deskew.dev/v1/jobs/job_01JE4KB0X8Y2Z3A4B5C6D7E8F9 \
-H "Authorization: Bearer $DESKEW_API_KEY"

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