# Fetch Group Details

Below API allows to fetch group details

## Fetch Group Details

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

This API allows you to fetch WhatsApp Group Details

#### Request Body

| Name      | Type   | Description                                                                                                                                                                            |
| --------- | ------ | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| token     | string | Your API Token for authentication                                                                                                                                                      |
| group\_id | string | <p>If you want to query for specific group then please pass the group id<br><br>If you left this field blank then system will fetch all group details in your WhatsApp Account<br></p> |

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

```javascript
{
    "status": 100,
    "message": "Success",
    "group_id": "GY4008",
    "group_subject": "Groups",
    "group_icon_link": "https://pickyassist.com/img/social-messaging.png",
    "group_invite_link": "https://chat.whatsapp.com/FL7nAPRWri0KDttMdQHpba",
    "group_admins": [
        {
            "number": "993436042290",
            "created_time": "15-01-2020 03:04 PM"
        }
    ],
    "group_members": [
        {
            "number": "13447077348",
            "created_time": "15-01-2020 11:44 AM"
        }
    ],
    "group_created_date": "14-01-2020 12:29 PM"
}
```

{% endtab %}
{% endtabs %}

## Sample Request Body JSON

```javascript
{
	"token": "7b18871699f1948650e9832a24547105cfe3",
	"group_id": "9194055074-16187483",
	"application":10
}

```

## Sample Response

```javascript
{
   "status":100,
   "message":"Success",
   "group_id":"91940055074-16217483",
   "group_subject":"picky test group",
   "group_icon_link":"",
   "group_invite_link":"https:\/\/chat.whatsapp.com\/Cu24HsZdeSK2xWi4PODC",
   "group_admins":[
      {
         "number":"9196707768",
         "created_time":"2021-04-01T13:51:40+05:30"
      }
   ],
   "group_members":[
      {
         "number":"546919446768",
         "created_time":"2021-04-01T13:32:37+05:30"
      },
      {
         "number":"5459942009",
         "created_time":"2021-04-01T14:03:53+05:30"
      }
   ],
   "group_created_date":"2021-04-01T13:32:37+05:30"
}
```

## 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    | This will return after creating a group , this link can be shared with users to join the group                                                                                                                                                                                                                                                     |
| group\_subject       | String  | Group Subject                                                                                                                                                                                                                                                                                                                                      |
| group\_icon\_link    | URL     | Group Icon Link **(Not Supported in WhatsApp Web Automation)**                                                                                                                                                                                                                                                                                     |
| group\_admins        | Array   | <p>Array which contains admin details<br><br>number<br>created\_time</p>                                                                                                                                                                                                                                                                           |
| group\_members       | Array   | <p>Array which contains group member details <br><br>number<br>created\_time</p>                                                                                                                                                                                                                                                                   |
| group\_created\_date | Date    | <p>Date & time when the groups is created,</p><p></p><p>Timezone in your account , and date format is DD-MM-YYYY hh:mm AM</p><p></p><p><strong>This will be blank if the groups are not created through Picky Assist API's i.e Groups that are created manually from the phone will not have the created time updated to Picky Assist</strong></p> |
| status               | Numeric | Status of the request                                                                                                                                                                                                                                                                                                                              |
| message              | String  | Error / Sucess message of the request                                                                                                                                                                                                                                                                                                              |


---

# 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://help.pickyassist.com/api-documentation-v2/whatsapp-group-api/fetch-group-details.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.
