Communities Client API
Generated client method reference for the communities namespace.
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
| Prop | Value |
|---|---|
| Return type | Promise<GroupChatId[]> |
| GroupChatId | View 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
| 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 |
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
| Prop | Value |
|---|---|
| Return type | Promise<CommunityAdminIds[]> |
| CommunityAdminIds | View 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
| 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 |
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
| Prop | Value |
|---|---|
| Return type | Promise<CommunityAdmins[]> |
| CommunityAdmins | View 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
| 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 |
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
| Prop | Value |
|---|---|
| Return type | Promise<CommunityMetadata> |
| CommunityMetadata | View 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
| 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 |
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
| Prop | Value |
|---|---|
| Return type | Promise<CommunityParticipantIds[]> |
| CommunityParticipantIds | View 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
| 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 |
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
| Prop | Value |
|---|---|
| Return type | Promise<CommunityParticipants[]> |
| CommunityParticipants | View 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
| 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 |
Was this helpful?
Your answer includes the page path and docs version.
