Skip to main content

Supported file types

FlexOrch accepts the following formats: Image files and scanned PDFs are processed with OCR automatically. Scanned pages are also automatically deskewed (rotation and small-angle tilt correction) before OCR runs.
CSV files are not supported for upload — use XLSX for tabular data.
FlexOrch also checks the actual file content, not just the extension — if a file’s content doesn’t match its extension (e.g. a PDF renamed to .docx), it’s automatically routed to the correct parser when the real type is supported, or rejected with EXTENSION_MISMATCH when it isn’t. See Common error codes.

Single file upload

Response:

Multi-file upload

Send multiple files in a single request:
Each file gets its own job_id. The response includes all IDs:

Upload from a connector (S3 / GCS / Azure)

If you have a connector configured, you can process files directly from cloud storage without downloading them first:
See Connectors for setup instructions.

File size limits

The maximum file size is 5 MB per file, the same across all plans. Files exceeding the limit return 400 FILE_TOO_LARGE. Encrypted PDFs are rejected with ENCRYPTED_PDF — remove the password before uploading. Very long documents are also capped independently of file size, since a small file can still be complex enough to slow down processing: PDFs over 300 pages return PDF_TOO_MANY_PAGES, and XLSX sheets over 50,000 rows return XLSX_TOO_MANY_ROWS. Split the file and upload the parts separately if you hit either limit.

Duplicate detection

FlexOrch automatically detects duplicate documents (using a content hash). If you upload a file that was already processed:
  • No new credit is consumed
  • The existing job and execution IDs are returned
  • Processing is skipped

Polling for results

After upload, poll the job endpoint until status is completed or failed:
The SDK handles polling automatically with job.wait_until_done().
Typical processing time is 5–30 seconds depending on file size and type. Image-heavy PDFs take longer due to OCR.