getChatConfig
获取在线客服窗口配置。注意路径是 /chat/config(不在 /config 下),且按 IP 限流,每分钟 120 次。
| 属性 | 值 |
|---|---|
| 方法 | GET |
| 路径 | /chat/config |
| 鉴权 | 公开(限流) |
请求参数
无。
响应
{
"code": 0,
"message": "",
"data": {
"welcomeText": "",
"enabled": true,
"title": "",
"logoUrl": "",
"primaryColor": "",
"bubblePosition": ""
}
}
| 字段 | 类型 | 说明 |
|---|---|---|
welcomeText | string | 欢迎语 |
enabled | boolean | 客服是否启用 |
title | string | 客服窗口标题 |
logoUrl | string | 客服 logo |
primaryColor | string | 主题色 |
bubblePosition | string | 气泡位置 |
未配置的字段返回空串,请在前台使用自己的默认值。
示例
curl -s 'https://service.boldsaasify.com/chat/config' \
-H 'X-Site-Domain: your-store.com'