1MSG

Get Groups List

GET
/groups

List active WhatsApp groups for the account. Paginate with limit, before, and after.

Authorization

JWT token
querytoken<token>

Query Parameters

limit?integer

Limit number of groups returned

before?string

Pagination cursor for groups list (before)

after?string

Pagination cursor for groups list (after)

Response Body

Server response example

application/json
  1. response
groups?array<>
paging?
curl -X GET 'https://api.1msg.io/123/groups?limit=100&before=MA%3D%3D&after=MQ%3D%3D'
{  "groups": [    {      "id": "Y2FwaV9ncm91cDoxNzA1NTU1MDEzOToxMjAzNjM0MDQ2OTQyMzM4MjAZD",      "subject": "Group name",      "description": "Group description",      "participants": [        {          "wa_id": "79001234567",          "type": "admin"        }      ],      "chatId": "[email protected]"    }  ],  "paging": {    "before": "MA==",    "after": "MQ=="  }}