Skip to main content
GET
Get groups

Overview

Method that returns the channel’s groups. Use the phone field of each item as the group ID in the other routes of this section. Send page and pageSize to paginate the result.
On WhatsApp Official, the list returns the active groups of the number in Meta’s Groups API, and page and pageSize are optional (they default to 1 and 10).

Authorizations

Authorization
string
header
required

Secret Key generated in the Omni Z-API Security panel

Query Parameters

page
integer
required

Page of groups to fetch (pagination). Required in Z-API; on WhatsApp Official, without it the value is 1

pageSize
integer
required

Number of groups per page. Required in Z-API; on WhatsApp Official, without it the value is 10

Response

Success.

isGroup
boolean

Indicates whether it is a group

name
string

Name assigned to the chat

phone
string

Group ID/Phone

unread
string

Number of unread messages in the chat

lastMessageTime
string

Timestamp of the last interaction with the chat

isMuted
string

0 or 1 indicates whether the chat is muted

isMarkedSpam
string
archived
string
pinned
string
muteEndTime
string
messagesUnread
string