open-wa
DocsAPI reference

Communities Client API

Generated client method reference for the communities namespace.

Communities Client API

This page documents 6 schema-registry client methods in the communities namespace.

getAllCommunities

Get all communities

Signature client.getAllCommunities(): Promise<GroupChatId[]>

Usage

import { SocketClient } from '@open-wa/socket-client';

const client = await SocketClient.connect('http://localhost:8080', 'YOUR_API_KEY');
const result = await client.getAllCommunities();

Parameters

This method does not define input parameters.

Returns

PropValue
Return typePromise<GroupChatId[]>
GroupChatIdView fields

Resolves to GroupChatId[]. A rejected Promise indicates input validation or dispatch failure.

This method is not declared on the in-process Client facade. Use the remote Node.js client or HTTP API. Opaque group conversation identifier returned by a group lookup or join method.

Advanced method metadata

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

getCommunityAdminIds

Get community admin IDs

Signature client.getCommunityAdminIds(communityId: string): Promise<CommunityAdminIds[]>

Usage

import { SocketClient } from '@open-wa/socket-client';

const client = await SocketClient.connect('http://localhost:8080', 'YOUR_API_KEY');
const result = await client.getCommunityAdminIds({
  communityId: "447123456789-1445627445@g.us",
});

Parameters

Prop

Type

Returns

PropValue
Return typePromise<CommunityAdminIds[]>
CommunityAdminIdsView fields

Resolves to CommunityAdminIds[]. A rejected Promise indicates input validation or dispatch failure.

This method is not declared on the in-process Client facade. Use the remote Node.js client or HTTP API.

Advanced method metadata

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

getCommunityAdmins

Get community admins

Signature client.getCommunityAdmins(communityId: string): Promise<CommunityAdmins[]>

Usage

import { SocketClient } from '@open-wa/socket-client';

const client = await SocketClient.connect('http://localhost:8080', 'YOUR_API_KEY');
const result = await client.getCommunityAdmins({
  communityId: "447123456789-1445627445@g.us",
});

Parameters

Prop

Type

Returns

PropValue
Return typePromise<CommunityAdmins[]>
CommunityAdminsView fields

Resolves to CommunityAdmins[]. A rejected Promise indicates input validation or dispatch failure.

This method is not declared on the in-process Client facade. Use the remote Node.js client or HTTP API.

Advanced method metadata

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

getCommunityInfo

Get community metadata

Signature client.getCommunityInfo(communityId: string): Promise<CommunityMetadata>

Usage

import { SocketClient } from '@open-wa/socket-client';

const client = await SocketClient.connect('http://localhost:8080', 'YOUR_API_KEY');
const result = await client.getCommunityInfo({
  communityId: "447123456789-1445627445@g.us",
});

Parameters

Prop

Type

Returns

PropValue
Return typePromise<CommunityMetadata>
CommunityMetadataView fields

Resolves to CommunityMetadata. A rejected Promise indicates input validation or dispatch failure.

This method is not declared on the in-process Client facade. Use the remote Node.js client or HTTP API.

Advanced method 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

getCommunityParticipantIds

Get community participant IDs

Signature client.getCommunityParticipantIds(communityId: string): Promise<CommunityParticipantIds[]>

Usage

import { SocketClient } from '@open-wa/socket-client';

const client = await SocketClient.connect('http://localhost:8080', 'YOUR_API_KEY');
const result = await client.getCommunityParticipantIds({
  communityId: "447123456789-1445627445@g.us",
});

Parameters

Prop

Type

Returns

PropValue
Return typePromise<CommunityParticipantIds[]>
CommunityParticipantIdsView fields

Resolves to CommunityParticipantIds[]. A rejected Promise indicates input validation or dispatch failure.

This method is not declared on the in-process Client facade. Use the remote Node.js client or HTTP API.

Advanced method metadata

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

getCommunityParticipants

Get community participants

Signature client.getCommunityParticipants(communityId: string): Promise<CommunityParticipants[]>

Usage

import { SocketClient } from '@open-wa/socket-client';

const client = await SocketClient.connect('http://localhost:8080', 'YOUR_API_KEY');
const result = await client.getCommunityParticipants({
  communityId: "447123456789-1445627445@g.us",
});

Parameters

Prop

Type

Returns

PropValue
Return typePromise<CommunityParticipants[]>
CommunityParticipantsView fields

Resolves to CommunityParticipants[]. A rejected Promise indicates input validation or dispatch failure.

This method is not declared on the in-process Client facade. Use the remote Node.js client or HTTP API.

Advanced method metadata

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

Was this helpful?

Your answer includes the page path and docs version.

On this page