Infomaniak Kdrive icon

Infomaniak Kdrive

Interact with Infomaniak Kdrive API

Actions178

Drive > Files > File/Directory → Preview

AI-generated

Summary

Generates a preview of the specified Infomaniak Kdrive file or directory.

Inputs

  • authentication — Select the authentication method to use for the API request. OAuth2 is the default.
  • path_drive_id (required) — The identifier of the drive containing the file or directory.
  • path_file_id (required) — The identifier of the file or directory to preview.
  • queryParameters — Optional query parameters to customize the preview output. Supports format selection (pdf or text) and dimension/quality settings.
  • returnFullResponse — If set to true, the full API response is returned. Otherwise, the operation returns processed items suitable for use in downstream nodes.

Output shape

Items containing the preview data (format dependent on the 'as' parameter) or the full API response if 'returnFullResponse' is enabled.

The 'as' parameter within 'queryParameters' allows selecting 'pdf' or 'text' output format. Dimensions (width/height) and quality can be adjusted via their respective query parameters.

Links

Discussion