Infomaniak Kdrive icon

Infomaniak Kdrive

Interact with Infomaniak Kdrive API

Actions178

Drive > Files > External Import → List Imports

AI-generated

Summary

List external imports from an Infomaniak Kdrive

Inputs

  • authentication — Authentication method to use for the Infomaniak API request. Defaults to OAuth2 if not specified. Choose between OAuth2 or API Key depending on how the node was configured in n8n.
  • path_drive_id (required) — The unique identifier of the Infomaniak Kdrive. This parameter is mandatory; provide the numeric ID of the drive whose imports you want to list.
  • queryParameters — Optional collection of query parameters to refine the import listing and control pagination.
  • queryParameters.options.query_with — Optional parameter to load additional data about a resource, which may include related resources. Can be specified as ?with=total or via this parameter.
  • queryParameters.options.query_page — Optional page number for pagination. Part of the pagination capacity. Defaults to 0 (first page).
  • queryParameters.options.query_per_page — Optional number of items per page. Part of the pagination capacity. Defaults to 0 (system default).
  • queryParameters.options.query_total — Optional boolean. If set to true, the response includes the total number of items and total pages under a pages field. Equivalent to using ?with=total in the API request.
  • returnAll — When set to true (default), the operation fetches all pages of results and returns a single consolidated array of import records. When false, only the first page of results is returned.
  • limit — Maximum number of items to return per request. Accepts values from 1 to 500. Defaults to 50. Only applies when returnAll is false or when the API respects the limit parameter.
  • returnFullResponse — When true, the full API response (including metadata, headers, etc.) is returned alongside the imported items. Defaults to false, which returns only the items array.

Output shape

An array of import record objects. If returnAll is true, the array contains all imported items across all pages. If query_total is true, the response object also includes a pages field indicating total pages and a total field indicating total items count. If returnFullResponse is true, the returned object includes both the items and the raw API response metadata.

The operation lists external imports for the specified Infomaniak Kdrive. Authentication is required (OAuth2 or API Key). The path_drive_id parameter identifies the target drive. Pagination and filtering are controlled via queryParameters. The returnAll and limit parameters together determine how many and how many pages of results are returned.

Examples

Example 1: List the first 20 imports from drive ID 12345 using OAuth2, returning only the first page.

Set authentication to OAuth2, path_drive_id to 12345, limit to 20, returnAll to false, and returnFullResponse to false.

Links

Discussion