Upload files for processing with automatic document type detection
/files/upload
Upload files for processing with automatic document type detection. This endpoint supports multiple file formats and maintains backward compatibility with the existing upload endpoint.
Field | Type | Description |
---|---|---|
doc_id | string | Unique identifier for the uploaded document |
type | string | Automatically detected document type (invoice, bank_statement, etc.) |
validation.page_count | integer | Number of pages in the document |
validation.file_size | integer | File size in bytes |
validation.format | string | File format (PDF, JPG, JPEG, PNG) |
status | string | Upload status (“done” when successful) |
Bearer authentication header of the form Bearer <token>
, where <token>
is your auth token.
Files uploaded successfully
The response is of type object
.