Chat is represented as simple flat JSON objects with the following keys:
Name | Type | Description |
---|---|---|
id |
integer | Id of the chat. |
sessionId |
guid | Id of the session. |
startTime |
datetime | Time when the chat started. |
endTime |
datetime | Time when the chat ended. |
isQueued |
bool | Whether the chat is queued or not. |
ifAudioChatHappened |
bool | Whether audio chat happened during the live chat session or not. |
ifVideoChatHappened |
bool | Whether video chat happened during the live chat session or not. |
status |
string | Allowed values are "normal", "refused", "missed", "switchedToMessage". |
messages |
string | Messages of the chat. |
requestingPageTitle |
string | Page title of the requesting page. |
requestingPageURL |
string | Page URL of the requesting page. |
source |
string | Allowed values are "chatButton", "autoInvitation", "manualInvitation". |
autoInvitationId |
guid | Id of the auto invitation. |
preChatSocialMediaSource |
string | Allowed values are "none", "facebook". |
preChatSocialProfileURL |
string | Pre-chat social profile URL of the chat. |
preChatName |
string | Pre-chat name of the chat. |
preChatEmail |
string | Pre-chat email of the chat. |
preChatPhone |
string | Pre-chat phone of the chat. |
preChatCompany |
string | Pre-chat company of the chat. |
preChatProductService |
string | Pre-chat product service of the chat. |
preChatTicketId |
integer | Id of the ticket to which this chat is attached. |
departmentId |
guid | Id of the department. |
requestedTime |
datetime | The time when the chat is requested. |
avgResponseTime |
integer | The average response time of the chat. |
visitorMessagesCount |
integer | The number of messages sent by visitors. |
agentMessagesCount |
integer | The number of messages sent by agents. |
campaignId |
guid | Id of the campaign. |
waitingTime |
integer | The waiting time before the chat got accepted/missed. |
duration |
integer | The duration of the chat. |
cannedMessageCount |
integer | The number of canned messages sent during the chat. |
botDuration |
integer | The bot duration of the chat. |
agentDuration |
integer | The agent duration of the chat. |
lastMessageSentBy |
string | Allowed values are "visitor", "agent", "chatBot", "system". |
botId |
guid | Id of the bot. |
guid |
guid | Guid of the chat. |
visitorId |
guid | Id of the visitor. |
contactIdentityId |
guid | Id of the contact identity. |
Chat Wrap-up JSON Format:
Name | Type | Description |
---|---|---|
chatId |
integer | Id of the chat. |
agentId |
guid | Id of the agent. |
comment |
string | Comment of the wrap-up. |
lastUpdatedTime |
timestamp | Last updated time of the warp-up. |
Chat Segment Result JSON Format:
Name | Type | Description |
---|---|---|
id |
integer | Id of the chat segment result. |
chatId |
integer | Id of the chat. |
segmentId |
guid | Id of the segment. |
logTime |
datetime | Time of the chat segment result. |
JSON Format:
Name | Type | Description |
---|---|---|
chatId |
integer | Id of the chat. |
agentId |
guid | Id of the agent. |
startTime |
datetime | Time when the chat started. |
endTime |
datetime | Time when the chat ended. |
duration |
integer | Duration of the chat. |
id |
integer | Content of the custom page. |
GET livechat/chats/{id}
Name | Type | In | Required | Description |
---|---|---|---|---|
include |
string | query | no | Available values for Include are: "autoInvitation", "campaign", "chatAgent", "chatAttachment", "chatFieldResult", "chatSegmentResult", "chatWrapup", "chatWrapupCategory", "contactIdentity", "department", "postChatSurvey", "session", "visitor". |
id |
int or guid | path | yes | Id of the chat or Guid of the chat. |
Sample Request:
Response:
HTTP/1.1 200 OK
POST livechat/chats:Search
Name | Type | In | Required | Description | |||||||||||||||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
include |
string | query | no | Available values for Include are: "autoInvitation", "campaign", "chatAgent", "chatAttachment", "chatFieldResult", "chatSegmentResult", "chatWrapup", "chatWrapupCategory", "contactIdentity", "department", "postChatSurvey", "session", "visitor". | |||||||||||||||||||||||||||||||||||||||||||||||||||||
pageIndex |
integer | query | no | Page index. | |||||||||||||||||||||||||||||||||||||||||||||||||||||
filters |
array | body | no | Filter array. Available items are: requestedTime, departmentId, agent, botId, categoryOptionId, keywords and other custom filters.
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||
pageSize |
integer | query | no | Page size. The available value is from 10 to 500, and the default value is 50. |
An array of Chat
Sample Request:
Response:
HTTP/1.1 200 OK
POST livechat/chats/{id}:AttachToTicket
Name | Type | In | Required | Description |
---|---|---|---|---|
id |
int | path | yes | Id of the chat. |
utcOffset |
int | body | yes | UTC Offset of the user. |
targetId |
integer | body | yes | Id of the ticket to which this chat is attached. |
dateTimeFormat |
string | body | yes | Datetime format of the user. |
No Content
Sample Request:
Response:
HTTP/1.1 200 OK
POST livechat/missedAndRefusedChats:Search
Name | Type | In | Required | Description |
---|---|---|---|---|
include |
string | query | no | Available values for Include are: "campaign", "chatAgent", "chatWrapupCategory", "contactIdentity", "department". |
pageSize |
integer | query | no | Page size. |
pageIndex |
integer | query | no | Page index. |
filters |
array | body | no | Filter array. Available items are: requestedTime, departmentId, status, campaignId, segmentId. |
An array of Chat
Sample Request:
Response:
HTTP/1.1 200 OK
PUT livechat/chats/{id}
Name | Type | In | Required | Description |
---|---|---|---|---|
preChatTicketId |
integer | body | yes | Id of the ticket to which this chat is attached. |
Sample Request:
Response:
HTTP/1.1 200 OK
DELETE livechat/chats
Name | Type | In | Required | Description |
---|---|---|---|---|
Request body |
json string | body | yes | Id array of the chats. |
No Content
Sample Request:
Response:
HTTP/1.1 200 OK
DELETE livechat/chats/{id}
Name | Type | In | Required | Description |
---|---|---|---|---|
id |
int | path | yes | Id of the chat. |
No Content
Sample Request:
Response:
HTTP/1.1 204 No Content
Chat Wrapup Category is represented as simple flat JSON objects with the following keys:
Name | Type | Description |
---|---|---|
chatId |
integer | Id of the chat which the wrap-up category belongs to. |
categoryOptionId |
guid | Id of the category option which the wrap-up category belongs to. |
id |
selfIncrementId | Id of the chat wrap-up category. |
GET livechat/chatWrapupCategories
Sample Request:
Response:
HTTP/1.1 200 OK
GET livechat/chatWrapupCategories/{id}
Sample Request:
Response:
HTTP/1.1 200 OK
POST livechat/ChatWrapupCategories
Name | Type | In | Required | Description |
---|---|---|---|---|
categoryOptionId |
guid | body | yes | Id of the Category Option which the Chat Wrapup Category belongs to |
chatId |
integer | body | yes | Id of the Chat which the Chat Wrapup Category belongs to |
No Content
Sample Request:
Response:
HTTP/1.1 200 OK
Chat Field Result is represented as simple flat JSON objects with the following keys:
Name | Type | Description |
---|---|---|
id |
selfIncrementId | Id of the chat field result. |
chatId |
integer | Id of the chat which the chat field result belongs to. |
formType |
string | Form field type of the chat field result.Allowed values are "preChat", "offlineMessage", "postChat", "wrapUp", "pciForm", "customVariable". |
fieldId |
guid | Id of the field which the chat field result belongs to. |
fieldName |
string | Name of the field which the chat field result belongs to. |
value |
string | Value of the chat field result. |
url |
string | Url of the chat field result. |
POST livechat/chatFieldResults
An array of chat field results
Name | Type | In | Required | Description |
---|---|---|---|---|
chatId |
int | body | yes | Id of the chat which the chat field result belongs to. |
label |
string | body | no | Label of the chat field result. |
fieldName |
string | body | no | Value of the chat field result. |
fieldId |
guid | body | yes | Id of the field which the chat field result belongs to. |
value |
string | body | no | Value of the chat field result. |
url |
string | body | no | Url of the chat field result. |
order |
int | body | no | Order of the chat field result. |
formType |
string | body | no | Form field type of the chat field result. |
No Content
Sample Request:
Response:
HTTP/1.1 200 OK