Stream Chat icon

Stream Chat

Server-side Stream Chat operations

Channel → Send Action

AI-generated

Summary

Send a custom action related to a specific message within a given channel in Stream Chat, using the channel type and ID to identify the channel, and the message ID to specify the target message.

Inputs

  • Channel Type — Type of the channel, such as 'messaging' for 1-on-1 chats, 'team' for group channels, or 'livestream' for broadcast channels.
  • Channel ID (required) — Unique identifier of the channel, e.g., 'general' or 'team-alpha'. Combined with Channel Type to identify the channel.
  • Message ID (required) — The ID of the message for which the action is being sent.
  • Form Data — JSON object containing custom key-value pairs representing the action details, for example, {"action": "vote", "option": "yes"}.

Output shape

a single JSON object containing the API response with details about the sent action.

The output includes the result of the sendAction call to the Stream Chat API for the specified channel and message, including any confirmation or error details as returned from the API.

Discussion