API Lab
RequestPOST
Headers
Don't have a key? Create an account to get one.
Choose between a full response after processing completes or an immediate response containing only the requestId to poll for the processing status later.
Full Response
Request ID
Required Parameters
File to be uploaded and processed
Alphanumeric ID (UUID) of existing file on server to be processed
Degree of compression with a tradeoff between preserving fidelity (low) and maximizing file size reduction (high)
Optional Parameters
Name of the generated output file, without extension
Code
curl -X POST "https://api.pdfrest.com/compressed-pdf" \
-H "Accept: application/json" \
-H "Content-Type: multipart/form-data" \
-H "Api-Key: xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" \
Response
The response for your API Call will display here.
Once you've sent your POST request and received a valid response, you can download your output file using the output URL.
API Lab is optimized for large displays,
and works best in a
Desktop environment.
In the meantime, check out everything pdfRest has to offer!