The method allows you to create a client in Bot Connect.
Request Parameters
| Parameter | Type | Description |
channelType | String (required) | Client channel type (WEB, MOBILE, EMAIL, VIBER, TELEGRAM, VIBERPA, FACEBOOK, VKONTAKTE, YANDEX, WHATSAPP, APPLE_BUSINESS_CHAT). |
appMarker | String (required) | The caption name for messengers or the application type for the SDK. The default value is null. |
clientId | String (required) | The external client ID. |
authorized | Boolean (optional) | The indication of an authorized channel: true (authorized), false (not authorized). The default value is true. |
Curl Request Example
$ curl 'http://localhost:8080/api/v1/chatbot/client-channels' -i -X PUT \
-H 'Content-Type: application/json' \
-H 'Authorization: Bearer <token>' \
-d '{
"channelType" : "WHATSAPP",
"clientId" : "externalClientId",
"appMarker" : "appMarker",
"authorized" : false
'
HTTP Request Example
PUT /api/v1/chatbot/client-channels HTTP/1.1
Content-Type: application/json
Authorization: Bearer <token>
Content-Length: 120
Host: localhost:8080
{
"channelType" : "WHATSAPP",
"clientId" : "externalClientId",
"appMarker" : "appMarker",
"authorized" : false
Successful HTTP Response Example
HTTP/1.1 200 OK
Vary: Origin
Vary: Access-Control-Request-Method
Vary: Access-Control-Request-Headers
Content-Type: application/json
Content-Length: 108
{
"client" : {
"clientId" : "externalClientId",
"threadsClientId" : 1,
"blocked" : false