# Create Group

Below API allows creating new groups&#x20;

{% hint style="danger" %}

### Groups will drastically slow down your WhatsApp automation server and may affect the regular WhatsApp sending and receiving speed, so please use group features carefully, there is no option to scale up the WhatsApp Web Automation beyond a limit.

{% endhint %}

## Create Groups

<mark style="color:green;">`POST`</mark> `https://pickyassist.com/app/api/v2/create-whatsapp-group`

This API allows you to create a WhatsApp Group

#### Request Body

| Name           | Type   | Description                                                                                             |
| -------------- | ------ | ------------------------------------------------------------------------------------------------------- |
| token          | string | Your API Token for authentication                                                                       |
| group\_subject | string | <p>Subject of the Group, Maximum 25 Characters<br></p>                                                  |
| group\_icon    | string | Pass the Link of the picture to be updated as group icon **(Not supported in WhatsApp Web Automation)** |

{% tabs %}
{% tab title="200 " %}

```javascript
{
   "group_id":"91940055074-161827483",
   "group_invite_link":"https:\/\/chat.whatsapp.com\/Cu24HdeSK2xqDWi4PODC",
   "status":100,
   "message":"Success"
}
```

{% endtab %}
{% endtabs %}

## Sample Request Body JSON

```javascript
{
	"token": "7b18871699f15850e9832a24547105cfe3",
	"group_subject": "picky group",
	"application":10,
	"number":["9194XXXXXXX"]
}

```

## Sample Response

```javascript
{
   "group_id":"91940055074-161827483",
   "group_invite_link":"https:\/\/chat.whatsapp.com\/Cu24HdeSK2xqDWi4PODC",
   "status":100,
   "message":"Success"
}
```

## Response Variables

| Variable Name      | Type    | Description                                                                                                                                                                                                                                                                                                                                 |
| ------------------ | ------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| group\_id          | String  | This will return after creating a group , this id used to identify the group                                                                                                                                                                                                                                                                |
| group\_invite\_ink | Link    | <p>This will return after creating a group , this link can be shared with users to join the group</p><p></p><p><strong>In case if you are not getting the Group Invite Link in this variable then please call the</strong> <a href="fetch-group-details"><strong>Fetch Group Details API</strong></a> <strong>after 5 minutes.</strong></p> |
| group\_subject     | String  | Group Subject                                                                                                                                                                                                                                                                                                                               |
| status             | Numeric | Status of the request                                                                                                                                                                                                                                                                                                                       |
| message            | String  | Error / Sucess message of the request                                                                                                                                                                                                                                                                                                       |
