# Communities

Webhooks for **Communities** work the same way as they do for **Groups**. Read more here: [groups](https://support.whapi.cloud/help-desk/receiving/webhooks/incoming-webhooks-format/groups "mention")\
You can use the same webhook events to track membership changes, updates, and activity within community sub-groups.

It is also important to take into account the nuances related to the logic of Communities, for example, how a group of ads looks like in the system and how it differs from other groups. We wrote more about it here: [communities](https://support.whapi.cloud/help-desk/communities "mention")

### Creation of new community

Use the `groups.post` setting to get this webhook.

When you create a Community, three entities are automatically created by WhatsApp itself: 1 - the Community itself, 2 - the Announcement Group within that Community (has the same name as the Community), 3 - the General Regular Group within the Community

Here's the community that's been created:

<pre><code>{
  "groups": [
    {
      <a data-footnote-ref href="#user-content-fn-1">"id": "120363401265816844@g.us",</a>
      "name": "Archery Fans",
      "type": "group",
      "timestamp": 1747725964,
      "participants": [
        {
          "id": "61371989950",
          "rank": "creator"
        }
      ],
      "name_at": 1747725964,
      "description": "Hey everyone!",
      "description_id": "0328DC0E8747E2A1D905678779AD87A2",
      "created_at": 1747725964,
      "created_by": "61371989950"
    }
  ],
  "event": {
    "type": "groups",
    "event": "post"
  },
  "channel_id": "SPRWMN-MU3RE"
}
</code></pre>

Here's an established group of announcements within the Community:

<pre><code>{
  "groups": [
    {
      <a data-footnote-ref href="#user-content-fn-2">"id": "120363419938029215@g.us"</a>,
      "name": "Archery Fans",
      "type": "group",
      "timestamp": 1747725964,
      "participants": [
        {
          "id": "61371989950",
          "rank": "creator"
        }
      ],
      "name_at": 1747725964,
      "description": "Hey everyone!",
      "description_id": "0328DC0E8747E2A1D905678779AD87A2",
      "created_at": 1747725964,
      "created_by": "61371989950",
      "announcements": true,
      <a data-footnote-ref href="#user-content-fn-3">"linkedParent": "120363401265816844@g.us"</a>,
      <a data-footnote-ref href="#user-content-fn-4">"isCommunityAnnounce": true</a>
    }
  ],
  "event": {
    "type": "groups",
    "event": "post"
  },
  "channel_id": "SPRWMN-MU3RE"
}
</code></pre>

{% hint style="warning" %}
**Important:**\
If you're seeing identifiers like `***@lid`, it means that at the time of the request, your WhatsApp account did not have access to the phone number of the other participant.

If you can see the participant’s number in your WhatsApp app but not in the API, please contact our support team so we can investigate.
{% endhint %}

[^1]: Community ID

[^2]: Use this group ID to send announcements to the community

[^3]: Linking to the community identifier itself

[^4]: A parameter indicating that this is an announcement group
