Chat REST API Messages Response Objects
The Messages request returns an array of objects that represent all the events that occurred during an agent’s chat with a chat customer.
This request can return several subtypes with unique response bodies, depending on the events that occurred within the chat.
Here is an example of the structure of a Messages response array:
-
Indicates that the agent has been disconnected from the chat.
-
Indicates that the agent is not typing a message to the chat visitor.
-
Indicates that the agent is typing a message to the chat visitor.
-
Returns the current chat session data for the chat visitor. This request is used to restore the session data for a chat visitor’s chat session after a ReconnectSessionrequest is sent.
-
Indicates that the chat has ended.
-
Indicates that an agent has accepted a chat request and is engaged in a chat with a visitor.
-
Indicates a new chat message has been sent from an agent to a chat visitor.
-
Indicates that the chat request was not successful.
-
Indicates that the chat request was successful and routed to available agents.
-
Indicates the chat was transferred from one agent to another.
-
Indicates a custom event was sent from an agent to a chat visitor during a chat.
-
Indicates the URL of the Web page the chat visitor is currently viewing.
-
Indicates the new position of the chat visitor in the chat queue when the visitor’s position in the queue changes.
-
Lists the sensitive data rules.