Channels

LAST EDIT Mar 18 2024

When you retrieve a channel from the API (e.g. using query channels), the read state for all members is included in the response. This allows you to display which messages are read by each user. For each member, we include the last time he or she marked the channel as read.

Unread Messages Per Channel

Copied!

You can retrieve the count of unread messages for the current user on a channel like this:

Unread Mentions Per Channel

Copied!

You can retrieve the count of unread messages mentioning the current user on a channel like this:

Mark All As Read

Copied!

You can mark all channels as read for a user like this: