Skip to content
POST{BASE_URL}/api/message/groupSendGetStatus
只读已实测消息JSON · Bearer 调用凭证 · body appid

查询群发发送明细 ​

查询某一次群发发给了哪些人。

说明与注意 ​

  • 先群发消息拿到 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是int641 客户群、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
}
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
}'
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)
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());
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;

响应示例 ​

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"
}

响应字段 ​

响应字段(14 项)
字段类型说明
codeint64统一封套状态码:0=成功,负数=失败
dataobject发送明细
data.listarray<object>每个接收方的发送明细
data.list[].customerIdint64接收方:群发给客户时是客户 id,群发到客户群时是群 roomId
data.list[].vidint64账号 vid;群发到客户群时为群主
data.list[].detailIdint64发送明细 id,从 1 开始
data.list[].seqint64序号
data.list[].statusint64每个接收人的回执状态:0 刚建任务的几秒内;之后是 1 或 3,两者都不表示发送成功或失败
data.list[].extendInfostring透传串,只有群发到客户群时返回,不需要解析
data.countint64本次返回条数
data.isEndbooleantrue 表示已经返回全部
detailstring附加明细,通常为空
messagestring文案:成功为 ok;失败形如 -码|描述
timestring服务端处理时间 YYYY-MM-DD HH:MM:SS

下一步 ​