---
sidebar_position: 21
---
import Tabs from '@theme/Tabs';
import TabItem from '@theme/TabItem';
# Get chats structure
Get chat fields structure
`Function GetChatStructure(Val Clear = False) Export`
| Parameter | CLI option | Type | Required | Description |
|-|-|-|-|-|
| Clear | --empty | Boolean | ✖ | True > structure with empty values, False > field types at values |
Returns: Structure of KeyAndValue - Fields structure
```bsl title="1C:Enterprise/OneScript code example"
Result = OPI_Bitrix24.GetChatStructure();
```
```bash
oint bitrix24 GetChatStructure \
--empty false
```
```batch
oint bitrix24 GetChatStructure ^
--empty false
```
```json title="Result"
{
"TYPE": "",
"TITLE": "",
"DESCRIPTION": "",
"COLOR": "",
"MESSAGE": "",
"USERS": "",
"AVATAR": "",
"OWNER_ID": ""
}
```