Chat
Get Unread Messages Count
Retrieve an unread count of your chat messages, split across dialogs or just a total value.
GET
Recipes
Display total number of unread messages for each dialog
Display total number of unread messages for each dialog
1
1. Set dialogs IDs.
Specify as many dialogs IDs as you need via comma.
2
2. As a result, the API returns a number of unread messages for each specified dialog.
Display total number of unread messages for each dialog with API key
Display total number of unread messages for each dialog with API key
1
1. Use 'Authorization' header to pass API key
2
2. Use 'On-Behalf-Of' header to pass user id
To execute a request on behalf of a specific user
3
3. Set dialogs IDs
Specify as many dialogs IDs as you need via comma.
4
4. As a result, the API returns a number of unread messages for each specified dialog.
Query Parameters
Array of dialogs IDs to get a count of unread messages for. You also can omit this parameter to receive just a total count of all unread messages.
Headers
A user or application session token. See Authentication page to learn more about session tokens. Must be used either QB-Token or Authorization.
API key from Dashboard. Expected format:
ApiKey {your_api_key}. Must be used either QB-Token or Authorization.User ID. The user ID of the user on whose behalf the request is being made.