Chat Object
This object represents the information of a chat. Each chat object comes with the following properties:
Attribute | Description |
owner | Indicates the user id of the user who initiated a chat. |
id | Chat ID, to help identify the "type" of chat. (depends on "type") |
chat_type | The type of chat. (dm/ channel/ thread/ bot) |
title | The title of the chat. |
parent_resource (in case of thread) | Information about the channel in which the thread is present. |
members | JSON array of users who are members of the chat. |
The members object contains the following properties:
Attribute | Description |
id | User ID (unique string identifier) |
first_name | User's first name |
last_name | User's last name |
Email address of the user | |
status | User's status, depends on their availability |
A sample chat object is shown below:
{
"owner": "15204570",
"members": [
],
"parent_resource": {
"channel_unique_name": "privatechannel",
"channel_id": "P1000000022001"
"id": "CT_1259543746479073445_15204723",
"type": "channel",
"title": "#Private Channel"
},
"id": "CT_1259543746479073445_15204723-T-1256254397782653074",
"type": "thread",
"title": “Zylker campaign 24’ discussions”