Name | Type | Description |
|---|---|---|
_id | STRING | Internal object identifier |
room | STRING | Chat unique identifier |
id | STRING | Message unique identifier |
messageType | STRING | Type of the message. Can assume one of the following values: “TEXT” “IMAGE” “DOCUMENT” “LINK” |
ts | NUMBER | Timestamp of when message was sent |
isAgent | BOOLEAN | Indicates if the person who sent the message is an agent |
id [user object] | STRING | user unique identifier |
text | STRING | Only in “TEXT” message, contains the message sent |
{
"data" : {
"id" : "5331c71f-46e7-4f5c-acbb-d7d0eaf0813c",
"messageType" : "TEXT",
"content" : {
"text" : "hello",
"user" : {
"id" : "USER_gverde1@acd.enghouse.com",
"isAgent" : true
}
},
"ts" : 1569248116642.0
},
"_id" : "5d88d3951190da27f4fecedb",
"room" : "CHAT_0addc50f-6866-40d1-bcbd-9da802c3fb9e"
}