查询应用会话配置
适用版本>=v7.0.2411b.20241128
接口说明:查询应用会话配置
请求说明
| 请求地址 | 配置域名+/openapi+/v7/apps/{app_id}/configs/chat |
|---|---|
| 请求方法 | GET |
| 签名方式 | KSO-1(配置域名+/openapi不参与签名) |
| 权限要求 | 查询应用配置信息(应用授权) kso.app_config_chat.read |
请求头(Header)
| Header | 参数类型 | 是否必填 | 说明 |
|---|---|---|---|
| X-Kso-Date | string | 是 | RFC1123 格式的日期,例: Wed, 23 Jan 2013 06:43:08 GMT |
| X-Kso-Authorization | string | 是 | KSO-1 签名值,详见《签名方法》 |
| Authorization | string | 是 | 授权凭证,格式为:Bearer {access_token} |
路径参数(Path)
| 名称 | 参数类型 | 是否必填 | 说明 |
|---|---|---|---|
| app_id | string | 是 | 应用id |
响应体(Response)
| 名称 | 类型 | 说明 |
|---|---|---|
| code | integer | 错误码 |
| detail | string | 详细信息 |
| msg | string | 状态信息 |
| data | object | 文件存储的介质 |
| ∟ default_chat_type | string | 默认应用会话类型。应用会话:app_chat、自定义会话:custom_page |
| ∟ custom_page_config | object | 自定义会话配置 |
| ∟ ∟ web_url | string | 桌面端自定义会话链接,default_chat_type为app_chat时可以为空, 为custom_page时候,必须是合法的http/https链接 |
| ∟ ∟ mobile_url | string | 移动端自定义会话链接,default_chat_type为app_chat时可以为空, 为custom_page时候,必须是合法的http/https链接 |
响应体示例
json
{
"data": {
"default_chat_type": "app_chat",
"custom_page_config": {
"web_url": "https://woa.wps.cn",
"mobile_url": "https://woa.wps.cn"
}
},
"code": 0,
"msg": "string"
}