Stream Chat icon

Stream Chat

Server-side Stream Chat operations

Channel → Create

AI-generated

Summary

Create a new chat channel with a specified type, unique identifier, and optional initial members list in a Stream Chat application.

Inputs

  • Channel Type — The type of the channel to create, such as "messaging" for direct chats, "team" for group channels, or "livestream" for broadcast channels. Defaults to "messaging".
  • Channel ID (required) — A unique identifier for the channel (e.g., "general", "random", "team-alpha"). This, combined with the channel type, forms the full channel CID.
  • Members — Optional comma-separated list of user IDs to initially add as members of the channel (e.g., "john_doe,jane_smith,admin123"). No spaces allowed around commas.

Output shape

a single record

Returns the created channel object in JSON format. If multiple input items are processed with 'Execute Once' enabled, returns corresponding channel creation results for each input. Errors will be returned in the output JSON with an error message if 'Continue On Fail' is enabled.

Examples

Example 1: Create a public team channel with initial members

Set 'Channel Type' to 'team', specify 'Channel ID' as 'team-alpha', and list members as 'user1,user2,user3'. The node creates the group channel with these members.

Discussion