Skip to main content
GET

Recipes

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.

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

chat_dialog_ids
string
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

QB-Token
string
required
A user or application session token. See Authentication page to learn more about session tokens. Must be used either QB-Token or Authorization.
Authorization
string
default:"ApiKey {your_api_key}"
API key from Dashboard. Expected format: ApiKey {your_api_key}. Must be used either QB-Token or Authorization.
On-Behalf-Of
string
User ID. The user ID of the user on whose behalf the request is being made.

Responses

A successful response
total
integer
An error response
errors
array of strings