# Checking for New Chat Messages via API

**URL:** <https://meta.discourse.org/t/checking-for-new-chat-messages-via-api/309749>\
**Category:** Development\
**Tags:** chat, rest-api\
**Created:** [May 28, 2024, 7:55pm UTC](https://meta.discourse.org/t/checking-for-new-chat-messages-via-api/309749 "2024-05-28T19:55:10Z")\
**Posts on this page:** 1\
**Showing post:** 8

<div class="post-metadata">

**Author:** ![Earnie\_Baird](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/earnie_baird/32/380079_2.png) [@Earnie\_Baird](https://meta.discourse.org/u/Earnie_Baird)\
**Post date:** [May 28, 2024, 8:38pm UTC](https://meta.discourse.org/t/checking-for-new-chat-messages-via-api/309749/8 "2024-05-28T20:38:01Z")

</div>

Thanks… that wasn’t obvious to me.

In tracking is there any way to know which channels are DM and which are public?

If a user has _chat\_header\_indicator\_preference_ set to “Direct Messages and Mentions” I wouldnt want to show a badge for regular new messages in a channel.

---

_[View the full topic](https://meta.discourse.org/t/checking-for-new-chat-messages-via-api/309749)._
