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

# 用户我的列表组

> 获取认证用户加入的所有组。

⚠️ **已知的限制**: 由于WhatsApp协议限制，此端点最多返回500个组。
底层 whatsmeow 库的 `GetJoinedGroups()` 函数会向 WhatsApp 服务器发送一次查询，
此限制由 WhatsApp 服务器实施。 这不是此 API 中的错误——这是WhatsApp的
多设备协议施加的限制。 拥有500多个组的用户将只接收前500个组。

更多详情，见：https://github.com/tulir/whatsmeow/blob/main/group.go




## OpenAPI

````yaml /zh/openapi.yml get /user/my/groups
openapi: 3.0.0
info:
  title: WhatsApp API 多设备
  version: 9.7.0
  description: |
    此 API 用于通过 API 发送什么应用。

    Web 仪表板是一个单独的项目(gowa-ui)； 服务器下载它的
    最新版本资产并在 `/` 处服务(或在
    APP_UI_ENABLED=false时返回一个 JSON 横幅)。

    设备范围：
    - 在所有设备范围的REST 调用上发送 `X-Device-Id` 。
    - WebSocket: 连接到"/w?device_id=<id>`.
    - WebSocket 身份验证（启用基本身份验证时）：浏览器无法为
      WebSocket 连接设置 Authorization 请求头，因此还需在
      查询字符串中传入 `&authorization=<base64(user:pass)>`。 在
      生产中使用TLS ，因为凭据在 URL 中可见。
servers:
  - url: http://localhost:3000
security:
  - basicAuth: []
tags:
  - name: app
    description: 初始连接到 Whatsapp 服务器
  - name: device
    description: 多设备支持的设备管理
  - name: user
    description: 获取信息
  - name: send
    description: 发送消息 (Text/Image/File/Video)。
  - name: message
    description: 消息操作 (撤销/react/update)。
  - name: call
    description: 通话管理 (拒绝来电)
  - name: chat
    description: 聊天对话和消息
  - name: group
    description: 组设置
  - name: newsletter
    description: 通讯设置
  - name: chatwoot
    description: 客户支持的聊天窗口集成
paths:
  /user/my/groups:
    get:
      tags:
        - user
      summary: 用户我的列表组
      description: |
        获取认证用户加入的所有组。

        ⚠️ **已知的限制**: 由于WhatsApp协议限制，此端点最多返回500个组。
        底层 whatsmeow 库的 `GetJoinedGroups()` 函数会向 WhatsApp 服务器发送一次查询，
        此限制由 WhatsApp 服务器实施。 这不是此 API 中的错误——这是WhatsApp的
        多设备协议施加的限制。 拥有500多个组的用户将只接收前500个组。

        更多详情，见：https://github.com/tulir/whatsmeow/blob/main/group.go
      operationId: userMyGroups
      parameters:
        - $ref: '#/components/parameters/DeviceIdHeader'
      responses:
        '200':
          description: 好的
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/UserGroupResponse'
        '500':
          description: 服务器内部错误
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorInternalServer'
      externalDocs:
        description: WhatsApp 协议限制参考(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_id` 查询参数提供。
      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: 详细错误消息
        results:
          type: object
          example: null
          description: 附加数据
    UserMyGroupItem:
      type: object
      description: >
        一个已加入的群组，以序列化的 `whatsmeow/types.GroupInfo` 表示。 嵌入式结构被平整；字段名称保持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: 在组别列表有效载荷中序列化 `whatsmeow/types.GroupParticipant`
      properties:
        JID:
          type: string
          description: 会员的主要ID(通常是`@lid`)。
        PhoneNumber:
          type: string
          description: 已知时为用户 JID 字符串（例如 `628...@s.whatsapp.net`）；在极端情况下可能为空。
        LID:
          type: string
        IsAdmin:
          type: boolean
        IsSuperAdmin:
          type: boolean
        DisplayName:
          type: string
          description: 设置一些匿名/通知案例；通常为空。
        Error:
          type: integer
        AddRequest:
          type: object
          nullable: true
  securitySchemes:
    basicAuth:
      type: http
      scheme: basic

````

## Related topics

- [用户我的列表组](https://gowa-docs.mintlify.site/zh/api-reference/user/用户我的列表组-1.md)
- [用户我的隐私设置](https://gowa-docs.mintlify.site/zh/api-reference/user/用户我的隐私设置.md)
- [获取用户联系人列表](https://gowa-docs.mintlify.site/zh/api-reference/user/获取用户联系人列表.md)
- [预定发送列表列表](https://gowa-docs.mintlify.site/zh/api-reference/send/预定发送列表列表.md)
- [获取加入群组的参与者请求列表](https://gowa-docs.mintlify.site/zh/api-reference/group/获取加入群组的参与者请求列表.md)


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