Infomaniak Kchat icon

Infomaniak Kchat

Interact with Infomaniak Kchat API

Actions173

Teams → Get Team Unreads For A User

AI-generated

Summary

Retrieves unread messages for a specified user in an Infomaniak kChat team.

Inputs

  • authentication — Authentication method to use for the API request. Defaults to OAuth2 if not specified. Choose between OAuth2 and API Key based on your Infomaniak setup.
  • teamName (required) — Your kChat team name (the subdomain in https://.kchat.infomaniak.com). This is a mandatory parameter.
  • path_user_id (required) — User GUID. The unique identifier for the user whose unread messages are being fetched.
  • query_exclude_team (required) — Optional team id to be excluded from the results. Despite the description, this parameter is marked as required in the node definition.
  • queryParameters — Additional query parameters to refine the request. Currently supports one option: 'Include Collapsed Threads'.
  • query_include_collapsed_threads — Boolean to determine whether the collapsed threads should be included or not in the unread messages result. Defaults to false.
  • returnFullResponse — Boolean flag to determine if the full API response should be returned. When enabled, the complete raw response is provided instead of the default structured n8n items. Defaults to false.

Output shape

Returns unread message data for the specified user. The return type depends on the 'Return Full Response' setting: if disabled (default), structured n8n items are returned representing the unread messages; if enabled, the complete raw API response payload is returned.

The node relies on the shared GenericFunctions helpers (specifically infomaniakApiRequest) to construct and execute the API call against the Infomaniak kChat service.

Examples

Example 1: Fetch unread messages for a user in a specific team using OAuth2.

Authentication: OAuth2; Team Name: my-team; User Id: ; Return Full Response: false

Links

Discussion