Python
Body
multipart/form-datafile
required
The file to upload.
enum<string>
required
The intended use of the file.
file-extract: Document analysis. Max 150 MB. Supported formats: TXT, DOCX, PDF, XLSX, EPUB, MOBI, MD, CSV, JSON, BMP, PNG, JPG/JPEG, GIF, scanned PDFs.batch: Batch processing. Max 500 MB. JSONL format (Batch file requirements).
file-extract,batch
Response
200-application/json
string
Unique file identifier.
file-fe-xxx
integer
File size in bytes.
2055
integer
Unix timestamp (seconds) when the file was created.
1729065448
string
The uploaded filename.
test.txt
enum<string>
Always file.
file
string
File purpose. Valid values: batch, file-extract, batch_output.
file-extract
string
Current file status.
processed
string | null
Additional status details. null when no details available.