Skip to main content
POST
/
api
/
5
/
user
/
chat_connect
chat_connect
curl --request POST \
  --url https://sg.sobot.io/api/5/user/chat_connect \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "partnerid": "<string>",
  "source": 123,
  "channel_flag": 123,
  "user_nick": "<string>",
  "user_name": "<string>",
  "user_tels": "<string>",
  "user_emails": "<string>",
  "user_img": "<string>",
  "params": "<string>",
  "agentid": "<string>",
  "tran_flag": 123,
  "groupid": "<string>",
  "channel_id": 123
}
'

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json
partnerid
string

对接ID,需要保证唯一性

source
integer

渠道来源:用户来源:0 桌面网站、1 微信、2 App、3 微博、4 移动网站、6 呼叫、7 工单中心、8 客户中心、9 企业微信、10 小程序、12 百度营销、13 今日头条、14 奇虎360、15 阿里汇川、16 搜狗、17 微信客服、20 广点通、21 知乎、22 facebook、23 whatsApp、24 instagram、25 line、26 discord、33 telegram

channel_flag
integer

子渠道编码

user_nick
string

用户昵称

user_name
string

用户姓名

user_tels
string

电话,多个以逗号分隔

user_emails
string

邮箱,多个以逗号分隔

user_img
string

用户头像

params
string

自定义字段,json格式

agentid
string

指定客服id

tran_flag
integer

指定客服转接方式:1-不能转出,0-可转出

groupid
string

指定技能组id

channel_id
integer

子渠道编码

Response

200

No Content