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

# List groups

> Lists the groups the instance belongs to, each with its `id` and name.



## OpenAPI

````yaml /en/api-reference/openapi.json get /groups
openapi: 3.1.0
info:
  title: Zapfy API
  description: >-
    Multi-tenant WhatsApp API. Send messages and manage webhooks through a
    single surface.
  version: 1.0.0
servers:
  - url: https://api.zapfy.io/v1
security:
  - accountToken: []
paths:
  /groups:
    get:
      tags:
        - Groups
      summary: List groups
      description: Lists the groups the instance belongs to, each with its `id` and name.
      responses:
        '200':
          $ref: '#/components/responses/GroupList'
        '401':
          $ref: '#/components/responses/Error'
        '403':
          $ref: '#/components/responses/Error'
        '502':
          $ref: '#/components/responses/Error'
      security:
        - instanceToken: []
components:
  responses:
    GroupList:
      description: Instance groups.
      content:
        application/json:
          schema:
            type: object
            properties:
              data:
                type: array
                items:
                  $ref: '#/components/schemas/GroupSummary'
    Error:
      description: Error.
      content:
        application/json:
          schema:
            type: object
            properties:
              error:
                type: string
                example: Instance not found
  schemas:
    GroupSummary:
      type: object
      properties:
        id:
          $ref: '#/components/schemas/GroupId'
          description: the group id.
        name:
          type: string
          example: Family
          description: Group name.
    GroupId:
      type: string
      description: the group id (returned by GET /groups).
      example: '120363012345678901'
  securitySchemes:
    accountToken:
      type: http
      scheme: bearer
      description: Account token (`zpfy_acct_...`) — manages instances and webhooks.
    instanceToken:
      type: http
      scheme: bearer
      description: Instance token (`zpfy_inst_...`) — sends messages.

````