# API user.info - unread messages and count of

**URL:** https://forums.rocket.chat/t/api-user-info-unread-messages-and-count-of/1152
**Category:** Feature Requests (historic archive)
**Created:** [June 6, 2018, 6:08am UTC](https://forums.rocket.chat/t/api-user-info-unread-messages-and-count-of/1152 "2018-06-06T06:08:52Z")
**Posts on this page:** 10
**Page:** 1

<div class="post-metadata">

### Author: ![MaqsYo](https://avatars.discourse-cdn.com/v4/letter/m/b3f665/32.png) [@MaqsYo](https://forums.rocket.chat/u/MaqsYo)
#### Post date: [June 6, 2018, 6:08am UTC](https://forums.rocket.chat/t/api-user-info-unread-messages-and-count-of/1152/1 "2018-06-06T06:08:52Z")

</div>

Please add some more informations like:

**countOfUnreadMessages**  
**unreadMessages**

for a specific user

Currently i have to iterate overall channels of the user and have to count all unread messages of the user.

---

<div class="post-metadata">

### Author: ![jamirkhanpathan](https://avatars.discourse-cdn.com/v4/letter/j/dc4da7/32.png) [@jamirkhanpathan](https://forums.rocket.chat/u/jamirkhanpathan)
#### Post date: [June 13, 2018, 11:09am UTC](https://forums.rocket.chat/t/api-user-info-unread-messages-and-count-of/1152/2 "2018-06-13T11:09:36Z")

</div>

Can you share the example for the same please…🙂  
Because i didn’t found its examples any where in the documents as well as on the internet.

---

<div class="post-metadata">

### Author: ![MaqsYo](https://avatars.discourse-cdn.com/v4/letter/m/b3f665/32.png) [@MaqsYo](https://forums.rocket.chat/u/MaqsYo)
#### Post date: [June 15, 2018, 6:55am UTC](https://forums.rocket.chat/t/api-user-info-unread-messages-and-count-of/1152/3 "2018-06-15T06:55:56Z")

</div>

Please wait for this new API-key

To get the unread messages of a specific user is, at the moment, unusable and not good for the server

---

<div class="post-metadata">

### Author: ![JSzaszvari](https://sea1.discourse-cdn.com/flex021/user_avatar/forums.rocket.chat/jszaszvari/32/86_2.png) [@JSzaszvari](https://forums.rocket.chat/u/JSzaszvari)
#### Post date: [June 15, 2018, 7:22am UTC](https://forums.rocket.chat/t/api-user-info-unread-messages-and-count-of/1152/4 "2018-06-15T07:22:05Z")

</div>

> [@MaqsYo](#):
>
> dirty as fuck and not good for the server

There’s no need at all to resort to using language like this.

Whilst I don’t have a issue with people using foul language at all, it’s definitely not appropriate for a feature request and the only thing it will accomplish is causing this to get ignored.

Please try and have a bit of respect for the people who work tirelessly on this project so that you can use it for $0

---

<div class="post-metadata">

### Author: ![MaqsYo](https://avatars.discourse-cdn.com/v4/letter/m/b3f665/32.png) [@MaqsYo](https://forums.rocket.chat/u/MaqsYo)
#### Post date: [June 15, 2018, 7:47am UTC](https://forums.rocket.chat/t/api-user-info-unread-messages-and-count-of/1152/5 "2018-06-15T07:47:03Z")

</div>

I’m sorry, but MY solution is dirty, also i won’t share it. And Because of the many api-requests it IS a problem for the server to handle these.  
I do not insult RocketChat with this. I’m just asking for more user-informations and tried to tell jamirkhanpathan that it would be better to wait for this feature, instead of using my dirty code-snippet.

---

<div class="post-metadata">

### Author: ![jamirkhanpathan](https://avatars.discourse-cdn.com/v4/letter/j/dc4da7/32.png) [@jamirkhanpathan](https://forums.rocket.chat/u/jamirkhanpathan)
#### Post date: [July 9, 2018, 7:36am UTC](https://forums.rocket.chat/t/api-user-info-unread-messages-and-count-of/1152/6 "2018-07-09T07:36:37Z")

</div>

Hi MaqsYo / JSzaszvari

I think the better way is to wait till the developers make the new API on the same request. Thanks for your suggestions.

Thanks,  
Jamirkhan Pathan

---

<div class="post-metadata">

### Author: ![jamirkhanpathan](https://avatars.discourse-cdn.com/v4/letter/j/dc4da7/32.png) [@jamirkhanpathan](https://forums.rocket.chat/u/jamirkhanpathan)
#### Post date: [September 12, 2018, 5:52am UTC](https://forums.rocket.chat/t/api-user-info-unread-messages-and-count-of/1152/7 "2018-09-12T05:52:23Z")

</div>

Hi Team,

Any update on this request?

Thanks,  
Jamirkhan Pathan

---

<div class="post-metadata">

### Author: ![MaqsYo](https://avatars.discourse-cdn.com/v4/letter/m/b3f665/32.png) [@MaqsYo](https://forums.rocket.chat/u/MaqsYo)
#### Post date: [November 12, 2018, 6:33am UTC](https://forums.rocket.chat/t/api-user-info-unread-messages-and-count-of/1152/8 "2018-11-12T06:33:20Z")

</div>

8 Votes!  
Come on guys! …  
Please leave a reply so we know why you don’t like to invest time in this

---

<div class="post-metadata">

### Author: ![marcos.defendi](https://sea1.discourse-cdn.com/flex021/user_avatar/forums.rocket.chat/marcos.defendi/32/505_2.png) [@marcos.defendi](https://forums.rocket.chat/u/marcos.defendi)
#### Post date: [March 7, 2019, 5:57pm UTC](https://forums.rocket.chat/t/api-user-info-unread-messages-and-count-of/1152/9 "2019-03-07T17:57:21Z")

</div>

Guys, I opened [a PR](https://github.com/RocketChat/Rocket.Chat/pull/13634) to add the property to the response if the user has the necessary permission. 🙂

---

<div class="post-metadata">

### Author: ![MaqsYo](https://avatars.discourse-cdn.com/v4/letter/m/b3f665/32.png) [@MaqsYo](https://forums.rocket.chat/u/MaqsYo)
#### Post date: [March 8, 2019, 6:32am UTC](https://forums.rocket.chat/t/api-user-info-unread-messages-and-count-of/1152/10 "2019-03-08T06:32:15Z")

</div>

Thanks man! These are great news!
