Download the original file content with proper headers
/files/{file_id}/download
Download the original file content with preserved filename and content type. Streams file efficiently without loading into memory.
Parameter | Type | Required | Description |
---|---|---|---|
file_id | string | Yes | Unique identifier of the file to download |
Header | Description |
---|---|
Content-Type | MIME type of the original file |
Content-Disposition | Attachment with original filename |
Content-Length | File size in bytes |
Format | MIME Type |
---|---|
application/pdf | |
JPG | image/jpeg |
JPEG | image/jpeg |
PNG | image/png |
Bearer authentication header of the form Bearer <token>
, where <token>
is your auth token.
Unique identifier of the file to download
File content
The response is of type file
.