服务端 API/消息/批量消息/查询批量消息推送和阅读人数
# 查询批量消息推送和阅读人数

发送批量消息请求后，可以通过该接口查询批量消息推送的总人数和阅读人数。

**注意事项**：注意事项：
- 只能查询**30天内**通过[批量发送消息](https://open.larksuite.com/document/ukTMukTMukTM/ucDO1EjL3gTNx4yN4UTM)接口产生的消息
- 该接口返回的数据为查询时刻的快照数据

## 请求

基本 | &nbsp;
---|---
HTTP URL | https://open.larksuite.com/open-apis/im/v1/batch_messages/:batch_message_id/read_user
HTTP Method | GET
接口频率限制 | [1000 次/分钟、50 次/秒](https://open.larksuite.com/document/ukTMukTMukTM/uUzN04SN3QjL1cDN)
支持的应用类型 | Custom App、Store App
权限要求<br>**调用该 API 所需的权限。开启其中任意一项权限即可调用**<br>开启任一权限即可 | 给一个或多个部门的成员批量发消息(im:message:send_multi_depts)<br>给多个用户批量发消息(im:message:send_multi_users)

### 请求头

名称 | 类型 | 必填 | 描述
---|---|---|---
Authorization | string | 是 | `tenant_access_token`<br>**值格式**："Bearer `access_token`"<br>**示例值**："Bearer t-7f1bcd13fc57d46bac21793a18e560"<br>[了解更多：如何选择与获取 access token](https://open.larksuite.com/document/uAjLw4CM/ugTN1YjL4UTN24CO1UjN/trouble-shooting/how-to-choose-which-type-of-token-to-use)

### 路径参数

名称 | 类型 | 描述
---|---|---
batch_message_id | string | 待查询的批量消息任务 ID，通过调用[批量发送消息接口](	https://open.larksuite.com/document/ukTMukTMukTM/ucDO1EjL3gTNx4yN4UTM)的返回值`message_id`中得到<br>**示例值**："bm_dc13264520392913993dd051dba21dcf"

### 请求示例
```
curl --location --request GET 'https://open.larksuite.com/open-apis/im/v1/batch_messages/bm_dc13264520392913993dd051dba21dcf/read_user' \
--header 'Authorization: Bearer t-e811da948d9a2803433be10458f650c842799970'
```

## 响应

### 响应体

名称 | 类型 | 描述
---|---|---
code | int | 错误码，非 0 表示失败
msg | string | 错误描述
data | \- | \-
read_user | batch_message_read_user | 批量发送消息的用户阅读情况
read_count | string | 已读的人数
total_count | string | 推送的总人数

### 响应体示例
```json
{
    "code": 0,
    "data": {
        "read_user": {
            "read_count": "10",
            "total_count": "100"
        }
    },
    "msg": "ok"
}
```

### 错误码

HTTP状态码 | 错误码 | 描述 | 排查建议
---|---|---|---
400 | 230001 | Your request contains an invalid request parameter. | 参数错误，请根据接口返回的错误信息并参考文档检查输入参数。
400 | 230012 | Bot is NOT the sender of the message. | 机器人不是消息的发送者。
400 | 230027 | Lack of necessary permissions. | 请根据本文档中的权限要求部分补充所需权限。
400 | 230030 | The message id is invalid, record not found. | 检查传入的batch_message_id是否正确。

