Infomaniak Kchat icon

Infomaniak Kchat

Interact with Infomaniak Kchat API

Actions173

Insights → Get A List Of The Top Channels For A User.

AI-generated

Summary

Retrieve top channels for a user within a specified time range.

Inputs

  • authentication — Authentication method to use. Defaults to OAuth2. API Key is also available if configured for the team.
  • teamName (required) — Your kChat team name (the subdomain in https://.kchat.infomaniak.com)
  • query_time_range (required) — Granularity of the time window for counting channel activity. Options: 'today' (posts on current day), '7_day' (last 7 days), '28_day' (last 28 days).
  • queryParameters — Optional pagination and scoping filters. Sub-parameters: query_page (page index), query_per_page (items per page, max 200), query_team_id (scopes response to a specific team ID; requires view_team permission).
  • returnAll — When true (default), fetches all pages of results up to the limit. When false, returns only the first page.
  • returnFullResponse — When true, returns the complete API response including pagination metadata. When false (default), returns normalized n8n items.

Output shape

An array of channel objects ranked by activity within the selected time range. Each item typically includes channel ID, display name, and post count. Pagination metadata is included if returnFullResponse is enabled.

The operation reads from the Infomaniak kChat Insights endpoint. No side effects on teams, channels, or messages.

Examples

Example 1: Get the top 10 channels with posts in the last 7 days using OAuth2.

authentication: oauth2; teamName: my-team; query_time_range: 7_day; queryParameters: { query_per_page: 10 }; returnAll: true; returnFullResponse: false

Links

Discussion