- OpenAPI基本介绍
- 错误码参考 表
- 访问频率和并发限制
- 消息订阅
- 获取访问凭据
- 员工管理
- 自定义订单管理
- 客户管理
- 客户积分管理
- 客户标签管理
- 客户画像管理
- 标签库管理
- 群聊管理
- 工单管理
- 销售过程管理
- 聊天记录管理
- 拉新排行榜
- 群裂变
- 群打卡
- 企微任务宝
- 拉新排行榜
- 自定义表单
- 客户转化
- 员工个人群发记录管理
- 渠道码管理
- 素材库管理
- 互动雷达管理
- 自定义侧边栏身份校验
- 有赞订单管理
- 小鹅通订单管理
- 项目管理
- 门店信息
- 人群包
- 客户群发
- 企微朋友圈
- 个人SOP
- 部门管理
- 群标签管理
- 话术库
- 企微数据专区
获取会话消息(企微数据专区)
GET
/open-api/chat_zone/message/list
请求参数
Query 参数
staff_id
string
员工ext_id
session_id
string
必需
limit
integer
可选
last_id
integer
可选
access_token
string
调用接口凭证
默认值:
{{access_token}}
示例代码
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://open.weibanzhushou.com/open-api/chat_zone/message/list?staff_id=&session_id=&limit=&last_id=&access_token='
返回响应
🟢200成功
application/json
Body
errcode
integer
必需
errmsg
string
必需
message_list
array [object {14}]
必需
created_at
integer
可选
direction
string
可选
from_avatar
string
可选
from_id
string
可选
from_name
string
可选
id
integer
消息id
original_id
string
可选
room_id
null
可选
session_id
string
可选
staff_id
string
员工id
time
integer
可选
to_id
string
可选
type
string
可选
updated_at
integer
更新时间
total
integer
剩余消息总数
示例
{
"errcode": 0,
"errmsg": "ok",
"message_list": [
{
"created_at": 1731402032,
"direction": "receive",
"from_avatar": "http://wx.qlogo.cn/mmhead/00GYaClAoOqxgEfVkc5HvFTtNA7bsR2AX6qp3KUibIEMMP2CopbTIk7k3BS4ia5d1u8vLWx5oY2Bk/0",
"from_id": "wmgizUDQAAsi8EQ4GgoubUpeTefflTYw",
"from_name": "eeee",
"id": 101366131,
"original_id": "mAAyAsis3UNbi2jXnuEuCtA92amkjU_Zm4Psz7v82Ko90",
"room_id": null,
"session_id": "wmgizUDQAAsi8EQ4GgoubUpeTefflTYw",
"staff_id": "wogizUDQAAtjqS1Lr7zhFG-6dfDa816Q",
"time": 1731402030,
"to_id": "wogizUDQAAtjqS1Lr7zhFG-6dfDa816Q",
"type": "text",
"updated_at": 1731402032
}
],
"total": 97
}
🟢200正常返回
修改于 2025-02-13 02:31:15