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

# Listar grupo

> GET /group/all API WhatsApp json.pe: lista todos los grupos de la sesión con participantes y metadatos; solo Bearer token.



## OpenAPI

````yaml api-whatsapp/openapi.json GET /group/all
openapi: 3.0.1
info:
  title: json.pe - API WhatsApp
  description: >-
    API para envío de mensajes y medios por WhatsApp, listado de grupos y
    gestión de instancia (QR, pairing code y `GET /instance/status`). Producto
    de [json.pe](https://json.pe), independiente de API Consulta: base URL,
    token y límites pueden diferir.
    [Introducción](https://docs.json.pe/api-whatsapp/introduccion) (pasos
    técnicos) y
    [Recomendaciones](https://docs.json.pe/api-whatsapp/recomendaciones) (uso
    responsable, spam y baneos).
  version: 1.0.0
servers:
  - url: https://api.whatsapp.json.pe
    description: API WhatsApp json.pe
security:
  - bearerAuth: []
tags:
  - name: Instance
    description: 'Sesión de la instancia: QR, pairing code y estado'
  - name: Message
    description: Envío de mensajes y listado de grupos
paths:
  /group/all:
    get:
      tags:
        - Message
      summary: Listar todos los grupos
      description: >-
        Devuelve todos los grupos de la sesión vinculada al token. Solo requiere
        el header `Authorization: Bearer`. Sin cuerpo de solicitud.
      operationId: whatsappGroupAll
      responses:
        '200':
          description: Lista obtenida correctamente.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/whatsapp-groups-all-response'
        '401':
          description: Token inválido o ausente.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/error'
components:
  schemas:
    whatsapp-groups-all-response:
      type: object
      required:
        - success
        - message
        - data
      properties:
        success:
          type: boolean
          example: true
        message:
          type: string
          example: string
        data:
          $ref: '#/components/schemas/whatsapp-groups-list-payload'
    error:
      required:
        - message
        - success
      type: object
      properties:
        success:
          type: boolean
        message:
          type: string
      example:
        success: false
        message: Bad Request
    whatsapp-groups-list-payload:
      type: object
      description: >-
        Contenedor anidado: la respuesta expone `data.data` como listado de
        grupos.
      required:
        - data
      properties:
        data:
          type: array
          items:
            $ref: '#/components/schemas/whatsapp-group'
    whatsapp-group:
      type: object
      properties:
        JID:
          type: string
          description: Identificador JID del grupo.
        OwnerJID:
          type: string
        OwnerPN:
          type: string
        Name:
          type: string
        NameSetAt:
          type: string
        NameSetBy:
          type: string
        NameSetByPN:
          type: string
        Topic:
          type: string
        TopicID:
          type: string
        TopicSetAt:
          type: string
        TopicSetBy:
          type: string
        TopicSetByPN:
          type: string
        TopicDeleted:
          type: boolean
        IsLocked:
          type: boolean
        IsAnnounce:
          type: boolean
        AnnounceVersionID:
          type: string
        IsEphemeral:
          type: boolean
        DisappearingTimer:
          type: integer
        IsIncognito:
          type: boolean
        IsParent:
          type: boolean
        DefaultMembershipApprovalMode:
          type: string
        LinkedParentJID:
          type: string
        IsDefaultSubGroup:
          type: boolean
        IsJoinApprovalRequired:
          type: boolean
        AddressingMode:
          type: string
        GroupCreated:
          type: string
        CreatorCountryCode:
          type: string
        ParticipantVersionID:
          type: string
        Participants:
          type: array
          items:
            $ref: '#/components/schemas/whatsapp-group-participant'
        ParticipantCount:
          type: integer
        MemberAddMode:
          type: string
        Suspended:
          type: boolean
    whatsapp-group-participant:
      type: object
      properties:
        JID:
          type: string
        PhoneNumber:
          type: string
        LID:
          type: string
        IsAdmin:
          type: boolean
        IsSuperAdmin:
          type: boolean
        DisplayName:
          type: string
        Error:
          type: integer
        AddRequest:
          type: string
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: token
      description: >-
        Token Bearer del panel json.pe (no compartas tokens en repositorios
        públicos).
      x-default: ''

````