Skip to main content
GET
/
api
/
{session}
/
groups
/
count
Get the number of groups
curl --request GET \
  --url https://{host}/api/{session}/groups/count \
  --header 'apikey: <api-key>'
{
  "count": 15
}

Description

This endpoint returns the total number of groups that the session is participating in.

URL Parameters

session
string
required
WhatsApp unique session ID

Response

count
number
Total number of groups
{
  "count": 15
}

Status Codes

  • 200 - Count returned successfully
  • 400 - Invalid parameters
  • 401 - Unauthorized

Usage Example

curl -X GET https://api.wappfy.com.br/api/my-session/groups/count

Authorizations

apikey
string
header
required

Your Wappfy API key (get it at dash.wappfy.com.br)

Path Parameters

session
string
required

Session name (instanceName)

Response

200 - application/json
count
number
default:0
required
I