User Unread Counts
List of valid attributes:
| Attribute | Description |
|---|---|
| group_chats | Number of chats with unread messages for the user. |
| direct_conversations | Number of direct conversations with unread messages. |
| chat_threads | Number 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 } }}