API reference/18 of 24
Download results
Download a ZIP or the single output file.
GET/jobs/{id}/download
Returns the file itself for a one-file job, or a ZIP of every file for a batch. Authenticate with your API key, or use the download_url from the job: it is a path on this host (for example /api/v1/jobs/…/download?token=…) that carries a token, so it works without your key until the job expires. Prefix https://api.comprestack.com onto download_url, or open that full URL in a browser. Treat the token like a password until expiry.
Path parameters
idstringRequiredThe job ID.
curl https://api.comprestack.com/api/v1/jobs/job_4f1c9a2e7b3d5c8f0a6e1b9d/download \
-H "Authorization: Bearer $COMPRESTACK_API_KEY" \
-o results.zipResponse
HTTP/1.1 200 OK
Content-Type: application/zip
Content-Length: 2148391
Content-Disposition: attachment; filename="job_4f1c9a2e7b3d5c8f0a6e1b9d.zip"