Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 2 Current »

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 collections.

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
}
  • No labels