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

# Получить информацию об устройстве

> Получить подробную информацию о конкретном устройстве



## OpenAPI

````yaml /ru/openapi.yml get /devices/{device_id}
openapi: 3.0.0
info:
  title: WhatsApp API MultiDevice
  version: 9.7.0
  description: >
    Этот API используется для отправки whatsapp через API.


    Веб-панель инструментов это отдельный проект (gowa-ui); сервер загружает
    свой последний релиз

    и служит в `/` (или возвращает баннер JSON, когда

    APP_UI_ENABLED=false).


    Привязка устройства:

    - Отправляйте `X-Device-Id` при всех вызовах с прикрепленными устройствами.

    - WebSocket: подключиться к `/ws?device_id=<id>`.

    - Аутентификация WebSocket (когда включена основная аутентификация):
    браузеры не могут установить
      Заголовок авторизации при соединениях WebSocket, так же передает
      `&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/Файл/Видео).
  - name: message
    description: Управление сообщениями (отозвать/изменить/обновить).
  - name: call
    description: Управление звонками (отклонить входящие вызовы)
  - name: chat
    description: Общение и обмен сообщениями
  - name: group
    description: Настройки группы
  - name: newsletter
    description: настройка рассылки
  - name: chatwoot
    description: Интеграция с Chatwoot для поддержки клиентов
paths:
  /devices/{device_id}:
    get:
      tags:
        - device
      summary: Получить информацию об устройстве
      description: Получить подробную информацию о конкретном устройстве
      operationId: getDevice
      parameters:
        - name: device_id
          in: path
          required: true
          schema:
            type: string
          description: ID устройства
      responses:
        '200':
          description: ОК
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/DeviceInfoResponse'
        '404':
          description: Устройство не найдено
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorNotFound'
        '500':
          description: Внутренняя ошибка сервера
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorInternalServer'
components:
  schemas:
    DeviceInfoResponse:
      type: object
      properties:
        code:
          type: string
          example: SUCCESS
        message:
          type: string
          example: Device info
        status:
          type: integer
          example: 200
        results:
          $ref: '#/components/schemas/DeviceInfo'
    ErrorNotFound:
      type: object
      properties:
        code:
          type: string
          example: 404
          description: Код состояния HTTP
        message:
          type: string
          example: Chat not found
          description: Подробное сообщение об ошибке
        results:
          type: object
          example: null
          description: дополнительные данные
    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: дополнительные данные
    DeviceInfo:
      type: object
      properties:
        id:
          type: string
          example: my-device-id
        phone_number:
          type: string
          example: '628123456789'
        display_name:
          type: string
          example: John Doe
        state:
          type: string
          enum:
            - disconnected
            - connecting
            - connected
            - logged_in
          example: logged_in
        jid:
          type: string
          example: 628123456789@s.whatsapp.net
        created_at:
          type: string
          format: date-time
          example: '2024-01-01T00:00:00Z'
  securitySchemes:
    basicAuth:
      type: http
      scheme: basic

````

## Related topics

- [Получить информацию о бизнес-профиле](https://gowa-docs.mintlify.site/ru/api-reference/user/получить-информацию-о-бизнес-профиле.md)
- [Получить информацию о группе по ссылке приглашения](https://gowa-docs.mintlify.site/ru/api-reference/group/получить-информацию-о-группе-по-ссылке-приглашения.md)
- [Получить список чатов](https://gowa-docs.mintlify.site/ru/api-reference/chat/получить-список-чатов.md)
- [Получить конфигурацию Chatwoot устройства](https://gowa-docs.mintlify.site/ru/api-reference/chatwoot/получить-конфигурацию-chatwoot-устройства.md)
- [Получить статус подключения](https://gowa-docs.mintlify.site/ru/api-reference/app/получить-статус-подключения.md)


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