open-wa v5 is alpha. Use v4.76.0 for mature production systems unless you are validating v5.
The Client APIAPI ExplorerLicensing

Communities Client API

Generated client method reference for the communities namespace.

Client Communities Methods Wally

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

PropValue
Namespacecommunities
Actionread
Functionalityboth
Positional parameter order-
Aliasescommunities.all, communities.getAll, communities.list, listCommunities
Deprecated aliases-
Licensenone
WAPI override-
DeprecatedNo

Routes

TypeMethodPathNameStatus
PrimaryGET/api/communities/getAllgetAllCommunitiesActive
AliasGET/api/communities/allcommunities.allActive
AliasGET/api/communities/listcommunities.listActive
AliasGET/api/getAllCommunitiesgetAllCommunitiesActive
AliasGET/api/listCommunitieslistCommunitiesActive

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

PropValue
Return typestring[]

getCommunityAdminIds

Get community admin IDs

Overview

PropValue
Namespacecommunities
Actionread
Functionalityboth
Positional parameter ordercommunityId
Aliasescommunities.getAdminIds
Deprecated aliases-
Licensenone
WAPI override-
DeprecatedNo

Routes

TypeMethodPathNameStatus
PrimaryGET/api/communities/getAdminIdsgetCommunityAdminIdsActive
AliasGET/api/getCommunityAdminIdsgetCommunityAdminIdsActive

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

PropValue
Return typeunknown

getCommunityAdmins

Get community admins

Overview

PropValue
Namespacecommunities
Actionread
Functionalityboth
Positional parameter ordercommunityId
Aliasescommunities.getAdmins
Deprecated aliases-
Licensenone
WAPI override-
DeprecatedNo

Routes

TypeMethodPathNameStatus
PrimaryGET/api/communities/getAdminsgetCommunityAdminsActive
AliasGET/api/getCommunityAdminsgetCommunityAdminsActive

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

PropValue
Return typeunknown

getCommunityInfo

Get community metadata

Overview

PropValue
Namespacecommunities
Actionread
Functionalityboth
Positional parameter ordercommunityId
Aliasescommunities.getInfo
Deprecated aliases-
Licensenone
WAPI override-
DeprecatedNo

Routes

TypeMethodPathNameStatus
PrimaryGET/api/communities/getInfogetCommunityInfoActive
AliasGET/api/getCommunityInfogetCommunityInfoActive

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

PropValue
Return typeunknown

getCommunityParticipantIds

Get community participant IDs

Overview

PropValue
Namespacecommunities
Actionread
Functionalityboth
Positional parameter ordercommunityId
Aliasescommunities.getParticipantIds
Deprecated aliases-
Licensenone
WAPI override-
DeprecatedNo

Routes

TypeMethodPathNameStatus
PrimaryGET/api/communities/getParticipantIdsgetCommunityParticipantIdsActive
AliasGET/api/getCommunityParticipantIdsgetCommunityParticipantIdsActive

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

PropValue
Return typeunknown

getCommunityParticipants

Get community participants

Overview

PropValue
Namespacecommunities
Actionread
Functionalityboth
Positional parameter ordercommunityId
Aliasescommunities.getParticipants
Deprecated aliases-
Licensenone
WAPI override-
DeprecatedNo

Routes

TypeMethodPathNameStatus
PrimaryGET/api/communities/getParticipantsgetCommunityParticipantsActive
AliasGET/api/getCommunityParticipantsgetCommunityParticipantsActive

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

PropValue
Return typeunknown
Wally the Walrus typing

Was this helpful?

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

On this page