Skip to content

unsupported_document_type ​

Description ​

The document type is not supported by the endpoint.

  • OCR: the requested documentType is not in the OCR schema registry.
  • Certification: the first bytes of the document are not those of a PDF (%PDF-), a PNG or a JPEG, and the declared type of the part is not text/plain or application/json. For a PDF, a PNG or a JPEG, the context reads the first bytes, not the declared type of the part.

HTTP Status ​

422 Unprocessable Entity

Typical Causes ​

  • OCR: the caller supplied a document type outside OCR's supported schema registry.
  • Certification: the file is a Word document, a ZIP or an archive, with a .pdf name or an application/pdf declared type.

How To Fix ​

  • OCR: send one of the document types published by the OCR extraction-request contract.
  • Certification: send a PDF, a PNG or a JPEG, or send a UTF-8 plain text or a JSON document with the declared type text/plain or application/json. Convert other formats to PDF first.

Website