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

# 接続されているデバイスのリストを取得する

> デバイス API を介して作成されたプレースホルダを含む、サーバーに知られているすべてのデバイス ID を返します。 デバイスはストレージレジストリに永続化されるため、アプリケーションの再起動後もIDが安定し続けます。




## OpenAPI

````yaml /ja/openapi.yml get /app/devices
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:
  /app/devices:
    get:
      tags:
        - app
      summary: 接続されているデバイスのリストを取得する
      description: >
        デバイス API を介して作成されたプレースホルダを含む、サーバーに知られているすべてのデバイス ID を返します。
        デバイスはストレージレジストリに永続化されるため、アプリケーションの再起動後もIDが安定し続けます。
      operationId: appDevices
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/DeviceResponse'
        '500':
          description: 内部サーバーエラー
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorInternalServer'
components:
  schemas:
    DeviceResponse:
      type: object
      properties:
        code:
          type: string
          example: SUCCESS
        message:
          type: string
          example: Fetch device success
        results:
          type: array
          items:
            type: object
            properties:
              name:
                type: string
                example: Aldino Kemal
              device:
                type: string
                description: POST /devices経由で登録されたセッションID（再起動時に安定）
                example: org_2
              jid:
                type: string
                description: ログイン中のアカウントのWhatsApp JID (ログインまで空)
                example: 628960561XXX@s.whatsapp.net
    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: 追加データ
  securitySchemes:
    basicAuth:
      type: http
      scheme: basic

````

## Related topics

- [ユーザーの連絡先のリストを取得する](https://gowa-docs.mintlify.site/ja/api-reference/user/ユーザーの連絡先のリストを取得する.md)
- [接続状況を取得する](https://gowa-docs.mintlify.site/ja/api-reference/app/接続状況を取得する.md)
- [グループの参加者リストを取得する](https://gowa-docs.mintlify.site/ja/api-reference/group/グループの参加者リストを取得する.md)
- [デバイスのChatwoot設定を取得する](https://gowa-docs.mintlify.site/ja/api-reference/chatwoot/デバイスのchatwoot設定を取得する.md)
- [サーバーの健全性指標を取得する](https://gowa-docs.mintlify.site/ja/api-reference/app/サーバーの健全性指標を取得する.md)


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