getChatConfig
获取在线客服配置。注意路径在 /chat 分组下(非 /config),且该分组带按 IP 限流(120 次 / 分钟)。
| 属性 | 值 |
|---|---|
| 方法 | GET |
| 路径 | /chat/config |
| 鉴权 | 公开(限流) |
请求参数
无。站点由多租户中间件解析;未种 chat_channel 行时后端兜底返回合成默认渠道。
响应
{
"code": 0,
"message": "",
"data": {
"welcomeText": "",
"enabled": true,
"title": "",
"logoUrl": "",
"primaryColor": "",
"bubblePosition": ""
}
}
| 字段 | 类型 | 说明 |
|---|---|---|
welcomeText | string | 欢迎语 |
enabled | boolean | 客服是否启用(channel.enabled == 1) |
title | string | 客服窗口标题 |
logoUrl | string | 客服 logo |
primaryColor | string | 主题色 |
bubblePosition | string | 气泡位置 |
备注
前台对空字段做默认回退,后端此处原样透传。
示例
curl -s 'https://service.boldsaasify.com/chat/config' \
-H 'X-Site-Domain: boldradiant.com'