Infomaniak Kchat icon

Infomaniak Kchat

Interact with Infomaniak Kchat API

Actions173

Commands → Execute A Command

AI-generated

Summary

Execute a slash command in an Infomaniak kChat channel.

Inputs

  • authentication — Authentication method for Infomaniak API. Defaults to OAuth2. Select 'API Key' if using a personal access token.
  • teamName (required) — Your kChat team name (the subdomain in https://.kchat.infomaniak.com). This is the subdomain part of the team's kChat URL.
  • body_channel_id (required) — The unique identifier of the kChat channel where the command will execute.
  • body_command (required) — The slash command to execute, including any parameters. Example: '/echo bounces around the room'.
  • returnFullResponse — When set to true, the full API response is returned as workflow data. When false (default), a simplified result item is returned.

Output shape

The operation returns a boolean true on success when returnFullResponse is false, or the complete Infomaniak API response object when returnFullResponse is true.

All four parameters (teamName, body_channel_id, body_command) are mandatory. The authentication and returnFullResponse parameters are optional with sensible defaults.

Examples

Example 1: Post a message to a kChat channel

Set authentication to OAuth2 (or API Key), teamName to your kChat subdomain, body_channel_id to the target channel ID, and body_command to '/msg Hello, kChat!'. Leave returnFullResponse as false for a simple success indicator.

Links

Discussion