/
webHook endContact
webHook endContact
The configured webhook is called to notify the CTI about the end of a chat.
Method: http post
Authorization:
Type | Mandatory |
---|---|
bearer | yes |
Request Body:
Type: json
Name | Mandatory | Type | Description |
---|---|---|---|
cid | yes | string | Unique contact identifier |
event | yes | string | Identifies event: end |
serv_name | yes | string | Service name |
beginTime | yes | number / string | Chat start time |
endTime | yes | number / string | Chat end time |
title | yes | string | Chat title |
lang | yes | string | Chat language |
userID | yes | string | Unique user identifier |
users | yes | object | An object that contains the participants to the chat room. |
dataCollections | yes | object | An object that contains the chat Data Collection Object |
widgetid | yes | string | Unique widget identifier |
Example:
Request Body
{
cid: contact.id,
event: "end",
serv_name: contact.serv_name,
beginTime: contact.beginTime,
endTime: contact.endTime,
title: contact.title,
lang: contact.lang,
userID: contact.userID,
users: contact.users,
dataCollections: contact.dataCollections,
widgetid: contact.widgetid
}
, multiple selections available,
Related content
Channel API
Channel API
Read with this
webHook newContact
webHook newContact
More like this
getChatHistory
getChatHistory
Read with this
endContactByChatID
endContactByChatID
More like this
getContactByChatID
getContactByChatID
More like this
endAllContacts
endAllContacts
More like this