application/json
Api Key Gateway
x-apikey-01
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
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": "nguyenvana@gmai.com", "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": {} } }
Token initialized successfully
{ "conversationId": "text", "userId": "text", "token": "text", "expiresIn": 1 }