Drive > Files > File/Directory

Get file preview.

get/2/drive/{drive_id}/files/{file_id}/preview

Request

  • Base URL
    https://api.infomaniak.com
  • URL
    https://api.infomaniak.com/2/drive/{drive_id}/files/{file_id}/preview
  • Auth
    HTTP bearer

Path parameters

drive_idinteger required

Drive identifier

file_idinteger required

File identifier

Query parameters

as'pdf' | 'text'

Convert file before preview

heightinteger

The height of the preview. <note>This parameter only works on image</note>

qualityinteger

The quality of the preview. <note>This parameter only works on image</note>

version_idinteger

Version identifier of this file

widthinteger

The width of the preview. <note>This parameter only works on image</note>

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