Forum Discussion

pbaye's avatar
pbaye
Contributor
13 years ago

Unread Private Messages Count in external Application

Hi all,   I would like to display how many private messages are not read yet by the connected community member, on the home page of my standard web application.   So, i think there are 2 possibil...
  • AdamN's avatar
    13 years ago

    Hi pbaye,

     

    There are multiple "mailbox/notes" methods available in the User class of the REST API. These correspond to the private messenger you see in the UI. To get the unread count for a specific user, ie. user with the id 43, your call would look like this:

     

    <base URL for your community>/restapi/vc/users/id/43/mailbox/notes/inbox/unread/count

     

    I hope this helps!