InitForClient
Header parameters
Content-Typestring · enumRequiredExample:
application/json
Possible values: x-api-keystringRequiredExample:
Api Key Gateway
x-apikey-01
xp-api-keystringRequiredExample:
XBot will generate an xp-api-key and provide it to you. This key is used for authentication when XBot interacts with your system
xp-apikey-01
Body
Responses
200
Token initialized successfully
application/json
default
Unexpected error
application/json
post
POST /partner/xpbot/api/webchat/initForClient HTTP/1.1
Host: xbot-i3p-uat.a4b.vn
Content-Type: application/json
x-api-key: x-apikey-01
xp-api-key: xp-apikey-01
Accept: */*
Content-Length: 255
{
"userInfo": {
"id": "nguyenvana",
"name": "Nguyen Van A",
"email": "[email protected]",
"phone": "84988883434",
"address": "z06, Tân Thuận Đông, Quận 7, Tp HCM",
"avatarUrl": "https://cdn.britannica.com/mendel/eb-logo/MendelNewThistleLogo.png",
"extData": {}
}
}
{
"conversationId": "text",
"userId": "text",
"token": "text",
"expiresIn": 1
}