GET
/
chat
/
Dialog
/
{chat_dialog_id}
.json
curl -X GET \
-H "Content-Type: application/json" \
-H "QB-Token: 1319b4991186601ccf4df2d0fa89565f68012bba" \
https://api.quickblox.com/chat/Dialog/5d75393ba28f9a17e1cb0f9e.json
{
  "_id": "5d75393ba28f9a17e1cb0f9e",
  "created_at": "2019-09-08T17:24:11Z",
  "last_message": "sure, I can wait",
  "last_message_date_sent": 1567971414,
  "last_message_id": "5d755856a0eb47411e0b72a9",
  "last_message_user_id": 96753878,
  "name": "New Year 2020 party",
  "occupants_ids": [
    96753878,
    96754523,
    96830631,
    96831328,
    96831397
  ],
  "photo": "68123",
  "type": 2,
  "updated_at": "2019-09-08T19:36:54Z",
  "user_id": 96753878,
  "xmpp_room_jid": "76730_5d75393ba28f9a17e1cb0f9e@muc.chat.quickblox.com",
  "unread_messages_count": 0
}

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 our 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

curl -X GET \
-H "Content-Type: application/json" \
-H "QB-Token: 1319b4991186601ccf4df2d0fa89565f68012bba" \
https://api.quickblox.com/chat/Dialog/5d75393ba28f9a17e1cb0f9e.json
{
  "_id": "5d75393ba28f9a17e1cb0f9e",
  "created_at": "2019-09-08T17:24:11Z",
  "last_message": "sure, I can wait",
  "last_message_date_sent": 1567971414,
  "last_message_id": "5d755856a0eb47411e0b72a9",
  "last_message_user_id": 96753878,
  "name": "New Year 2020 party",
  "occupants_ids": [
    96753878,
    96754523,
    96830631,
    96831328,
    96831397
  ],
  "photo": "68123",
  "type": 2,
  "updated_at": "2019-09-08T19:36:54Z",
  "user_id": 96753878,
  "xmpp_room_jid": "76730_5d75393ba28f9a17e1cb0f9e@muc.chat.quickblox.com",
  "unread_messages_count": 0
}