Flatten annotations and form fields into page content
Runs pdfengines/flatten — annotation appearance streams and AcroForm values are baked into the page bytes. Seal signature fields live in the database and are unaffected. Honours the org egress.allow_convert gate.
POST
/documents/pdf/flattenAuthorization
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/jsonidstringrequiredResponses
200
Flattened
successbooleanstorage_idstringpage_countinteger