OCR a draft PDF (add a searchable text layer)
Runs ocrmypdf –skip-text in the pdf-tools container — pages that lack a text layer are OCR’d and existing text is preserved. The searchable PDF claims the document’s storageKey. Honours the org egress.allow_convert gate.
POST
/documents/pdf/ocrAuthorization
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/jsonidstringrequiredlangstringTesseract language code(s), e.g. eng or eng+fra
matches ^[a-z]{3}(\+[a-z]{3})*$ · default: "eng"
Responses
200
OCR complete
successbooleanstorage_idstringpage_countintegerlangstring