Name | Type | Description | ||||
---|---|---|---|---|---|---|
_id |
| Internal object identifier | ||||
room |
| Chat unique identifier | ||||
id |
| Message unique identifier | ||||
messageType |
| 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 |
| Timestamp of when message was sent | ||||
isAgent |
| Indicates if the person who sent the message is an agent | ||||
id [user object] |
| user unique identifier | ||||
firstIP |
| Agent/customer IP | ||||
text |
| Only in “TEXT” message, contains the message sent | ||||
img |
| Contains base64 image message | ||||
caption |
| Message caption | ||||
documentType |
| Document format | ||||
fileName |
| Contains name of the document/image message | ||||
url |
| Contains the url of the link message | ||||
deliverySuccess |
| Indicates if the message has been succesfully delivered | ||||
deliveryErrorReason |
| In case of delivery failed, describes the error occurred |
Message Object
Name | Type | Description | ||||
---|---|---|---|---|---|---|
room |
| Chat unique identifier | ||||
data |
| Object containing message info. See message data object for more details. |
...