Skip to main content

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

Byte stream response