Drive > Files > File/Directory
Preview
Get file preview.
get/2/drive/{drive_id}/files/{file_id}/preview
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
No recorded changes to this endpoint across all 1 revision of this API.