Add a member to a community
Last updated
Was this helpful?
Last updated
Was this helpful?
To add a user to the Community, use this endpoint
POST https://gate.whapi.cloud/communities/{CommunityID}/participants
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"
],
}
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: