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

# Group metadata (light)

> Returns the group metadata without the invitation link

## Overview

Method that returns the group metadata, with all the group information and its participants, except the invitation link.

The only difference from [Group metadata](https://developer.omni.z-api.io/en/z-api/groups/group-metadata.md) is that this one does not return the invitation link, because getting the link is sometimes costly and slightly slow. If you need the link, use [Get invitation link](https://developer.omni.z-api.io/en/z-api/groups/group-invitation-link.md).

> [!WARNING]
>
> On WhatsApp Official, the fields have the same values as [Group metadata](https://developer.omni.z-api.io/en/z-api/groups/group-metadata.md), with `invitationLink` always `null`.

> [!NOTE]
>
> The response structure is identical to Z-API. Your existing code that processes these returns will continue working without changes.


## OpenAPI

````yaml en/z-api/openapi.json GET /light-group-metadata/{phone}
openapi: 3.1.0
info:
  title: Omni Z-API - Z-API Compatibility
  description: Z-API compatible API to facilitate migration to Omni Z-API
  version: 1.0.0
servers:
  - url: https://zapi.omni.z-api.io/channels/{channel_id}/token/{channel_token}
    variables:
      channel_id:
        description: Channel ID (equivalent to Z-API instance_id)
        default: YOUR_CHANNEL
      channel_token:
        description: Channel token (equivalent to Z-API token)
        default: YOUR_TOKEN
security:
  - bearerAuth: []
paths:
  /light-group-metadata/{phone}:
    get:
      tags:
        - Groups
      summary: Group metadata (light)
      description: Returns the group metadata without the invitation link.
      operationId: getLightGroupMetadata
      parameters:
        - name: phone
          in: path
          required: true
          description: Group ID/Phone
          schema:
            type: string
      responses:
        '200':
          description: Success.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GroupMetadataResponse'
              example:
                phone: 120363019502650977-group
                description: Grupo Z-API
                owner: '5511999999999'
                subject: Meu grupo no Z-API
                creation: 1588721491000
                invitationLink: null
                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'
                growthLocked: false
                growthLockExpiration: 0
        '400':
          $ref: '#/components/responses/GroupBadRequest'
        '422':
          $ref: '#/components/responses/GroupUnprocessable'
        '500':
          $ref: '#/components/responses/GroupInternalError'
        '502':
          $ref: '#/components/responses/GroupBadGateway'
        '503':
          $ref: '#/components/responses/GroupUnavailable'
components:
  schemas:
    GroupMetadataResponse:
      type: object
      properties:
        phone:
          type: string
          description: Group ID/Phone
        description:
          type: string
          description: Group description
        owner:
          type: string
          description: Number of the group creator
        subject:
          type: string
          description: Group name
        creation:
          type: number
          description: Group creation date (timestamp)
        invitationLink:
          type: string
          description: Group invitation link
        communityId:
          type: string
          description: Community ID
        adminOnlyMessage:
          type: boolean
          description: Only administrators can send messages
        adminOnlySettings:
          type: boolean
          description: Only administrators can change the group settings
        requireAdminApproval:
          type: boolean
          description: Requires administrator approval for new members
        isGroupAnnouncement:
          type: boolean
        participants:
          type: array
          items:
            $ref: '#/components/schemas/GroupParticipant'
          description: Group participants
        subjectTime:
          type: number
        subjectOwner:
          type: string
        growthLocked:
          type: boolean
          description: Indicates whether the group invitation link is suspended
        growthLockExpiration:
          type: number
          description: Timestamp of the invitation link suspension expiry
    GroupParticipant:
      type: object
      properties:
        phone:
          type: string
          description: Group ID/Phone
        isAdmin:
          type: boolean
          description: Indicates whether the participant is an administrator
        isSuperAdmin:
          type: boolean
          description: Indicates whether the participant is the group owner
        short:
          type: string
        name:
          type: string
    GroupError:
      type: object
      properties:
        error:
          type: string
          description: Error message
  responses:
    GroupBadRequest:
      description: >-
        Invalid request: parameter or field outside the rules. See the common
        errors in the Groups introduction.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/GroupError'
          example:
            error: invalid path parameter
    GroupUnprocessable:
      description: >-
        Route unavailable for the channel type, inactive subscription or refusal
        by Meta. See the common errors in the Groups introduction.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/GroupError'
          example:
            error: instance subscription is not active
    GroupInternalError:
      description: Unexpected internal error.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/GroupError'
          example:
            error: internal server error
    GroupBadGateway:
      description: The channel did not answer.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/GroupError'
          example:
            error: failed to reach the META_WHATSAPP channel
    GroupUnavailable:
      description: >-
        Internal Omni Z-API failure that the request did not cause. Try again
        later.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/GroupError'
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: Secret Key generated in the Omni Z-API Security panel

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.