Skip to content

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:read
Path 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"
<?php

use GuzzleHttp\Client;

$client = new Client();
$response = $client->request('GET', 'https://loopx-console.test/api/user/whatsapp-qr/channels/105/groups/120363025988123456%40g.us', [
    'headers' => [
        'Authorization' => 'Bearer $TOKEN',
        'Accept'        => 'application/json',
    ]
]);

$data = json_decode($response->getBody(), true);
const res = await fetch('https://loopx-console.test/api/user/whatsapp-qr/channels/105/groups/120363025988123456%40g.us', {
  method: 'GET',
  headers: {
    Authorization: 'Bearer $TOKEN',
    Accept: 'application/json'
  }
});

const data = await res.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 ​

NameTypeRequiredDescription
channelintegeryesWhatsApp QR Code channel id
groupIdstringyesGroup id (…@g.us) from List groups

Main response fields ​

The fields are the same as in List groups, plus:

FieldTypeDescription
participants[].idstringMember's WhatsApp id
participants[].adminstring | nullsuperadmin, 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.