webHook endContact

The configured webhook is called to notify the CTI about the end of a chat.

Method: http post

Authorization:

Type

Mandatory

Type

Mandatory

bearer

yes

Request Body:

Type: json

Name

Mandatory

Type

Description

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 }