Infomaniak Kdrive icon

Infomaniak Kdrive

Interact with Infomaniak Kdrive API

Actions178

Drive > Files > File/Directory → Get A File Temporary URL

AI-generated

Summary

Generates a temporary download URL for a specified Infomaniak Kdrive file.

Inputs

  • authentication — Authentication method to use for the API request. Defaults to OAuth2 if not specified. Select 'API Key' to use static API key authentication instead of OAuth2 token flow.
  • path_drive_id (required) — Identifier of the Infomaniak Kdrive (root folder/drive) containing the target file. A numeric ID; default value 0 typically selects the root drive unless overridden by the node's internal logic.
  • path_file_id (required) — Numeric identifier of the specific file or directory within the selected drive to generate a temporary URL for.
  • queryParameters — Optional collection of additional query parameters to append to the API request. Currently supports a single optional parameter:
  • query_duration — Number specifying the duration (in seconds, typically) for which the generated temporary URL remains valid. Defaults to 0, which may use the service's default expiry policy.

Output shape

Returns an object representing the API response from Infomaniak Kdrive. By default, the node extracts and returns the temporary URL field suitable for file downloads. When 'Return Full Response' is enabled, the entire API response payload is passed through to the next node in the workflow.

The actual returned data shape depends on the Infomaniak API response structure and the 'returnFullResponse' setting. If the API call fails (e.g., invalid file ID, insufficient permissions), the node will error out as per n8n error handling.

Examples

Example 1: Basic temporary URL generation using OAuth2

Set authentication to OAuth2, provide the drive ID and file ID. The node outputs a temporary download URL.

Example 2: Custom expiry temporary URL

Set 'query.duration' to 3600 in queryParameters to generate a URL valid for one hour, and enable 'Return Full Response' if the full API metadata is needed.

Links

Discussion