Início
Instances
Settings
Send Message
Chat Controller
Profile Settings
Group Controller
- POSTCreate Group
- POSTUpdate Group Picture
- POSTUpdate Group Subject
- POSTUpdate Group Description
- GETFetch Invite Code
- POSTRevoke Invite Code
- POSTSend Group Invite
- GETFind Group by Invite Code
- GETFind Group by JID
- GETFetch All Groups
- GETFind Group Members
- POSTUpdate Group Members
- POSTUpdate Group Setting
- POSTToggle Ephemeral
- DELLeave Group
Websocket
Group Controller
Fetch All Groups
Fetch all groups
GET
/
group
/
fetchAllGroups
/
{instance}
Copy
curl --request GET \
--url https://api.l2msg.com/whatsapp/group/fetchAllGroups/{instance} \
--header 'apikey: <api-key>'
Copy
[
{
"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
Your authorization key header
Path Parameters
Name of the instance
Query Parameters
Whether to get the group members or not
Response
200 - application/json
Ok
Array of objects representing WhatsApp group details.
Copy
curl --request GET \
--url https://api.l2msg.com/whatsapp/group/fetchAllGroups/{instance} \
--header 'apikey: <api-key>'
Copy
[
{
"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
}
]
Assistant
Responses are generated using AI and may contain mistakes.