Skip to content

User Unread Counts

List of valid attributes:

AttributeDescription
group_chatsNumber of chats with unread messages for the user.
direct_conversationsNumber of direct conversations with unread messages.
chat_threadsNumber of chat threads with unread messages.

Show

This endpoint retrieves the unread counts for the current user.

HTTP Request

GET /api/v1/unread_counts

Example response:

{
"data": {
"id": "current user id",
"type": "unread_counts",
"attributes": {
"group_chats": 2,
"direct_conversations": 1,
"chat_threads": 0
}
}
}