Drive > Files > File/Directory

Download 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 URL
    https://api.infomaniak.com
  • URL
    https://api.infomaniak.com/2/drive/{drive_id}/files/{file_id}/download
  • Auth
    HTTP 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_error enum value to the // response property for the response status

    • warning

      added the new forbidden_error enum value to the // response property for the response status

    • warning

      added the new too_many_files_error enum value to the // response property for the response status

    • info

      added the non-success response with the status