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

# Получить прогресс синхронизации Chatwoot

> Возвращает текущий прогресс синхронизации для устройства



## OpenAPI

````yaml /ru/openapi.yml get /chatwoot/sync/status
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:
  /chatwoot/sync/status:
    get:
      tags:
        - chatwoot
      summary: Получить прогресс синхронизации Chatwoot
      description: Возвращает текущий прогресс синхронизации для устройства
      operationId: chatwootSyncStatus
      parameters:
        - name: device_id
          in: query
          description: ID устройства для проверки состояния синхронизации для
          schema:
            type: string
      responses:
        '200':
          description: Получено состояние синхронизации
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ChatwootSyncStatusResponse'
        '400':
          description: Плохой запрос
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorBadRequest'
components:
  schemas:
    ChatwootSyncStatusResponse:
      type: object
      properties:
        status:
          type: integer
          example: 200
        code:
          type: string
          example: SUCCESS
        message:
          type: string
          example: Sync status retrieved
        results:
          type: object
          properties:
            device_id:
              type: string
              example: my-device-id
            status:
              type: string
              enum:
                - idle
                - running
                - completed
                - failed
              example: running
            total_chats:
              type: integer
              example: 10
            synced_chats:
              type: integer
              example: 5
            total_messages:
              type: integer
              example: 100
            synced_messages:
              type: integer
              example: 50
            failed_messages:
              type: integer
              example: 2
            current_chat:
              type: string
              example: 628123456789@s.whatsapp.net
            started_at:
              type: string
              format: date-time
            completed_at:
              type: string
              format: date-time
            error:
              type: string
    ErrorBadRequest:
      type: object
      properties:
        code:
          type: string
          example: 400
          description: Код состояния HTTP
        message:
          type: string
          example: field cannot be blank
          description: Подробное сообщение об ошибке
        results:
          type: object
          example: null
          description: дополнительные данные
  securitySchemes:
    basicAuth:
      type: http
      scheme: basic

````

## Related topics

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


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