Appearance
Retrieve a group
Returns one WhatsApp group the channel's number is a member of, including the members.
GET/api/user/whatsapp-qr/channels/{channel}/groups/{groupId}
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" \
-H "Authorization: Bearer $TOKEN" \
-H "Accept: application/json"Example response
{
"status": true,
"code": 200,
"validation": [],
"message": "Group Details",
"data": {
"id": "120363025988123456@g.us",
"subject": "Sales team",
"subjectOwner": "201142407509@s.whatsapp.net",
"subjectTime": 1700000000,
"size": 2,
"creation": 1700000000,
"owner": "201142407509@s.whatsapp.net",
"desc": "Daily leads and follow-ups",
"restrict": true,
"announce": false,
"participants": [
{
"id": "201142407509@s.whatsapp.net",
"admin": "superadmin"
},
{
"id": "201066278084@s.whatsapp.net",
"admin": null
}
]
}
}Path parameters
| Name | Type | Required | Description |
|---|---|---|---|
channel | integer | yes | WhatsApp QR Code channel id |
groupId | string | yes | Group id (…@g.us) from List groups |
Main response fields
The fields are the same as in List groups, plus:
| Field | Type | Description |
|---|---|---|
participants[].id | string | Member's WhatsApp id |
participants[].admin | string | null | superadmin, admin or null. For normalized roles, use List group participants. |
If announce is true and the channel's number isn't an admin, sending to the group fails.
A group that doesn't exist, or that the number isn't a member of, returns 404.