Errors
Invalid File Format
The upload's content type is not PDF or DOCX, so it cannot be inspected. Convert the file and upload it again with the right Content-Type.
What Happened
The server could not read the upload as a PDF or DOCX file. It decides the format from the Content-Type of the stored file, and only application/pdf and the DOCX type application/vnd.openxmlformats-officedocument.wordprocessingml.document are accepted. You see this error when you request an upload’s structure with GET /v1/uploads/{upload_id}/structure.
How to Fix
- Convert the file to PDF or DOCX and create a new upload.
- If the file is already a PDF or DOCX, send it with the matching
Content-Typeheader when you upload the bytes. - Convert images (PNG, JPG), spreadsheets (XLSX) and plain text (TXT) to PDF first.
Still stuck? Contact support.