# Add a member to a community

To add a user to the Community, use this endpoint&#x20;

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

{% embed url="<https://whapi.readme.io/reference/addcommunityparticipant>" %}
This method is responsible for add participants community
{% endembed %}

```json
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:

<pre><code>{
  "success": true,
  "processed": [
    "306994508341",
    "306994518352"
  ],
  <a data-footnote-ref href="#user-content-fn-1">"failed": []</a>
}
</code></pre>

<div align="center"><figure><img src="https://2417185145-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FhsdgGmVCG31mEaHyRvxC%2Fuploads%2Fbc3KkytYLg5Wo4j5pHwb%2Fimage.png?alt=media&#x26;token=afa1f57b-fa07-4050-a394-3465761230b2" alt="" width="243"><figcaption><p>The result of adding new members to the community</p></figcaption></figure></div>

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

Due to WhatsApp's anti-spam policy, some contacts are not automatically added to the group. [Read more here](https://support.whapi.cloud/help-desk/groups/add-new-member-to-group#adding-a-member-to-a-group-failed)

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

{% embed url="<https://whapi.readme.io/reference/removecommunityparticipant>" %}

[^1]: If numbers could not be added to the community, they will be displayed in this array


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://support.whapi.cloud/help-desk/communities/add-a-member-to-a-community.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
