查询外部联系人对话记录
GET
/v1/openapi/chat/record查询外部联系人对话记录
请求参数
Query 参数
apiKey
string
必需
接口请求凭证(apiKey)。应用助手集成配置页面获取
contact_id
string
外部联系人id
示例值:
f1cc17390f844216bd21251cad32da38
channel_id
string
对应渠道id
start_date
string
可选
开始时间(yyyy-mm-dd)
end_date
string
可选
结束时间(yyyy-mm-dd)
示例代码
返回响应
成功(200)
HTTP 状态码: 200
内容格式: JSONapplication/json
数据结构
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": "成功"
}
最后修改时间: 6 个月前