Download File
Files API (NEW)
Download File
Download the original file content with proper headers
GET
Download File
Documentation Index
Fetch the complete documentation index at: https://docs.invaro.ai/llms.txt
Use this file to discover all available pages before exploring further.
Download File
GET/files/{file_id}/download
Download the original file content with preserved filename and content type. Streams file efficiently without loading into memory.
Features
- Preserves original filename and content type
- Efficient streaming without memory loading
- Proper content disposition headers
- User ownership validation
Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
file_id | string | Yes | Unique identifier of the file to download |
Request
Response Headers
Response
The response will be the binary file content with appropriate headers set for download.Response Headers
| Header | Description |
|---|---|
Content-Type | MIME type of the original file |
Content-Disposition | Attachment with original filename |
Content-Length | File size in bytes |
Supported File Types
| Format | MIME Type |
|---|---|
application/pdf | |
| JPG | image/jpeg |
| JPEG | image/jpeg |
| PNG | image/png |
Error Responses
- 404 Not Found: File doesn’t exist or user doesn’t have access
- 410 Gone: File has been deleted
- 500 Internal Server Error: File storage issue
Try It Out
Use the interactive playground above to test the download file endpoint. You can:- Add your API key in the Authorization header
- Enter a file ID in the path parameter (use a UUID from your uploaded files)
- Execute the request to download the original file