API Lab
RequestPOST
Headers
Don't have a key? Create an account to get one.
Poll for the status of a request by ID. Request IDs can be found in the JSON response of POST requests sent to any pdfRest endpoint.
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!