GET
/
group
/
fetchAllGroups
/
{instance}
curl --request GET \
  --url https://{server-url}/group/fetchAllGroups/{instance} \
  --header 'apikey: <api-key>'
[
  {
    "id": "120363295648424210@g.us",
    "subject": "Example Group",
    "subjectOwner": "553198296801@s.whatsapp.net",
    "subjectTime": 1714769954,
    "pictureUrl": null,
    "size": 1,
    "creation": 1714769954,
    "owner": "553198296801@s.whatsapp.net",
    "desc": "optional",
    "descId": "BAE57E16498982ED",
    "restrict": false,
    "announce": false
  }
]

Authorizations

apikey
string
header
required

Your authorization key header

Path Parameters

instance
string
required

ID of the instance to connect

Query Parameters

getParticipants
boolean
required

Whether to get the group members or not

Response

200 - application/json
Ok

Array of objects representing WhatsApp group details.