Classify a document
classify_documentDetect the document type (receipt, invoice, contract, lease, …) without extracting fields. Cheap first step when you don't know which schema to use.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file_name | No | Original file name, e.g. 'invoice.pdf' (helps type detection). | |
| mime_type | No | MIME type if known, e.g. 'application/pdf', 'image/jpeg'. Inferred from file_name otherwise. | |
| file_base64 | Yes | The document bytes, base64-encoded. PDF, image (PNG/JPG/WEBP) or text file. |