> ## Documentation Index
> Fetch the complete documentation index at: https://docs.quickblox.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Dialog Model

| Property name             | Type         | Description                                                                                                                                                                                           |
| ------------------------- | ------------ | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| \_id                      | string       | ID of the dialog. Generated automatically by the server after dialog creation.                                                                                                                        |
| user\_id                  | int          | ID of dialog's owner.                                                                                                                                                                                 |
| created\_at               | datetime     | Date & time when a record was created, filled automatically.                                                                                                                                          |
| updated\_at               | datetime     | Date & time when a record was updated, filled automatically.                                                                                                                                          |
| type                      | int          | Type of dialog. Possible values are:`type=1` (PUBLIC\_GROUP)`type=2` (GROUP)`type=3` (PRIVATE)                                                                                                        |
| name                      | string       | Name of a group chat. Makes sense if `type=1` (PUBLIC\_GROUP) or `type=2` (GROUP). The maximum length for the dialog name is 200 symbols.                                                             |
| photo                     | string       | Photo of a group chat. Makes sense if `type=1` (PUBLIC\_GROUP) or `type=2` (GROUP). Can contain a link to a file in Content module, Custom Objects module or just a web link.                         |
| xmpp\_room\_jid           | string       | JID of XMPP room for group chat to connect. Null if `type=3` (PRIVATE). Generated automatically by the server after dialog creation.                                                                  |
| occupants\_ids\[]         | array of int | Array of users' IDs - dialog occupants. Empty array when `type=1` (PUBLIC\_GROUP) because public dialogs available for everyone.                                                                      |
| admin\_ids\[]             | array of int | Array of users' IDs - dialog admins. Applicable only to `type=1` (PUBLIC\_GROUP) and `type=2` (GROUP). For `type=3` (PRIVATE), returns an empty array. Added in v2.52.0.                              |
| last\_message             | string       | Last sent message in this dialog.                                                                                                                                                                     |
| last\_message\_date\_sent | timestamp    | Timestamp of last sent message in this dialog.                                                                                                                                                        |
| last\_message\_user\_id   | int          | ID of the user who sent last message in this dialog.                                                                                                                                                  |
| unread\_messages\_count   | int          | Number of unread messages in this dialog for a current user.                                                                                                                                          |
| is\_join\_required        | int (0 or 1) | Defines whether a user must join the dialog before sending/receiving messages via XMPP. Applies only to `type=2` (GROUP). `0` - join not required. `1` - join required. Null if `type=1` or `type=3`. |
| data                      | object       | - Information about class and fields in Custom Objects. - Any dialog can be extended using Custom Objects to store additional parameters.                                                             |
| data.class\_name          | string       | Class name in Custom Objects.                                                                                                                                                                         |
| data.\{field\_name\_N}    | string       | Field name of class in Custom Objects. Can be many: 1..N.                                                                                                                                             |
