curl --request POST \
--url https://pdfgorilla.io/api/v1/jobs/{jobId}/cancel \
--header 'x-api-key: <api-key>'{
"jobId": "<string>",
"status": "<string>",
"canceled": true
}Best-effort cancel for a queued or processing async PDF job.
curl --request POST \
--url https://pdfgorilla.io/api/v1/jobs/{jobId}/cancel \
--header 'x-api-key: <api-key>'{
"jobId": "<string>",
"status": "<string>",
"canceled": true
}queued or processing. Jobs already finished cannot be uncanceled; create a new job instead.
generate-async.Authorization: Bearer.{
"jobId": "cma1b2c3...",
"status": "canceled",
"canceled": true
}
canceled).true if the job was canceled. false if it had already reached a terminal state and could not be canceled.| Status | Meaning |
|---|---|
| 401 | Auth failed |
| 404 | Job not found after the cancel attempt |
curl -X POST https://pdfgorilla.io/api/v1/jobs/JOB_ID/cancel \
-H "x-api-key: YOUR_API_KEY"