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

# Get group

> A group's data

## Overview

A group's data.

> [!NOTE]
>
> A group that does not exist responds `404` `provider_error`; a channel that does not exist responds `404` `instance not found`; an id out of format responds `400` `invalid_request`.


## OpenAPI

````yaml en/groups/openapi.json GET /v1/channels/{channelId}/groups/{groupId}
openapi: 3.1.0
info:
  title: Omni Z-API - Groups
  version: 1.0.0
servers:
  - url: https://api.omni.z-api.io
security:
  - bearerAuth: []
paths:
  /v1/channels/{channelId}/groups/{groupId}:
    get:
      tags:
        - Grupos
      summary: Get group
      description: >-
        Returns a group's data: name, description, owner, participants, and
        settings.
      operationId: getGroup
      parameters:
        - name: channelId
          in: path
          required: true
          description: Channel id
          schema:
            type: string
            example: 58907809F0964E998D36C87F10EBA60C
        - name: groupId
          in: path
          required: true
          description: Group id.
          schema:
            type: string
            example: 120363430328583007-group
      responses:
        '200':
          description: Get group
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Group'
              example:
                id: 120363430328583007-group
                name: Teste ZAPI-8975
                description: Grupo de teste
                createdAt: '2026-10-06T19:09:18.429Z'
                owner: '5544936180923'
                participants:
                  - id: '5544936180923'
                    name: null
                    role: ADMIN
                participantCount: 3
                settings:
                  onlyAdminsSendMessages: false
                  onlyAdminsEditInfo: true
                  joinApprovalRequired: false
                  onlyAdminsAddParticipants: false
        '400':
          description: Group id out of format
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              example:
                error: invalid_request
                field: groupId
        '401':
          $ref: '#/components/responses/Unauthorized'
        '403':
          $ref: '#/components/responses/Forbidden'
        '404':
          description: Group or channel not found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              examples:
                groupNotFound:
                  summary: Group not found
                  value:
                    error: provider_error
                    message: Error on get group
                instanceNotFound:
                  summary: Channel (instance) not found
                  value:
                    error: instance not found
        '422':
          description: >-
            Operation not available on the channel, instance not provisioned,
            inactive subscription or blocked workspace
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              examples:
                operationNotSupported:
                  summary: Channel without group support in this API
                  value:
                    error: operation not supported for this instance
                instanceNotProvisioned:
                  summary: Instance not provisioned
                  value:
                    error: instance is not provisioned
                subscriptionInactive:
                  summary: Inactive subscription
                  value:
                    error: instance subscription is not active
                workspaceBlocked:
                  summary: Blocked workspace
                  value:
                    error: You are blocked, contact support.
                    message: >-
                      You are blocked, contact support. This workspace is
                      blocked on the platform, so sending, editing and group
                      calls are refused until it is unblocked. Talk to support
                      through the panel at https://app.omni.z-api.io.
        '502':
          $ref: '#/components/responses/ProviderResponseTooLarge'
components:
  schemas:
    Group:
      type: object
      properties:
        id:
          type: string
        name:
          type: string
        description:
          type: string
        createdAt:
          type: string
          format: date-time
        owner:
          type: string
        participants:
          type: array
          items:
            $ref: '#/components/schemas/Participant'
        participantCount:
          type: integer
        settings:
          type: object
          properties:
            onlyAdminsSendMessages:
              type: boolean
              nullable: true
            onlyAdminsEditInfo:
              type: boolean
              nullable: true
            joinApprovalRequired:
              type: boolean
              nullable: true
            onlyAdminsAddParticipants:
              type: boolean
              nullable: true
    Error:
      type: object
      properties:
        error:
          type: string
        field:
          type: string
        message:
          type: string
    Participant:
      type: object
      properties:
        id:
          type: string
        name:
          type: string
          nullable: true
        role:
          type: string
          enum:
            - MEMBER
            - ADMIN
            - OWNER
  responses:
    Unauthorized:
      description: Secret Key missing or invalid
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
          example:
            error: Authorization invalid
            message: >-
              Authorization invalid: the Authorization header is missing or
              empty. Send the workspace Secret Key as "Authorization: Bearer
              <secret-key>". See
              https://developer.omni.z-api.io/en/authentication
      headers:
        WWW-Authenticate:
          description: Always `Bearer`
          schema:
            type: string
          example: Bearer
    Forbidden:
      description: IP not on the workspace IP allow list
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
          example:
            error: ip_not_allowed
            message: >-
              203.0.113.10 not allowed: this workspace only accepts API calls
              from the IPs on its allow list. The workspace Owner can add this
              IP under Administration > Security > IP Restriction in the panel
              (changes take up to 10 minutes to apply), or call from an allowed
              IP. See https://developer.omni.z-api.io/en/security/ip-restriction
    ProviderResponseTooLarge:
      description: Channel answer too large
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
          example:
            error: provider_response_too_large
            message: The channel answer is too large. Use a smaller pageSize.
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: Secret Key

````

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