Skip to main content
GET
/
api
/
v1
/
jobs
/
{jobId}
/
download
Download job PDF
curl --request GET \
  --url https://pdfgorilla.io/api/v1/jobs/{jobId}/download \
  --header 'x-api-key: <api-key>'
Returns 307 Temporary Redirect to a signed URL when the job status is completed. For job metadata and a fresh downloadUrl, use Get job status.

Request

Path parameters

jobId
string
required
Job ID from generate-async.

Headers

x-api-key
string
required
Your API key or Authorization: Bearer.

Responses

StatusMeaning
307Follow Location to stream the PDF bytes
401Auth failed
404Job not found, or a completed job whose file is no longer available
409Job is not completed yet (including queued, processing, failed, canceled, expired)

Example

curl -L https://pdfgorilla.io/api/v1/jobs/JOB_ID/download \
  -H "x-api-key: YOUR_API_KEY" \
  --output document.pdf
Signed URLs expire quickly. If the download fails, confirm the job is completed and try again.