> ## 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.

# Message Model

| Property name       | Type             | Description                                                                                                                                                                                                                      |
| ------------------- | ---------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| \_id                | string           | ID of the message. Generated automatically by the server after message creation.                                                                                                                                                 |
| created\_at         | datetime         | Date & time when a record was created, filled automatically.                                                                                                                                                                     |
| updated\_at         | datetime         | Date & time when a record was updated, filled automatically.                                                                                                                                                                     |
| chat\_dialog\_id    | string           | ID of dialog to which current message is connected. Generated automatically by the server after message creation.                                                                                                                |
| message             | string           | Message body.                                                                                                                                                                                                                    |
| date\_sent          | timestamp        | Message date sent.                                                                                                                                                                                                               |
| sender\_id          | int              | Message sender ID.                                                                                                                                                                                                               |
| recipient\_id       | int              | Message recipient ID.                                                                                                                                                                                                            |
| read                | int              | (**Deprecated**) Read message status. Displayed as `read=1` after retiriving by the opponent. Works only for `type=3` (PRIVATE) dialog. Remains as `read=0` after retiriving for `type=2` (GROUP) and `type=1` (PUBLIC) dialogs. |
| read\_ids\[]        | array of int     | Array of users' IDs who read messages. Works only for `type=2` (GROUP) dialog.                                                                                                                                                   |
| delivered\_ids\[]   | array of int     | Array of users' IDs who received the messages.                                                                                                                                                                                   |
| attachments\[]      | array of objects | Each attachment object contains 3 required keys:`id` - link to file ID in QuickBlox,`type` - audio/video/image,`url` - link to file in Internet.                                                                                 |
| \{custom\_field\_N} | any              | Name of the custom field. Chat message can be extended with additional fields and contain any other user key-value custom parameters. Can be many 1..N.                                                                          |
