跳到主要内容

getChatConfig

获取在线客服窗口配置。注意路径是 /chat/config(不在 /config 下),且按 IP 限流,每分钟 120 次。

属性值
方法GET
路径/chat/config
鉴权公开(限流)

请求参数​

无。

响应​

{
"code": 0,
"message": "",
"data": {
"welcomeText": "",
"enabled": true,
"title": "",
"logoUrl": "",
"primaryColor": "",
"bubblePosition": ""
}
}
字段类型说明
welcomeTextstring欢迎语
enabledboolean客服是否启用
titlestring客服窗口标题
logoUrlstring客服 logo
primaryColorstring主题色
bubblePositionstring气泡位置

未配置的字段返回空串,请在前台使用自己的默认值。

示例​

curl -s 'https://service.boldsaasify.com/chat/config' \
-H 'X-Site-Domain: your-store.com'