curl --request GET \
--url https://pdfgorilla.io/api/v1/jobs/{jobId}/download \
--header 'x-api-key: <api-key>'Follow a redirect to download the PDF for a completed async job.
curl --request GET \
--url https://pdfgorilla.io/api/v1/jobs/{jobId}/download \
--header 'x-api-key: <api-key>'status is completed.
For job metadata and a fresh downloadUrl, use Get job status.
generate-async.Authorization: Bearer.| Status | Meaning |
|---|---|
| 307 | Follow Location to stream the PDF bytes |
| 401 | Auth failed |
| 404 | Job not found, or a completed job whose file is no longer available |
| 409 | Job is not completed yet (including queued, processing, failed, canceled, expired) |
curl -L https://pdfgorilla.io/api/v1/jobs/JOB_ID/download \
-H "x-api-key: YOUR_API_KEY" \
--output document.pdf
completed and try again.