Newer Version Available

This content describes an older version of this product. View Latest

Request Bodies for Live Agent REST API

To perform a POST or GET request, pass query parameters or create a request body that’s formatted in JSON. Request bodies can contain one or more other request bodies that are nested inside. Each request body can contain unique request properties.

ChasitorInit

Request properties
Property Name Type Description Available Versions
organizationId String The chat visitor’s Salesforce organization ID. 29.0
deploymentId String The ID of the deployment from which the chat originated. 29.0
buttonId String The ID of the button from which the chat originated. 29.0
sessionId String The chat visitor’s Live Agent session ID. 29.0
userAgent String The chat visitor’s browser user agent. 29.0
language String The chat visitor’s spoken language. 29.0
screenResolution String The resolution of the chat visitor’s computer screen. 29.0
visitorName String The chat visitor’s custom name. 29.0
prechatDetails Array of CustomDetail objects The pre-chat information that was provided by the chat visitor. 29.0
prechatEntities Array of Entity objects The records to create when a chat visitor begins a chat. 29.0
buttonOverrides Array of Strings The button override rules that indicate how a chat request will be rerouted. 29.0
receiveQueueUpdates Boolean Indicates whether the chat visitor will receive queue position updates (true) or not (false). 29.0
isPost Boolean Indicates whether the chat request was made properly through a POST request (true) or not (false). 29.0
Request body

ChasitorResyncState

Request properties
Property Name Type Description Available Versions
organizationId String The chat visitor’s Salesforce organization ID. 29.0
Request body

ChasitorSneakPeek

Request properties
Property Name Type Description Available Versions
position integer The position of the Sneak Peek update in the chat. 29.0
text String The text that the chat visitor is typing in the text input area of the chat window. 29.0
Request body

ChatMessage

Request properties
Property Name Type Description Available Versions
text String The text of the chat visitor’s message to the agent. 29.0
Request body

CustomEvent

Request properties
Property Name Type Description Available Versions
type String The type of custom event that occurred, used for adding the event listener on the agent’s side. 29.0
data String Data that’s relevant to the event that was sent to the agent. 29.0
Request body

MultiNoun

Request properties
Name Type Description Available Versions
nouns Array of NounWrapper objects An array of noun objects and their properties that are batched in the MultiNoun request. 29.0
Request body