whatsapp
List contact groups
List all contact groups for a WhatsApp account with contact counts. Groups are derived from the groups field on contacts, not stored as separate documents.
AuthorizationBearer <token>
API key authentication - use your Late API key as a Bearer token
In: header
Query Parameters
accountIdstring
WhatsApp social account ID
Response Body
application/json
application/json
curl -X GET "https://getlate.dev/api/v1/whatsapp/groups?accountId=string"{
"success": true,
"groups": [
{
"name": "string",
"totalCount": 0,
"optedInCount": 0
}
],
"summary": {
"totalContacts": 0,
"optedInContacts": 0,
"groupCount": 0
}
}Empty
{
"error": "Unauthorized"
}Empty