Authorization: Bearer ********************
curl --location -g --request GET 'https://apinocode01.megaapi.com.br/rest/group/list/sua instance_key' \
--header 'Authorization: Bearer seu token' \
--header 'Content-Type: application/json'
{
"error": false,
"message": "Groups and communitys listed",
"groups": [
{
"id": "120363360763649455@g.us",
"subject": "Testeo",
"subjectOwner": "556181926137@s.whatsapp.net",
"subjectTime": 1731182457,
"size": 2,
"creation": 1731182457,
"owner": "556181926137@s.whatsapp.net",
"restrict": false,
"announce": false,
"isCommunity": false,
"isCommunityAnnounce": false,
"joinApprovalMode": false,
"memberAddMode": true,
"membershipApprovalMode": false,
"participants": [
{
"id": "556181926137@s.whatsapp.net",
"admin": "superadmin"
},
{
"id": "556195562618@s.whatsapp.net",
"admin": null
}
]
}
],
"communitys": []
}