> ## 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 metadata

> Returns group metadata with all information and participants

## Overview

This method returns the group metadata with all group information and its participants.

***

## 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>

### Path

<ParamField path="phone" type="string" required>
  Group ID/Phone
</ParamField>

***

## Response

### 200

<ResponseField name="phone" type="string">
  Group ID/Phone
</ResponseField>

<ResponseField name="description" type="string">
  Group description
</ResponseField>

<ResponseField name="owner" type="string">
  Group creator's number
</ResponseField>

<ResponseField name="subject" type="string">
  Group name
</ResponseField>

<ResponseField name="creation" type="number">
  Group creation date (timestamp)
</ResponseField>

<ResponseField name="invitationLink" type="string">
  Group invitation link (admin only)
</ResponseField>

<ResponseField name="communityId" type="string">
  Community ID
</ResponseField>

<ResponseField name="adminOnlyMessage" type="boolean">
  Only admins can send messages
</ResponseField>

<ResponseField name="adminOnlySettings" type="boolean">
  Only admins can change settings
</ResponseField>

<ResponseField name="requireAdminApproval" type="boolean">
  Admin approval required to join
</ResponseField>

<ResponseField name="isGroupAnnouncement" type="boolean">
  Whether it is an announcement group
</ResponseField>

<ResponseField name="participants" type="array">
  Array with participant data
</ResponseField>

```json theme={"theme":{"light":"github-light","dark":"poimandres"}}
{
  "phone": "120363019502650977-group",
  "description": "Z-API Group",
  "owner": "5511999999999",
  "subject": "My group on Z-API",
  "creation": 1588721491000,
  "invitationLink": "https://chat.whatsapp.com/40Aasd6af1",
  "communityId": null,
  "adminOnlyMessage": false,
  "adminOnlySettings": false,
  "requireAdminApproval": false,
  "isGroupAnnouncement": false,
  "participants": [
    {
      "phone": "5511888888888",
      "isAdmin": false,
      "isSuperAdmin": false
    },
    {
      "phone": "5511777777777",
      "isAdmin": true,
      "isSuperAdmin": false,
      "short": "ZAPIs",
      "name": "ZAPIs Boys"
    }
  ],
  "subjectTime": 1617805323000,
  "subjectOwner": "554497050785"
}
```

### 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".
