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

# ユーザーマイリストグループ

> 認証されたユーザーが参加したすべてのグループを取得します。

⚠️ **Known Limitation**: WhatsAppプロトコルの制限により、このエンドポイントは最大500グループを返します。
基礎となるwhatsmeowライブラリの`GetJoinedGroups()`関数は、WhatsAppサーバー
に単一のクエリを送信し、これが制限されます。 このAPIのバグではありません。WhatsAppの
マルチデバイスプロトコルによって課される制約です。 500以上のグループを持つユーザーは、最初の500のグループのみを受け取ります。

詳細は以下をご覧ください: https://github.com/tulir/whatsmeow/blob/main/group.go




## OpenAPI

````yaml /ja/openapi.yml get /user/my/groups
openapi: 3.0.0
info:
  title: WhatsApp API マルチデバイス
  version: 9.7.0
  description: |
    この API は API 経由で whatsapp を送信するために使用されます。

    Web ダッシュボードは別のプロジェクトです (gowa-ui); サーバーは
    最新のリリースアセットをダウンロードし、`/`で動作します（または、
    APP_UI_ENABLED=falseの場合はJSONバナーを返します）。

    デバイススコープ:
    - すべてのデバイススコープの REST コールで `X-Device-Id` を送信します。
    - WebSocket: `/wsに接続しますか？device_id=<id> ` 。
    - WebSocket 認証（Basic Auth が有効な場合）: ブラウザーは WebSocket 接続で
      Authorization ヘッダーを設定できないため、クエリ文字列にも
      `&authorization=<base64(user:pass)>` を渡してください。 認証情報が URL に表示されるため、本番環境では
      TLS を使用してください。
servers:
  - url: http://localhost:3000
security:
  - basicAuth: []
tags:
  - name: app
    description: Whatsappサーバーへの初期接続
  - name: device
    description: マルチデバイスサポートのためのデバイス管理
  - name: user
    description: 情報の取得
  - name: send
    description: メッセージ (テキスト/イメージ/ファイル/ビデオ) を送信します。
  - name: message
    description: メッセージ操作 (revoke/react/update)
  - name: call
    description: 通話管理 (着信拒否)
  - name: chat
    description: チャットとメッセージ
  - name: group
    description: グループ設定
  - name: newsletter
    description: ニュースレターの設定
  - name: chatwoot
    description: カスタマーサポートのためのChatwoot統合
paths:
  /user/my/groups:
    get:
      tags:
        - user
      summary: ユーザーマイリストグループ
      description: |
        認証されたユーザーが参加したすべてのグループを取得します。

        ⚠️ **Known Limitation**: WhatsAppプロトコルの制限により、このエンドポイントは最大500グループを返します。
        基礎となるwhatsmeowライブラリの`GetJoinedGroups()`関数は、WhatsAppサーバー
        に単一のクエリを送信し、これが制限されます。 このAPIのバグではありません。WhatsAppの
        マルチデバイスプロトコルによって課される制約です。 500以上のグループを持つユーザーは、最初の500のグループのみを受け取ります。

        詳細は以下をご覧ください: 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: 内部サーバーエラー
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorInternalServer'
      externalDocs:
        description: WhatsAppプロトコル制限参照（whatsmeowソース）
        url: https://github.com/tulir/whatsmeow/blob/main/group.go
components:
  parameters:
    DeviceIdHeader:
      name: X-Device-Id
      in: header
      required: false
      description: |
        マルチデバイスサポート用のデバイス識別子 複数のデバイスが登録されている場合に必要です。
        1つのデバイスのみ登録されている場合は、デフォルトとして使用されます。
        `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: システムのコードにエラー
        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/ja/api-reference/user/ユーザーマイリストグループ-1.md)
- [APIリファレンス](https://gowa-docs.mintlify.site/ja/api-reference/introduction.md)
- [グループの参加者リストを取得する](https://gowa-docs.mintlify.site/ja/api-reference/group/グループの参加者リストを取得する.md)
- [ユーザーの連絡先のリストを取得する](https://gowa-docs.mintlify.site/ja/api-reference/user/ユーザーの連絡先のリストを取得する.md)
- [連絡先名ごとにユーザの連絡先一覧を表示する](https://gowa-docs.mintlify.site/ja/api-reference/user/連絡先名ごとにユーザの連絡先一覧を表示する.md)


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