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

Version 1 Next »

This function calls the CT7 url configured to start a new chat.

Method:

HTTP POST

Authorization: BEARER

Request Body:

Type: JSON

Name

Mandatory

Type

Description

cid

YES

STRING

Unique contact identifier

media

YES

STRING

Identifies media channel

serv

YES

STRING

Unique service identifier

event

YES

STRING

Identifies event: new

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,
  media: "chat",
  serv: contact.servid,
  event: "new",
  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