No unread=true flag for /messages endpoint in v3?

I would like to fetch the number of unread messages in v3 api. Based on this thread i could see, that there was this flag in v2. I tried it in v3 and it doesn’t do anything. Was this flag dismissed? And if so, is there no way how i can directly get the number of unread messages without manually counting?

Hi @Dr_Kurt,

Yes, we do support fetching unread messages count in v3 as well.
You can refer to this:
https://www.cometchat.com/docs/javascript-chat-sdk/messaging-receive-message#for-all-one-on-one--group-conversations

Thanks

2 Likes

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.