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

# User My List Groups

> Get all groups that the authenticated user has joined.

⚠️ **Known Limitation**: This endpoint returns a maximum of 500 groups due to a WhatsApp protocol limitation.
The underlying whatsmeow library's `GetJoinedGroups()` function sends a single query to WhatsApp servers,
which enforces this limit. This is not a bug in this API - it's a constraint imposed by WhatsApp's
multi-device protocol. Users with more than 500 groups will only receive the first 500 groups.

For more details, see: https://github.com/tulir/whatsmeow/blob/main/group.go




## OpenAPI

````yaml /openapi.yml get /user/my/groups
openapi: 3.0.0
info:
  title: WhatsApp API MultiDevice
  version: 9.7.0
  description: |
    This API is used for sending whatsapp via API.

    The web dashboard is a separate project (gowa-ui); the server downloads its
    latest release asset and serves it at `/` (or returns a JSON banner when
    APP_UI_ENABLED=false).

    Device scoping:
    - Send `X-Device-Id` on all device-scoped REST calls.
    - WebSocket: connect to `/ws?device_id=<id>`.
    - WebSocket auth (when basic auth is enabled): browsers cannot set an
      Authorization header on WebSocket connections, so also pass
      `&authorization=<base64(user:pass)>` in the query string. Use TLS in
      production since the credential is visible in the URL.
servers:
  - url: http://localhost:3000
security:
  - basicAuth: []
tags:
  - name: app
    description: Initial Connection to Whatsapp server
  - name: device
    description: Device management for multi-device support
  - name: user
    description: Getting information
  - name: send
    description: Send Message (Text/Image/File/Video).
  - name: message
    description: Message manipulation (revoke/react/update).
  - name: call
    description: Call management (reject incoming calls)
  - name: chat
    description: Chat conversations and messaging
  - name: group
    description: Group setting
  - name: newsletter
    description: newsletter setting
  - name: chatwoot
    description: Chatwoot integration for customer support
paths:
  /user/my/groups:
    get:
      tags:
        - user
      summary: User My List Groups
      description: >
        Get all groups that the authenticated user has joined.


        ⚠️ **Known Limitation**: This endpoint returns a maximum of 500 groups
        due to a WhatsApp protocol limitation.

        The underlying whatsmeow library's `GetJoinedGroups()` function sends a
        single query to WhatsApp servers,

        which enforces this limit. This is not a bug in this API - it's a
        constraint imposed by WhatsApp's

        multi-device protocol. Users with more than 500 groups will only receive
        the first 500 groups.


        For more details, see:
        https://github.com/tulir/whatsmeow/blob/main/group.go
      operationId: userMyGroups
      parameters:
        - $ref: '#/components/parameters/DeviceIdHeader'
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/UserGroupResponse'
        '500':
          description: Internal Server Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorInternalServer'
      externalDocs:
        description: WhatsApp protocol limitation reference (whatsmeow source)
        url: https://github.com/tulir/whatsmeow/blob/main/group.go
components:
  parameters:
    DeviceIdHeader:
      name: X-Device-Id
      in: header
      required: false
      description: >
        Device identifier for multi-device support. Required when multiple
        devices are registered.

        If only one device is registered, it will be used as the default.

        Can also be provided as `device_id` query parameter.
      schema:
        type: string
        example: my-device-id
  schemas:
    UserGroupResponse:
      type: object
      properties:
        code:
          type: string
          example: SUCCESS
        message:
          type: string
          example: Success get list groups
        results:
          type: object
          properties:
            data:
              type: array
              items:
                $ref: '#/components/schemas/UserMyGroupItem'
    ErrorInternalServer:
      type: object
      properties:
        code:
          type: string
          example: INTERNAL_SERVER_ERROR
          description: SYSTEM_CODE_ERROR
        message:
          type: string
          example: you are not loggin
          description: Detail error message
        results:
          type: object
          example: null
          description: additional data
    UserMyGroupItem:
      type: object
      description: >
        One joined group as serialized `whatsmeow/types.GroupInfo`. Embedded
        structs are flattened; field names stay PascalCase (Go default JSON).
      properties:
        JID:
          type: string
          example: 120363416355796813@g.us
        OwnerJID:
          type: string
        OwnerPN:
          type: string
        Name:
          type: string
        NameSetAt:
          type: string
          format: date-time
        NameSetBy:
          type: string
        NameSetByPN:
          type: string
        GroupCreated:
          type: string
          format: date-time
        CreatorCountryCode:
          type: string
        ParticipantVersionID:
          type: string
        ParticipantCount:
          type: integer
        Participants:
          type: array
          items:
            $ref: '#/components/schemas/JoinedGroupParticipant'
        MemberAddMode:
          type: string
          example: admin_add
        Suspended:
          type: boolean
        AddressingMode:
          type: string
        IsLocked:
          type: boolean
        IsAnnounce:
          type: boolean
        AnnounceVersionID:
          type: string
        IsEphemeral:
          type: boolean
        DisappearingTimer:
          type: integer
        IsIncognito:
          type: boolean
        IsJoinApprovalRequired:
          type: boolean
        DefaultMembershipApprovalMode:
          type: string
        IsParent:
          type: boolean
        LinkedParentJID:
          type: string
        IsDefaultSubGroup:
          type: boolean
        Topic:
          type: string
        TopicID:
          type: string
        TopicDeleted:
          type: boolean
        TopicSetAt:
          type: string
          format: date-time
        TopicSetBy:
          type: string
        TopicSetByPN:
          type: string
    JoinedGroupParticipant:
      type: object
      description: >-
        Serialized `whatsmeow/types.GroupParticipant` in joined-group list
        payloads.
      properties:
        JID:
          type: string
          description: Primary ID for the member (often `@lid`).
        PhoneNumber:
          type: string
          description: >-
            User JID string when known (e.g. `628...@s.whatsapp.net`); may be
            empty in edge cases.
        LID:
          type: string
        IsAdmin:
          type: boolean
        IsSuperAdmin:
          type: boolean
        DisplayName:
          type: string
          description: Set for some anonymous / announcement cases; often empty.
        Error:
          type: integer
        AddRequest:
          type: object
          nullable: true
  securitySchemes:
    basicAuth:
      type: http
      scheme: basic

````

## Related topics

- [User My List Groups](https://gowa-docs.mintlify.site/api-reference/user/user-my-list-groups-1.md)
- [Get list of user contacts with every contact name separate](https://gowa-docs.mintlify.site/api-reference/user/get-list-of-user-contacts-with-every-contact-name-separate.md)
- [User My Privacy Setting](https://gowa-docs.mintlify.site/api-reference/user/user-my-privacy-setting.md)
- [Get list of user contacts](https://gowa-docs.mintlify.site/api-reference/user/get-list-of-user-contacts.md)
- [Get list of participant requests to join group](https://gowa-docs.mintlify.site/api-reference/group/get-list-of-participant-requests-to-join-group.md)


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