Unread Reminders

Unread reminders notify users about messages they have not read. Use them to trigger emails, push notifications, or SMS.

When enabled, Stream Chat sends a webhook or SQS event when a user has an unread message in a channel (with 10 or fewer members) for longer than the configured interval.

Enabling Unread Reminders

Enable reminders for a channel type and configure the reminder interval.

// Enable reminders for the messaging channel type
await client.updateChannelType("messaging", {
  reminders: true,
});

// Change reminders interval to 1 hour (default is 5 minutes)
await client.updateAppSettings({ reminders_interval: 3600 });

The reminder interval can be set between 60 seconds and 86,400 seconds (24 hours). The default is 5 minutes.

Requirements

Reminders are sent only when all conditions are met:

  • The channel has 10 members or fewer
  • The channel type has reminders enabled
  • The channel has at least one unread message
  • The channel has read_events enabled
  • The unread message type is regular or system
  • The message is not deleted
  • The channel is not deleted

The default channel member limit is 10. To increase this limit, upgrade to an Enterprise plan and contact support.

Reminder Event

Reminder events contain all information needed to send notifications without additional API calls.

Event Fields

FieldDescription
typeEvent type: user.unread_message_reminder
userThe user who has unread messages
channelsObject containing channels with unread messages (up to 10 channels)
created_atTimestamp when the event was sent

Channel Object Fields

FieldDescription
channelChannel object including member list
messagesLast 5 messages in the channel (in descending order)