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

# Mesaj geçmişini Chatwoot ile eşitle

> WhatsApp mesaj geçmişinin Chatwoot ile arka planda eşitlenmesini başlatır.
Yapılandırılan gün sayısına ait mesajlar içe aktarılır.
Bu uç nokta, yapılandırmada CHATWOOT_ENABLED=true olmasını gerektirir.




## OpenAPI

````yaml /tr/openapi.yml post /chatwoot/sync
openapi: 3.0.0
info:
  title: WhatsApp Çoklu Cihaz API’si
  version: 9.7.0
  description: >
    Bu API, API üzerinden WhatsApp mesajları göndermek için kullanılır.


    Web panosu ayrı bir projedir (gowa-ui); sunucu bu projenin

    en son sürüm dosyasını indirir ve `/` yolunda sunar (veya

    APP_UI_ENABLED=false olduğunda bir JSON başlığı döndürür).


    Cihaz kapsamı:

    - Cihaz kapsamındaki tüm REST çağrılarında `X-Device-Id` gönderin.

    - WebSocket: `/ws?device_id=<id>` adresine bağlanın.

    - WebSocket kimlik doğrulaması (temel kimlik doğrulaması etkinken):
    tarayıcılar WebSocket bağlantılarında
      Authorization üst bilgisi ayarlayamaz; bu nedenle sorgu dizesinde ayrıca
      `&authorization=<base64(user:pass)>` geçirin. Kimlik bilgisi URL’de göründüğünden
      üretim ortamında TLS kullanın.
servers:
  - url: http://localhost:3000
security:
  - basicAuth: []
tags:
  - name: app
    description: WhatsApp sunucusuna ilk bağlantı
  - name: device
    description: Çoklu cihaz desteği için cihaz yönetimi
  - name: user
    description: Bilgi alma
  - name: send
    description: Mesaj gönderme (Metin/Görsel/Dosya/Video).
  - name: message
    description: Mesaj işlemleri (geri alma/tepki verme/güncelleme).
  - name: call
    description: Arama yönetimi (gelen aramaları reddetme)
  - name: chat
    description: Sohbetler ve mesajlaşma
  - name: group
    description: Grup ayarları
  - name: newsletter
    description: Bülten ayarları
  - name: chatwoot
    description: Müşteri desteği için Chatwoot entegrasyonu
paths:
  /chatwoot/sync:
    post:
      tags:
        - chatwoot
      summary: Mesaj geçmişini Chatwoot ile eşitle
      description: >
        WhatsApp mesaj geçmişinin Chatwoot ile arka planda eşitlenmesini
        başlatır.

        Yapılandırılan gün sayısına ait mesajlar içe aktarılır.

        Bu uç nokta, yapılandırmada CHATWOOT_ENABLED=true olmasını gerektirir.
      operationId: chatwootSyncHistory
      requestBody:
        content:
          application/json:
            schema:
              type: object
              properties:
                device_id:
                  type: string
                  description: >-
                    Eşitlenecek cihaz kimliği (belirtilmezse CHATWOOT_DEVICE_ID
                    kullanılır)
                days_limit:
                  type: integer
                  default: 3
                  description: Eşitlenecek geçmişin gün sayısı
                include_media:
                  type: boolean
                  default: true
                  description: Medya eklerini eşitlemeye dahil et
                include_groups:
                  type: boolean
                  default: true
                  description: Grup sohbetlerini eşitlemeye dahil et
      responses:
        '200':
          description: Eşitleme başarıyla başlatıldı
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ChatwootSyncResponse'
        '400':
          description: Geçersiz İstek (cihaz bulunamadı veya Chatwoot yapılandırılmamış)
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorBadRequest'
        '409':
          description: Eşitleme zaten devam ediyor
          content:
            application/json:
              schema:
                type: object
                properties:
                  status:
                    type: integer
                    example: 409
                  code:
                    type: string
                    example: SYNC_ALREADY_RUNNING
                  message:
                    type: string
                    example: A sync is already in progress for this device
                  results:
                    type: object
                    properties:
                      progress: 536e300c-4505-4444-a2f1-91e927dd8c10
components:
  schemas:
    ChatwootSyncResponse:
      type: object
      properties:
        status:
          type: integer
          example: 200
        code:
          type: string
          example: SYNC_STARTED
        message:
          type: string
          example: History sync initiated in background
        results:
          type: object
          properties:
            device_id:
              type: string
              example: my-device-id
            days_limit:
              type: integer
              example: 3
            include_media:
              type: boolean
              example: true
            include_groups:
              type: boolean
              example: true
    ErrorBadRequest:
      type: object
      properties:
        code:
          type: string
          example: 400
          description: HTTP Durum Kodu
        message:
          type: string
          example: field cannot be blank
          description: Ayrıntılı hata mesajı
        results:
          type: object
          example: null
          description: ek veriler
  securitySchemes:
    basicAuth:
      type: http
      scheme: basic

````

## Related topics

- [Chatwoot eşitleme ilerlemesini getir](https://gowa-docs.mintlify.site/tr/api-reference/chatwoot/chatwoot-eşitleme-ilerlemesini-getir.md)
- [Chatwoot Entegrasyonu](https://gowa-docs.mintlify.site/tr/integrations/chatwoot.md)
- [Mesaj alma](https://gowa-docs.mintlify.site/tr/examples/receiving-messages.md)
- [Cihaza özel Chatwoot webhook uç noktası](https://gowa-docs.mintlify.site/tr/api-reference/chatwoot/cihaza-özel-chatwoot-webhook-uç-noktası.md)
- [Chatwoot webhook uç noktası](https://gowa-docs.mintlify.site/tr/api-reference/chatwoot/chatwoot-webhook-uç-noktası.md)


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