Drive > Files > File/Directory
Download
Changed onDownload file content or directory as Zip file.
<note> Please note that this may respond a 302 to actually download the requested content. </note>get/2/drive/{drive_id}/files/{file_id}/download
Request
- Base URLhttps://api.infomaniak.com
- URLhttps://api.infomaniak.com/2/drive/{drive_id}/files/{file_id}/download
- AuthHTTP bearer
Path parameters
drive_idinteger required
Drive identifier
file_idinteger required
File identifier
Query parameters
as'pdf' | 'text'
Convert file before download
Headers
x-kdrive-file-passwordstring
File password to open it for conversion, if the file is password-protected
Response
OK
Changes
- warning
added the new
file_scan_status_not_safe_errorenum value to the//response property for the response status - warning
added the new
forbidden_errorenum value to the//response property for the response status - warning
added the new
too_many_files_errorenum value to the//response property for the response status - info
added the non-success response with the status
- warning