GET
/api/groupsRetrieves a list of all WhatsApp groups the connected account is a member of.
Get All Groups
Retrieve a list of all WhatsApp groups that the connected WhatsApp account is currently a part of. The response includes group ID, name, participants, creation time, and owner.
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
| paginated | boolean | No | When true, returns {data: {items, pagination}}. When false, returns {data: [...]}. |
| page | integer | No | Page number (only used when paginated=true). |
| limit | integer | No | Items per page (only used when paginated=true). |
Code Examples
curl "https://www.wasenderapi.com/api/groups"
-H "Authorization: Bearer YOUR_API_KEY"Response Examples
{
"success": true,
"data": [
{
"jid": "[email protected]",
"name": "Group Name",
"imgUrl": null
}
]
}