News & Announcements User Community Developer Community

Welcome to the RingCentral Community

Please note the community is currently under maintenance and is read-only.

Make sure to review our Terms of Use and Community Guidelines.
  Please note the community is currently under maintenance and is read-only.
Home » Developers
Glip API, read/unread messages
Tags: rest api
Jan 14, 2021 at 12:38pm   •   1 replies  •  0 likes
Caleb Bergman

There are API endpoints to mark messages chats read and unread. The Mark Chat as Read endpoint’s description states, “Sets the specified chat status to 'Read' for the current user.”

The GetChats documentation states that a chat can have a status property, but only for ‘Team’ chats; the Team status.

As you are evidently unable to use the status property to know a chat’s read status, and there is no readStatus on a chat like there is for messages in the SMS & Fax API, how is one suppose to know when a particular chat/conversation is read or unread?

1 Answer
answered on Jan 15, 2021 at 7:32am  

Just check with the team. Unfortunately, there is no read/unread message attribute in Glip message.

on Jan 15, 2021 at 11:08am   •  0 likes

That is very unfortunate indeed. I have witnessed this functionality in the RC Desktop application as well as the Embeddable project, so I know it's possible.


Looking closer at the Embeddable project it would appear this is being handled in localStorage by recording a datestamp of the latest post that has been read in a given chat. I'll have to build something up like that until if/when the Glip API supports it.

Thank you.

on Jan 15, 2021 at 11:42am   •  0 likes

This is the engineer explained to me:

There is no read/unread attribute per message, but groups have the number of messages, and each user for every group has "last read message." All together it allows to calculate unread message count per group and create "unread from here" functionality. Nothing of this is exposed via public API.

on Jan 15, 2021 at 12:36pm   •  0 likes

Thank you for the follow up Phong Vu.

Hmmmm, I'm not seeing any message count on the response from GetGroups or GetGroup, nor from GetChats for a chat type of "Group." Nor am I seeing a "last read message" property for any User on any of the API calls I've tried. To my understanding the Group APIs are deprecated anyhow.



  "id": "",
  "name": null,
  "description": null,
  "type": "Group",
  "status": "Active",
  "members": ["","",""],
  "isPublic": null,
  "creationTime": "2021-01-15T20:22:17.368Z",
  "lastModifiedTime": "2021-01-15T20:22:17.368Z"

I should be able to mimic how the Embeddable project appears to do it. It'll just be local to the machine instead of following the User device to device.

A new Community is coming to RingCentral!

Posts are currently read-only as we transition into our new platform.

We thank you for your patience
during this downtime.

Try Workflow Builder

Did you know you can easily automate tasks like responding to SMS, team messages, and more? Plus it's included with RingCentral Video and RingEX plans!

Try RingCentral Workflow Builder

Developer Platform
Integrated Apps
App Gallery
Developer support
Games and rewards

Resource center
Product Releases
App Download
RingCentral App login
Admin Portal Login
Contact Sales
© 1999-2024 RingCentral, Inc. All rights reserved. Legal Privacy Notice Site Map Contact Us