Insert a chat message into the specified chat
Scope:
client
or
operator
id
required
The id of the chat where the message is to be inserted
message
required
The message that will be inserted into the chat
message_type
optional
The message type to be used
message_sub_type
optional
The message subtype to be used
from_name
optional
The name to be used for message sender
payload
The post chat message data
chatMessage
The message that was sent for the invite
createdTime
he date and time the invite was sent in format YYYY-MM-DDTHH:MM:SSZ
fromName
The name of the operator who sent the invite
messageId
The id of the message
messageSubType
The message subtype
messageType
The message type
operatorId
The id of the operator who sent the invite
status
The system response status. Will be ok or error
curl
example request
1
curl -X POST -d '{"message":"Test Message"}'
2
-H "Content-Type: application/json"
3
-H "Authorization: Bearer {{Oauth Token}}"
4
https://developer.livehelpnow.net/api/chat/{{102317790}}/message
example response
1
{
2
"payload": {
3
"chatMessage"
: "Testing chat message endpoint",
4
"createdTime"
: "2021-07-01T07:47:20",
5
"fromName"
: "John",
6
"messageId"
: "12345678",
7
"messageSubType"
: 9,
8
"messageType"
: 3,
9
"operatorId"
: 24638
10
},
11
"status": "ok"
12
}