List WhatsApp groups
GET
/groups
const url = 'https://app.whatsetter.com/api/v1/groups?status=active&limit=25';const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url 'https://app.whatsetter.com/api/v1/groups?status=active&limit=25' \ --header 'Authorization: Bearer <token>'The workspace’s tracked WhatsApp groups (name, size, invite link,
AI state), newest first. Filter by status or by WhatsApp
community_id. Requires scope groups:read.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Query Parameters
Section titled “Query Parameters”status
string
community_id
string
Only groups that belong to this WhatsApp Community (community.id of a group).
limit
integer
cursor
string
Opaque cursor from the previous page’s pagination.next_cursor.
Responses
Section titled “Responses”Page of groups
Media typeapplication/json
object
data
Array<object>
object
id
string
whatsapp_id
string | null
name
string | null
description
string | null
participants_count
integer
messages_count
integer
status
string | null
ai_enabled
boolean
invite_url
string | null
campaign_id
string | null
created_at
string format: date-time
pagination
object
has_more
boolean
next_cursor
string | null
Example
{ "data": [ { "status": "active" } ]}Missing, unknown or revoked API key
Media typeapplication/json
object
error
object
code
string
message
string
Examplegenerated
{ "error": { "code": "example", "message": "example" }}Invalid parameter or body (also an invalid or expired cursor)
Media typeapplication/json
object
error
object
code
string
message
string
Examplegenerated
{ "error": { "code": "example", "message": "example" }}
