List active groups
List active WhatsApp group chats for a business phone number. These are actual WhatsApp group conversations on the platform.
Not available on Coexistence numbers. Requires a Cloud API-only number.
API key authentication - use your Zernio API key as a Bearer token
In: header
Query Parameters
WhatsApp social account ID
Max groups to return
25value <= 1024Pagination cursor
Response Body
application/json
application/json
application/json
import Zernio from '@zernio/node';const zernio = new Zernio({ apiKey: process.env.ZERNIO_API_KEY });const { data } = await zernio.whatsapp.listWhatsAppGroupChats({ query: { accountId: 'account_abc123', },});console.log(data);{
"groups": [
{
"id": "string",
"subject": "string",
"createdAt": "string"
}
],
"paging": {
"cursors": {
"after": "string",
"before": "string"
}
}
}{
"error": "string",
"type": "invalid_request_error",
"code": "string",
"param": "string",
"platform": "string",
"platformError": {},
"details": {}
}{
"error": "Unauthorized"
}Delete business username DELETE
Release the currently claimed WhatsApp Business username from the account. After deletion the username becomes available for other accounts to claim.
Create group POST
Create a new WhatsApp group chat. Returns the group ID and optionally an invite link. Not available on [Coexistence](/platforms/whatsapp/connection#whatsapp-business-app-coexistence) numbers. Requires a Cloud API-only number.