- 语聚AI应用助手API使用说明
- 语聚GPT API
- 对话助手 API
- 外部联系人API
- 知识助手 API
- 通用功能API
- AI营销
查询外部联系人对 话记录
GET
/v1/openapi/chat/record
请求参数
Query 参数
apiKey
string
必需
contact_id
string
外部联系人id
示例值:
f1cc17390f844216bd21251cad32da38
channel_id
string
对应渠道id
start_date
string
可选
end_date
string
可选
示例代码
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request GET 'https://chat.jijyun.cn/v1/openapi/chat/record?apiKey=&contact_id=f1cc17390f844216bd21251cad32da38&channel_id&start_date&end_date'
返回响应
🟢200成功
application/json
Body
Code
integer
必需
Data
object
必需
avatar
null
必需
chatid
null
必需
company
null
必需
company_address
null
必需
company_website
null
必需
companyid
null
必需
contact_id
null
必需
contact_name
null
必需
conversation_id
null
必需
create_time
string
必需
device_id
string
必需
email
null
必需
id
string
必需
message_id
null
必需
mobile
string
必需
name
string
必需
open_id
null
必需
product_name
null
必需
roomTopic
null
必需
room_id
null
必需
update_time
string
必需
userid
null
必需
Msg
string
必需
示例
{
"Code": 2000,
"Data": [
{
"channel": "抖音企业号",
"msg": [
{
"msg": "{\"ID\":\"144115242591575254-1700010725-26108202\",\"avatar\":\"https://s1-imfile.feishucdn.com/static-resource/v1/v2_d2a79eb9-fdb6-4d6f-8ab1-6bc1884ce6cg~?image_size=noop&cut_type=&quality=&format=png&sticker_format=.webp\",\"conversationID\":\"GROUP37f47f52-a8ef-4141-b9bf-28ee059e146e-785189\",\"conversationType\":\"GROUP\",\"from\":\"f1cc17390f844216bd21251cad32da38\",\"nick\":\"客服01\",\"payload\":{\"data\":\"{\\\"text\\\":\\\"你好\\\"}\",\"description\":\"\",\"extension\":\"{\\\"msgType\\\": \\\"TIMCustomElemUser\\\", \\\"isCustomer\\\": false, \\\"company_id\\\": \\\"pc1265\\\", \\\"service\\\": \\\"chat.jijyun.cn\\\"}\"},\"time\":1715665855,\"to\":\"37f47f52-a8ef-4141-b9bf-28ee059e146e-785189\",\"type\":\"TIMCustomElem\"}",
"msg_type": "customer_service"
},
{
"msg": "{\"ID\":\"144115242591575254-1700010725-26108202\",\"avatar\":\"https://openpl-pro.oss-cn-beijing.aliyuncs.com/miniprogram_a6d46ca79f3e1b665d3b5c61b2198d16.jpg\",\"conversationID\":\"GROUP37f47f52-a8ef-4141-b9bf-28ee059e146e-785189\",\"conversationType\":\"GROUP\",\"from\":\"f1cc17390f844216bd21251cad32da38\",\"nick\":\"测试用户1001\",\"payload\":{\"text\":null},\"time\":1713864539,\"to\":\"37f47f52-a8ef-4141-b9bf-28ee059e146e-785189\",\"type\":\"TIMTextElem\"}",
"msg_type": "customer_service"
},
{
"msg": "{\"ID\":\"144115242591575254-1700010725-26108202\",\"avatar\":\"https://openpl-pro.oss-cn-beijing.aliyuncs.com/miniprogram_a6d46ca79f3e1b665d3b5c61b2198d16.jpg\",\"conversationID\":\"GROUP37f47f52-a8ef-4141-b9bf-28ee059e146e-785189\",\"conversationType\":\"GROUP\",\"from\":\"f1cc17390f844216bd21251cad32da38\",\"nick\":\"测试用户1001\",\"payload\":{\"text\":null},\"time\":1713864442,\"to\":\"37f47f52-a8ef-4141-b9bf-28ee059e146e-785189\",\"type\":\"TIMTextElem\"}",
"msg_type": "customer_service"
}
],
"msg_type": "人工服务"
}
],
"Msg": "成功"
}
修改于 2024-06-06 08:50:27