---
sidebar_position: 21
---
# Get chats structure
Get chat fields structure
`Function GetChatStructure(Val Clear = False) Export`
| Parameter | CLI option | Type | Description |
|-|-|-|-|
| Clear | --empty | Boolean | True > structure with empty values, False > field types at values |
Returns: Structure of KeyAndValue - Fields structure
```bsl title="Code example"
Result = OPI_Bitrix24.GetChatStructure();
```
```sh title="CLI command example"
oint bitrix24 GetChatStructure --empty %empty%
```
```json title="Result"
{
"TYPE": "",
"TITLE": "",
"DESCRIPTION": "",
"COLOR": "",
"MESSAGE": "",
"USERS": "",
"AVATAR": "",
"OWNER_ID": ""
}
```