Communities Client API
Generated client method reference for the communities namespace.

Communities Client API
Generated file warning: this page is generated by
packages/schema/scripts/gen-client-reference-docs.ts. Do not edit generated method content by hand.
This page documents 6 schema-registry client methods in the communities namespace.
getAllCommunities
Get all communities
Overview
| Prop | Value |
|---|---|
| Namespace | communities |
| Action | read |
| Functionality | both |
| Positional parameter order | - |
| Aliases | communities.all, communities.getAll, communities.list, listCommunities |
| Deprecated aliases | - |
| License | none |
| WAPI override | - |
| Deprecated | No |
Routes
| Type | Method | Path | Name | Status |
|---|---|---|---|---|
| Primary | GET | /api/communities/getAll | getAllCommunities | Active |
| Alias | GET | /api/communities/all | communities.all | Active |
| Alias | GET | /api/communities/list | communities.list | Active |
| Alias | GET | /api/getAllCommunities | getAllCommunities | Active |
| Alias | GET | /api/listCommunities | listCommunities | Active |
Usage
const result = await client.getAllCommunities({});const result = await client.communities.getAll({});curl -X GET "http://localhost:8080/api/communities/getAll" \
-H "content-type: application/json" \
-H "x-api-key: YOUR_API_KEY" \
--data '{}'Parameters
This method does not define input parameters.
Output
| Prop | Value |
|---|---|
| Return type | string[] |
getCommunityAdminIds
Get community admin IDs
Overview
| Prop | Value |
|---|---|
| Namespace | communities |
| Action | read |
| Functionality | both |
| Positional parameter order | communityId |
| Aliases | communities.getAdminIds |
| Deprecated aliases | - |
| License | none |
| WAPI override | - |
| Deprecated | No |
Routes
| Type | Method | Path | Name | Status |
|---|---|---|---|---|
| Primary | GET | /api/communities/getAdminIds | getCommunityAdminIds | Active |
| Alias | GET | /api/getCommunityAdminIds | getCommunityAdminIds | Active |
Usage
const result = await client.getCommunityAdminIds({
communityId: "447123456789-1445627445@g.us",
});const result = await client.communities.getAdminIds({
communityId: "447123456789-1445627445@g.us",
});curl -G "http://localhost:8080/api/communities/getAdminIds" \
-H "x-api-key: YOUR_API_KEY" \
--data-urlencode "communityId=447123456789-1445627445@g.us"Parameters
Prop
Type
Output
| Prop | Value |
|---|---|
| Return type | unknown |
getCommunityAdmins
Get community admins
Overview
| Prop | Value |
|---|---|
| Namespace | communities |
| Action | read |
| Functionality | both |
| Positional parameter order | communityId |
| Aliases | communities.getAdmins |
| Deprecated aliases | - |
| License | none |
| WAPI override | - |
| Deprecated | No |
Routes
| Type | Method | Path | Name | Status |
|---|---|---|---|---|
| Primary | GET | /api/communities/getAdmins | getCommunityAdmins | Active |
| Alias | GET | /api/getCommunityAdmins | getCommunityAdmins | Active |
Usage
const result = await client.getCommunityAdmins({
communityId: "447123456789-1445627445@g.us",
});const result = await client.communities.getAdmins({
communityId: "447123456789-1445627445@g.us",
});curl -G "http://localhost:8080/api/communities/getAdmins" \
-H "x-api-key: YOUR_API_KEY" \
--data-urlencode "communityId=447123456789-1445627445@g.us"Parameters
Prop
Type
Output
| Prop | Value |
|---|---|
| Return type | unknown |
getCommunityInfo
Get community metadata
Overview
| Prop | Value |
|---|---|
| Namespace | communities |
| Action | read |
| Functionality | both |
| Positional parameter order | communityId |
| Aliases | communities.getInfo |
| Deprecated aliases | - |
| License | none |
| WAPI override | - |
| Deprecated | No |
Routes
| Type | Method | Path | Name | Status |
|---|---|---|---|---|
| Primary | GET | /api/communities/getInfo | getCommunityInfo | Active |
| Alias | GET | /api/getCommunityInfo | getCommunityInfo | Active |
Usage
const result = await client.getCommunityInfo({
communityId: "447123456789-1445627445@g.us",
});const result = await client.communities.getInfo({
communityId: "447123456789-1445627445@g.us",
});curl -G "http://localhost:8080/api/communities/getInfo" \
-H "x-api-key: YOUR_API_KEY" \
--data-urlencode "communityId=447123456789-1445627445@g.us"Parameters
Prop
Type
Output
| Prop | Value |
|---|---|
| Return type | unknown |
getCommunityParticipantIds
Get community participant IDs
Overview
| Prop | Value |
|---|---|
| Namespace | communities |
| Action | read |
| Functionality | both |
| Positional parameter order | communityId |
| Aliases | communities.getParticipantIds |
| Deprecated aliases | - |
| License | none |
| WAPI override | - |
| Deprecated | No |
Routes
| Type | Method | Path | Name | Status |
|---|---|---|---|---|
| Primary | GET | /api/communities/getParticipantIds | getCommunityParticipantIds | Active |
| Alias | GET | /api/getCommunityParticipantIds | getCommunityParticipantIds | Active |
Usage
const result = await client.getCommunityParticipantIds({
communityId: "447123456789-1445627445@g.us",
});const result = await client.communities.getParticipantIds({
communityId: "447123456789-1445627445@g.us",
});curl -G "http://localhost:8080/api/communities/getParticipantIds" \
-H "x-api-key: YOUR_API_KEY" \
--data-urlencode "communityId=447123456789-1445627445@g.us"Parameters
Prop
Type
Output
| Prop | Value |
|---|---|
| Return type | unknown |
getCommunityParticipants
Get community participants
Overview
| Prop | Value |
|---|---|
| Namespace | communities |
| Action | read |
| Functionality | both |
| Positional parameter order | communityId |
| Aliases | communities.getParticipants |
| Deprecated aliases | - |
| License | none |
| WAPI override | - |
| Deprecated | No |
Routes
| Type | Method | Path | Name | Status |
|---|---|---|---|---|
| Primary | GET | /api/communities/getParticipants | getCommunityParticipants | Active |
| Alias | GET | /api/getCommunityParticipants | getCommunityParticipants | Active |
Usage
const result = await client.getCommunityParticipants({
communityId: "447123456789-1445627445@g.us",
});const result = await client.communities.getParticipants({
communityId: "447123456789-1445627445@g.us",
});curl -G "http://localhost:8080/api/communities/getParticipants" \
-H "x-api-key: YOUR_API_KEY" \
--data-urlencode "communityId=447123456789-1445627445@g.us"Parameters
Prop
Type
Output
| Prop | Value |
|---|---|
| Return type | unknown |

Was this helpful?
Wally and his cute companion coffee mug are coding day and night to keep this up-to-date!
