Skip to main content
GET
/
communities
List joined communities
curl --request GET \
  --url https://wsapi.chat/communities \
  --header 'X-Api-Key: <api-key>' \
  --header 'X-Instance-Id: <x-instance-id>'
[
  {
    "communityId": "<string>",
    "owner": {
      "id": "1234567890@s.whatsapp.net",
      "lid": "222424242@lid",
      "phone": "1234567890",
      "device": 2
    },
    "name": "<string>",
    "created": "2023-11-07T05:31:56Z",
    "description": "<string>",
    "isLocked": true,
    "communityApprovalMode": "<string>",
    "participants": [
      {
        "id": "1234567890@s.whatsapp.net",
        "lid": "222424242@lid",
        "phone": "1234567890",
        "device": 2,
        "isAdmin": true,
        "isSuperAdmin": true,
        "displayName": "<string>"
      }
    ]
  }
]

Authorizations

X-Api-Key
string
header
required

Instance or customer-level API key. Either the instance's own API key or the customer's API key is accepted. Must be paired with the X-Instance-Id header to identify the target instance.

Headers

X-Instance-Id
string
default:{{instanceId}}
required

The ID of the WhatsApp instance to use

Response

List of communities

communityId
string
owner
object

Represents a WhatsApp user with all known identifiers. The id field is always present: it prefers a phone-based JID, falling back to LID.

name
string
created
string<date-time>
description
string
isLocked
boolean
communityApprovalMode
string
participants
object[]