Skip to content

Get Groups ​

GET /group

List the WhatsApp groups your number is in. Use the id from here with Get Group Detail, Get Group Members, or to send to a group through the group field in Send Message.

Endpoint Details ​

  • Base URL: https://api-zawa.azickri.com
  • Headers: id and session-id
  • Requires: a connected session (isConnected: true)

Headers ​

HeaderTypeRequiredDescription
idstringYesThe id from Create Session.
session-idstringYesThe sessionId from Create Session.

Example Request ​

bash
curl "https://api-zawa.azickri.com/group" \
  -H "id: YOUR_ID" \
  -H "session-id: YOUR_SESSION_ID"
javascript
import axios from 'axios';

const response = await axios.get('https://api-zawa.azickri.com/group', {
  headers: {
    'id': 'YOUR_ID',
    'session-id': 'YOUR_SESSION_ID',
  },
});

console.log(response.data);
javascript
const response = await fetch('https://api-zawa.azickri.com/group', {
  headers: {
    'id': 'YOUR_ID',
    'session-id': 'YOUR_SESSION_ID',
  },
});

const data = await response.json();
console.log(data);

Response ​

json
{
  "docs": [
    {
      "id": "120363000000000000@g.us",
      "name": "Zawa Community",
      "description": "A place for Zawa users to hang out",
      "picture": "https://pps.whatsapp.net/v/t61.24694-24/...",
      "created": "2025-06-07T15:15:51.000Z"
    }
  ]
}
json
{
  "statusCode": 400,
  "message": "invalid header"
}
json
{
  "statusCode": 404,
  "message": "session not found"
}
json
{
  "statusCode": 500,
  "message": "session not connected"
}
FieldTypeDescription
docsarrayThe list of groups.
docs[].idstringGroup ID, formatted as ...@g.us.
docs[].namestringGroup name.
docs[].descriptionstringGroup description. Empty if there isn't one.
docs[].picturestringURL of the group picture. Empty if the group has no picture.
docs[].createdstring | nullWhen the group was created (ISO 8601).

In a lot of groups?

Each group's picture is fetched one by one, so if you're in hundreds of groups, the response takes longer. If you only need one group, use Get Group Detail instead.