Appearance
查询群发发送明细
查询某一次群发发给了哪些人。
说明与注意
- 先群发消息拿到
data.msgId,再调本接口;刚发完立刻查,status多半是0,隔几秒再查。 status不是成功标志:发出去的消息也会一直是1,被拦下的也会是3,别拿它判断结果或做重试。群发有没有真的发出去,看消息模块总览 · 群发。msgId对应的群发不存在时返回-1000888\|暂无权限,这里的意思是查不到这次群发,不是缺权限。msgId是 17 位以上的 int64,JS 里用 BigInt 或 json-bigint 解析,不要转成 Number。
请求参数
| 参数 | 必填 | 类型 | 说明 |
|---|---|---|---|
appid | 是 | string | 实例 appid,标识操作哪个已登录账号。示例:we_xxxxxxxxxxxxxxx |
msgId | 是 | int64 | 群发任务 id,取自群发消息返回的 data.msgId(也是获取群发记录里每条记录的 id);必须是 JSON number。示例:117000000000000001 |
conversationType | 是 | int64 | 1 客户群、0 客户:群发时 customerGroup=true 的传 1,否则传 0。示例:1 |
limit | 否 | int64 | 可不传;传与不传返回一样,不是翻页参数 |
请求示例
http
POST {BASE_URL}/api/message/groupSendGetStatus
Authorization: Bearer <你的调用凭证>
Content-Type: application/json
{
"appid": "we_xxxxxxxxxxxxxxx",
"msgId": 117000000000000001,
"conversationType": 1
}1
2
3
4
5
6
7
8
9
2
3
4
5
6
7
8
9
bash
curl -X POST '{BASE_URL}/api/message/groupSendGetStatus' \
-H 'Authorization: Bearer <你的调用凭证>' \
-H 'Content-Type: application/json' \
--data-raw '{
"appid": "we_xxxxxxxxxxxxxxx",
"msgId": 117000000000000001,
"conversationType": 1
}'1
2
3
4
5
6
7
8
2
3
4
5
6
7
8
python
import requests
url = "{BASE_URL}/api/message/groupSendGetStatus"
headers = {"Authorization": "Bearer <你的调用凭证>", "Content-Type": "application/json"}
body = """{
"appid": "we_xxxxxxxxxxxxxxx",
"msgId": 117000000000000001,
"conversationType": 1
}"""
resp = requests.post(url, headers=headers, data=body.encode("utf-8"))
print(resp.text)1
2
3
4
5
6
7
8
9
10
11
12
2
3
4
5
6
7
8
9
10
11
12
java
import java.net.URI;
import java.net.http.HttpClient;
import java.net.http.HttpRequest;
import java.net.http.HttpResponse;
String url = "{BASE_URL}/api/message/groupSendGetStatus";
String body = "{\n" +
" \"appid\": \"we_xxxxxxxxxxxxxxx\",\n" +
" \"msgId\": 117000000000000001,\n" +
" \"conversationType\": 1\n" +
"}";
HttpClient client = HttpClient.newHttpClient();
HttpRequest request = HttpRequest.newBuilder(URI.create(url))
.header("Authorization", "Bearer <你的调用凭证>")
.header("Content-Type", "application/json")
.POST(HttpRequest.BodyPublishers.ofString(body))
.build();
HttpResponse<String> response = client.send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
php
<?php
$url = '{BASE_URL}/api/message/groupSendGetStatus';
$body = <<<'JSON'
{
"appid": "we_xxxxxxxxxxxxxxx",
"msgId": 117000000000000001,
"conversationType": 1
}
JSON;
$ch = curl_init($url);
curl_setopt($ch, CURLOPT_POST, true);
curl_setopt($ch, CURLOPT_POSTFIELDS, $body);
curl_setopt($ch, CURLOPT_HTTPHEADER, [
'Authorization: Bearer <你的调用凭证>',
'Content-Type: application/json',
]);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
$response = curl_exec($ch);
curl_close($ch);
echo $response;1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
响应示例
json
{
"code": 0,
"data": {
"list": [
{
"customerId": 10786447466811918,
"vid": 1688850000000001,
"status": 3,
"seq": 6328512,
"extendInfo": "<base64>",
"detailId": 1
}
],
"isEnd": true,
"count": 1
},
"detail": "",
"message": "ok",
"time": "2026-11-10 18:55:50"
}1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
响应字段
响应字段(14 项)
| 字段 | 类型 | 说明 |
|---|---|---|
code | int64 | 统一封套状态码:0=成功,负数=失败 |
data | object | 发送明细 |
data.list | array<object> | 每个接收方的发送明细 |
data.list[].customerId | int64 | 接收方:群发给客户时是客户 id,群发到客户群时是群 roomId |
data.list[].vid | int64 | 账号 vid;群发到客户群时为群主 |
data.list[].detailId | int64 | 发送明细 id,从 1 开始 |
data.list[].seq | int64 | 序号 |
data.list[].status | int64 | 每个接收人的回执状态:0 刚建任务的几秒内;之后是 1 或 3,两者都不表示发送成功或失败 |
data.list[].extendInfo | string | 透传串,只有群发到客户群时返回,不需要解析 |
data.count | int64 | 本次返回条数 |
data.isEnd | boolean | true 表示已经返回全部 |
detail | string | 附加明细,通常为空 |
message | string | 文案:成功为 ok;失败形如 -码|描述 |
time | string | 服务端处理时间 YYYY-MM-DD HH:MM:SS |