Upload File
Files
Upload File
Upload a new file to the system and optionally process it.
POST
Upload File
Supported files
| Label | File Pattern(s) |
|---|---|
| Text | *.txt |
| Word | *.{doc,docx} |
| Spreadsheet | *.csv |
*.pdf | |
| Excel | *.xls,*.xlsx |
| Power Point | *.{ppt,pptx} |
| Image | *.{jpg,jpeg,png,gif,bmp,svg,tiff,webp} |
| Video | *.{mp4,avi,mov,mkv,wmv,flv} |
| Audio | *.{mp3,wav,aac,ogg,flac,m4a} |
| Code | *.bas, *.bat, *.xml, *.css, *.dart, *.{html,htm}, *.inc, *.js, *.json, *.kt, *.lua, *.pas, *.php, *.pl, *.ps1, *.py, *.r, *.sh, *.vsd, *.sql, *.swift, *.ts, *.vb, *.vba, *.{yml,yaml}, *.md |
Limits
- Maximum file size per upload: 200 MB
- This endpoint accepts one file per request (use multiple requests for multiple files).
- File storage limit: 30 files
- Some features have different limits:
- Chat attachments: up to 200 MB per file; up to 5 files per send
- Audio transcription: up to 10 MB per file
Code Examples
Response
Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Headers
ID of the workspace. If not provided, the user's selected workspace will be used.
Body
multipart/form-data
Response
200
File uploaded successfully.