Compress a draft PDF in place
Re-encodes embedded images to JPEG via the convert-worker PDF engines (qpdf/pdfcpu — not Seal AI). Text, vectors, fonts, and structure are untouched; the engine never enlarges the file. Fields are unaffected. Honours the org egress.allow_convert gate since bytes leave the API worker for the conversion container.
POST
/documents/pdf/compressAuthorization
AuthorizationBearer token · headerrequiredPass your API key as a Bearer token. API keys are scoped to specific operations — configure scopes in your organization's Settings → Developer → API Keys.
Request body
requiredapplication/jsonidstringrequiredimage_qualityintegerJPEG quality for re-encoded images (default 80)
min 1 · max 100
Responses
200
Compressed
successbooleanstorage_idstringpage_countintegersize_beforeintegersize_afterinteger403
Org egress disallows conversion