Download File
GET/api/v1/storage/files/:fileId/download
Downloads the binary content of a file. For cloud-native files (e.g., Google Docs, Sheets, Slides, Drawings), the file is automatically exported to a standard format. Use the exportFormat parameter to choose a specific format, or omit it to use smart defaults: Google Docs exports as Word (.docx), Sheets as Excel (.xlsx), Slides as PowerPoint (.pptx), and Drawings as PDF. For regular binary files (PDFs, images, .docx uploads), the download works as-is and the exportFormat parameter is ignored. Check the exportable and exportFormats fields on the file metadata to determine if a file requires export and which formats are available. Note: Google Drive enforces a 10 MB limit on exported files.
Request
Responses
- 200
- 400
- 401
- 403
- 404
- 500
Byte stream response
Bad Request
Response Headers
Correlation Identifier
Unauthorized
Response Headers
Correlation Identifier
Forbidden
Response Headers
Correlation Identifier
Not Found
Response Headers
Correlation Identifier
Internal Server Error
Response Headers
Correlation Identifier