Appearance
List group participants
Returns the members of a WhatsApp group with their role.
GET/api/user/whatsapp-qr/channels/{channel}/groups/{groupId}/participants
Required scope:
whatsapp-qr:readPath parameters
integer
string
curl -X GET "https://loopx-console.test/api/user/whatsapp-qr/channels/105/groups/120363025988123456%40g.us/participants" \
-H "Authorization: Bearer $TOKEN" \
-H "Accept: application/json"Example response
{
"status": true,
"code": 200,
"validation": [],
"message": "Group Participants",
"data": [
{
"id": "201142407509@c.us",
"role": "superadmin"
},
{
"id": "201066278084@c.us",
"role": "admin"
},
{
"id": "25318949687344@lid",
"pn": "201011111111@c.us",
"role": "participant"
}
]
}Path parameters
| Name | Type | Required | Description |
|---|---|---|---|
channel | integer | yes | WhatsApp QR Code channel id |
groupId | string | yes | Group id (…@g.us) from List groups |
Response fields
| Field | Type | Description |
|---|---|---|
id | string | Member's WhatsApp id (…@c.us or …@lid). You can use it as chat_id to message them directly. |
pn | string | Phone-number id of a @lid member, when WhatsApp shares it |
role | string | superadmin (the group's creator), admin, participant or left |
A group that doesn't exist, or that the number isn't a member of, returns 404.