> ## Documentation Index
> Fetch the complete documentation index at: https://developer.z-api.io/llms.txt
> Use this file to discover all available pages before exploring further.

# Group add permission

> Configure who can add you to groups

## Overview

Through this method, you can configure who can add you to groups.

<Info>
  The blacklist (disallowed contacts list) is different for each privacy setting.
</Info>

<Tip>
  You don't need to resend the `contactsBlacklist` attribute with contacts already added. This parameter is only for blacklist changes.
</Tip>

***

## Attributes

### Header

<ParamField path="instanceId" type="string" required>
  Your instance ID. Available in the Z-API panel under **Instances**.
</ParamField>

<ParamField path="token" type="string" required>
  Your Z-API instance token.
</ParamField>

### Required

<ParamField body="type" type="string" required>
  Permission type: `ALL` (everyone), `CONTACTS` (contacts only) or `CONTACT_BLACKLIST` (all contacts except blacklisted ones)
</ParamField>

### Optional

<ParamField body="contactsBlacklist" type="array">
  List of blacklist changes (only for CONTACT\_BLACKLIST type)

  <Expandable title="Properties">
    <ParamField body="action" type="string" required>
      Action: `add` or `remove`
    </ParamField>

    <ParamField body="phone" type="string" required>
      Contact number
    </ParamField>
  </Expandable>
</ParamField>

***

## Request Body

**Allow everyone:**

```json theme={"theme":{"light":"github-light","dark":"poimandres"}}
{
  "type": "ALL"
}
```

**With blacklist:**

```json theme={"theme":{"light":"github-light","dark":"poimandres"}}
{
  "type": "CONTACT_BLACKLIST",
  "contactsBlacklist": [
    { "action": "add", "phone": "554411111111" },
    { "action": "remove", "phone": "554422222222" }
  ]
}
```

***

## Response

### 200

```json theme={"theme":{"light":"github-light","dark":"poimandres"}}
{
  "success": true
}
```

### 405

Make sure you are correctly sending the method specification, that is, verify that you sent POST or GET as specified at the beginning of this topic.

### 415

If you receive a 415 error, make sure to add the "Content-Type" header to your request, which in most cases is "application/json".
