Add a member to a community

To add a user to the Community, use this endpoint

POST https://gate.whapi.cloud/communities/{CommunityID}/participants

This method is responsible for add participants community
curl --request POST \
     --url https://gate.whapi.cloud/communities/120363326919215056%40g.us/participants \
     --header 'accept: application/json' \
     --header 'authorization: Bearer {Your_Token}' \
     --header 'content-type: application/json' \
     --data '
{
  "participants": [
    "306994508341",
    "306994518352"
  ]
}
'

Response:

{
  "success": true,
  "processed": [
    "306994508341",
    "306994518352"
  ],
  
}
The result of adding new members to the community

Adding a user to Community is completely identical and follows the rules of adding a user to a group.

Due to WhatsApp's anti-spam policy, some contacts are not automatically added to the group. Read more here

To remove a participant from the community, use the “Remove participants from community” endpoint:

Last updated

Was this helpful?