Channel Types

Channel types allow you to configure which features are enabled, and how permissions work. For example you can disable typing indicators, give rights to moderators, or configure channels to be accessible even if you’re not a member.

The easiest way to change your channel types is the dashboard. The docs below show how to change channel types via the API.

Built-in Channel types

There are five built-in channel types with good default for these use cases.

  • Messaging: Good default for dating, marketplace, and other social app chat use cases
  • AI: For creating user to LLM style chat experiences, text, voice & video.
  • Livestream: For livestreaming or live shopping experiences
  • Team: If you want to build your own version of Slack or something similar, start here.
  • Gaming: Defaults for adding chat to video games.

The five default channel types come with good default permission policies. You can find more information on how to manage permissions in the Channel Types section.

Updating or creating a channel type

// Create a new channel type
await channelTypeClient.CreateChannelTypeAsync(new ChannelTypeWithStringCommandsRequest
{
  Name = "my-channel-type",
  TypingEvents = true,
  ReadEvents = true,
  Reactions = true,
  Replies = true
});

// Update an existing channel type
await channelTypeClient.UpdateChannelTypeAsync("my-channel-type", new ChannelTypeWithStringCommandsRequest
{
  Reactions = false,
  MaxMessageLength = 1000
});

Features you can enable/disable

Channel types can be configured with specific permissions and features.

As you can see in the examples below, you can define your own Channel types and configure them to fit your needs. The Channel type allows you to configure these features:

  • typing_events : Controls if typing indicators are shown.
  • read_events : Controls whether the chat shows how far you’ve read.
  • connect_events : Determines if events are fired for connecting and disconnecting to a chat.
  • custom_events : Determines if channel watchers will receive custom events.
  • reactions : If users are allowed to add reactions to messages.
  • search : Controls if messages should be searchable.
  • replies : Enables message threads and replies.
  • quotes : Allows members to quote messages (inline replies).
  • mutes : Determines if users are able to mute other users.
  • uploads : Allows image and file uploads within messages.
  • url_enrichment : When enabled, messages containing URLs will be enriched automatically with image and text related to the message. This is disabled by default for the livestream channel type and we do not recommend enabling it for performance reasons.
  • count_messages : Enables message counting on new channels. When enabled the message count will be present in the channel response.
  • user_message_reminders : Allow users to set reminders for messages. More information can be found here.
  • mark_messages_pending : When enabled, messages marked as pending are only visible to the sender until approved.
  • polls : Allows channel members to create and vote on polls.
  • skip_last_msg_update_for_system_msgs : When disabled, system messages will affect the channel’s last_message_at timestamp.
  • location_sharing : Allows members to share their locations with other members.
  • read_receipts : Allows members to see when messages are delivered (delivery events).
  • partitioning : Automatically chunks messages into virtual partitions for better performance at larger scales (dynamic partitioning).
  • push_notifications : If messages are allowed to generate push notifications.

Channel Types Fields

nametypedescriptiondefaultoptional
namestringThe name of the channel type must be unique per application
max_message_lengthintThe max message length5,000
typing_eventsbooleanEnable typing eventstrue
read_eventsbooleanEnable read eventstrue
connect_eventsbooleanEnable connect eventstrue
custom_eventsbooleanEnable custom eventstrue
reactionsbooleanEnable message reactionstrue
searchbooleanEnable message searchtrue
repliesbooleanEnable replies (threads)true
quotesbooleanAllow quotes/inline repliestrue
mutesbooleanEnable mutestrue
uploadsbooleanEnable file and image uploadtrue
url_enrichmentbooleanAutomatically enrich URLstrue
count_messagesbooleanEnables message counting on new channelsfalse
user_message_remindersbooleanAllow users to set reminders and bookmarks for messagesfalse
mark_messages_pendingbooleanMessages marked as pending are only visible to the sender until approvedfalse
pollsbooleanAllow channel members to create and vote on pollsfalse
skip_last_msg_update_for_system_msgsbooleanWhen disabled, system messages will affect the channel’s last_message_at timestampfalse
location_sharingbooleanAllow members to share their locations with other membersfalse
read_receiptsbooleanAllow members to see when messages are delivered (delivery events)true
partitioningbooleanAutomatically chunks messages into virtual partitions for better performance at larger scalesfalse
push_notificationsbooleanEnable push notificationstrue
automodstringDisabled, simple or AI are valid options for the Automod (AI based moderation is a premium feature)simple
commandslist of stringThe commands that are available on this channel type[]

You need to use server-side authentication to create, edit, or delete a channel type.

Creating a Channel Type

await channelTypeClient.CreateChannelTypeAsync(new ChannelTypeWithStringCommandsRequest
{
  Name = "public",
  Reactions = false,
  Mutes = false
});

If not provided, the permission settings will default to the ones from the built-in “messaging” type.

Please note that applications have a hard limit of 50 channel types. If you need more than this please have a look at the Multi-tenant & Teams section.

List Channel Types

You can retrieve the list of all channel types defined for your application.

await channelTypeClient.ListChannelTypesAsync();

Get a Channel Type

You can retrieve a channel type definition with this endpoint.

Features and commands are also returned by other channel endpoints.

await _channelTypeClient.GetChannelTypeAsync("public");

Edit a Channel Type

Channel type features, commands and permissions can be changed. Only the fields that must change need to be provided, fields that are not provided to this API will remain unchanged.

await channelTypeClient.UpdateChannelTypeAsync("public", new ChannelTypeWithStringCommandsRequest
{
  Replies = false,
  Commands = new List<string> { "all" }
});

Features of a channel can be updated by passing the boolean flags:

await _channelTypeClient.UpdateChannelTypeAsync("public", new ChannelTypeWithStringCommandsRequest
{
  TypingEvents = false,
  ReadEvents = true,
  ConnectEvents = true,
  Search = false,
  Reactions = true,
  Replies = false,
  Mutes = true,
});

Settings can also be updated by passing in the desired new values:

await channelTypeClient.UpdateChannelTypeAsync(_channelType.Name, new ChannelTypeWithStringCommandsRequest
{
  Automod = Automod.Disabled,
  MaxMessageLength = 140,
  Commands = new List<string> { "ban", "unban" },
});

Remove a Channel Type

await channelTypeClient.DeleteChannelTypeAsync("public");

You cannot delete a channel type if there are any active channels of that type.