Skip to main content
GET
/
chat
/
Dialog
/
{chat_dialog_id}
/
notifications.json
curl -X GET \
-H "Content-Type: application/json" \
-H "QB-Token: 1319b4991186601ccf4df2d0fa89565f68012bba" \
https://api.quickblox.com/chat/Dialog/5d75651fa0eb4732190b72aa/notifications.json
{
  "notifications": {
    "enabled": 0
  }
}

Recipes

1

1. Use 'Authorization' header to pass API key

curl -X GET \
-H "Content-Type: application/json" \
-H "Authorization: ApiKey 28irlNAGasWDSupO9Vw0BBMZfuHrAUYKpmroS9yBORI" \
-H "On-Behalf-Of: 123" \
https://api.quickblox.com/chat/Dialog/5d75651fa0eb4732190b72aa/notifications.json
2

2. Use 'On-Behalf-Of' header to pass user_id

To execute a request on behalf of a specific user.
curl -X GET \
-H "Content-Type: application/json" \
-H "Authorization: ApiKey 28irlNAGasWDSupO9Vw0BBMZfuHrAUYKpmroS9yBORI" \
-H "On-Behalf-Of: 123" \
https://api.quickblox.com/chat/Dialog/5d75651fa0eb4732190b72aa/notifications.json
3

3. Set dialog ID

Specify the ID of the dialog whose setting status you want to get.
curl -X GET \
-H "Content-Type: application/json" \
-H "Authorization: ApiKey 28irlNAGasWDSupO9Vw0BBMZfuHrAUYKpmroS9yBORI" \
-H "On-Behalf-Of: 123" \
https://api.quickblox.com/chat/Dialog/5d75651fa0eb4732190b72aa/notifications.json
4

4. As result, the API returns the notification settings status

curl -X GET \
-H "Content-Type: application/json" \
-H "Authorization: ApiKey 28irlNAGasWDSupO9Vw0BBMZfuHrAUYKpmroS9yBORI" \
-H "On-Behalf-Of: 123" \
https://api.quickblox.com/chat/Dialog/5d75651fa0eb4732190b72aa/notifications.json

Path Parameters

chat_dialog_id
string
required
ID of the dialog to which a current message is connected. Generated automatically by the server after message creation

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
notifications
object
An error response
curl -X GET \
-H "Content-Type: application/json" \
-H "QB-Token: 1319b4991186601ccf4df2d0fa89565f68012bba" \
https://api.quickblox.com/chat/Dialog/5d75651fa0eb4732190b72aa/notifications.json
{
  "notifications": {
    "enabled": 0
  }
}
I