Documents
Compress Document
Compress a PDF document to reduce its file size and return a temporary download URL.
POST
Required scopes (OAuth 2.0)
Required scopes (OAuth 2.0)
This endpoint requires the following scope:
pdf:filesAuthorizations
Body
application/json
Compression level.
standard— ~150 dpi images, removes non-essential bookmarks and unused metadata. Targets ≥ 30% file size reduction.maximum— ~72–96 dpi images, strips all non-essential content. Targets ≥ 60% file size reduction. Requires Pro / Business plan.
Available options:
standard, maximum Lumin document ID of the PDF to compress.
Required when file_url is not provided. Takes priority if both are provided.
To obtain a document ID, upload the file to Lumin first using Upload Document.
Response
Returns a temporary download URL for the compressed PDF.