Name | Type | Description |
---|
_id
Status | ||
---|---|---|
|
Internal object identifier
room
Status | ||
---|---|---|
|
Chat unique identifier
id
Status | ||
---|---|---|
|
Message unique identifier
messageType
Status | ||
---|---|---|
|
Type of the message. Can assume one of the following values:
“TEXT”
“IMAGE”
“DOCUMENT”
“LINK”
“videoRequestedByAgent”
“videoRequestedByCustomer”
“videoAccepted”
“videoRejected”
“videoStarted”
“videoEnded”
“screenSharingStarted”
“screenSharingEnded”
“endChat”
“leave”
ts
Status | ||
---|---|---|
|
Timestamp of when message was sent
isAgent
Status | ||
---|---|---|
|
Indicates if the person who sent the message is an agent
id [user object]
Status | ||
---|---|---|
|
user unique identifier
firstIP
Status | ||
---|---|---|
|
Agent/customer IP
text
Status | ||
---|---|---|
|
Only in “TEXT” message, contains the message sent
img
Status | ||
---|---|---|
|
Contains base64 image message
caption
Status | ||
---|---|---|
|
Message caption
documentType
Status | ||
---|---|---|
|
Document format
fileName
Status | ||
---|---|---|
|
Contains name of the document/image message
url
Status | ||
---|---|---|
|
Contains the url of the link message
deliverySuccess
Status | ||
---|---|---|
|
Indicates if the message has been succesfully delivered
deliveryErrorReason
Status | ||
---|---|---|
|
In case of delivery failed, describes the error occurred
Name | Type | Description | ||||
---|---|---|---|---|---|---|
room |
| Chat unique identifier | ||||
data |
| Object containing message info. See message data object for more details. |
...