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

# Sohbet listesini getir

> Sohbet konuşmalarının listesini temel bilgileriyle getirir



## OpenAPI

````yaml /tr/openapi.yml get /chats
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:
  /chats:
    get:
      tags:
        - chat
      summary: Sohbet listesini getir
      description: Sohbet konuşmalarının listesini temel bilgileriyle getirir
      operationId: listChats
      parameters:
        - $ref: '#/components/parameters/DeviceIdHeader'
        - name: limit
          in: query
          schema:
            type: integer
            default: 25
            maximum: 100
          description: Döndürülecek en fazla sohbet sayısı
        - name: offset
          in: query
          schema:
            type: integer
            default: 0
          description: Atlanacak sohbet sayısı (sayfalama için)
        - name: search
          in: query
          schema:
            type: string
          description: Sohbetleri ada göre ara
        - name: has_media
          in: query
          schema:
            type: boolean
            default: false
          description: Medya mesajları içeren sohbetleri filtrele
        - name: archived
          in: query
          schema:
            type: boolean
          description: >-
            Arşiv durumuna göre filtrele. true = yalnızca arşivlenmiş olanlar,
            false = yalnızca arşivlenmemiş olanlar. Tüm sohbetleri döndürmek
            için belirtmeyin.
      responses:
        '200':
          description: Tamam
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ChatListResponse'
        '400':
          description: Geçersiz İstek
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorBadRequest'
        '401':
          description: Yetkisiz
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorUnauthorized'
        '500':
          description: Dahili Sunucu Hatası
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorInternalServer'
components:
  parameters:
    DeviceIdHeader:
      name: X-Device-Id
      in: header
      required: false
      description: >
        Çoklu cihaz desteği için cihaz tanımlayıcısı. Birden fazla cihaz
        kayıtlıysa zorunludur.

        Yalnızca bir cihaz kayıtlıysa varsayılan olarak kullanılır.

        `device_id` sorgu parametresi olarak da belirtilebilir.
      schema:
        type: string
        example: my-device-id
  schemas:
    ChatListResponse:
      type: object
      properties:
        code:
          type: string
          example: SUCCESS
        message:
          type: string
          example: Success get chat list
        results:
          type: object
          properties:
            data:
              type: array
              items:
                $ref: '#/components/schemas/Chat'
            pagination:
              type: object
              properties:
                limit:
                  type: integer
                  example: 25
                offset:
                  type: integer
                  example: 0
                total:
                  type: integer
                  example: 150
    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
    ErrorUnauthorized:
      type: object
      properties:
        code:
          type: string
          example: 401
          description: HTTP Durum Kodu
        message:
          type: string
          example: Unauthorized access
          description: Ayrıntılı hata mesajı
        results:
          type: object
          example: null
          description: ek veriler
    ErrorInternalServer:
      type: object
      properties:
        code:
          type: string
          example: INTERNAL_SERVER_ERROR
          description: SYSTEM_CODE_ERROR
        message:
          type: string
          example: you are not loggin
          description: Ayrıntılı hata mesajı
        results:
          type: object
          example: null
          description: ek veriler
    Chat:
      type: object
      properties:
        jid:
          type: string
          example: 6289685028129@s.whatsapp.net
          description: Sohbet JID tanımlayıcısı
        name:
          type: string
          example: John Doe
          description: Sohbetin görünen adı
        last_message_time:
          type: string
          format: date-time
          example: '2024-01-15T10:30:00Z'
          description: Son mesajın zaman damgası
        ephemeral_expiration:
          type: integer
          example: 0
          description: Geçici mesajların saniye cinsinden sona erme süresi (0 = devre dışı)
        created_at:
          type: string
          format: date-time
          example: '2024-01-10T08:00:00Z'
          description: Sohbetin oluşturulma zaman damgası
        updated_at:
          type: string
          format: date-time
          example: '2024-01-15T10:30:00Z'
          description: Sohbetin son güncelleme zaman damgası
        archived:
          type: boolean
          example: false
          description: Sohbetin arşivlenmiş olup olmadığı
  securitySchemes:
    basicAuth:
      type: http
      scheme: basic

````

## Related topics

- [Gruba katılma isteklerinin listesini getir](https://gowa-docs.mintlify.site/tr/api-reference/group/gruba-katılma-isteklerinin-listesini-getir.md)
- [Bir gruptaki katılımcıların listesini getir](https://gowa-docs.mintlify.site/tr/api-reference/group/bir-gruptaki-katılımcıların-listesini-getir.md)
- [Belirli bir sohbetin mesajlarını getir](https://gowa-docs.mintlify.site/tr/api-reference/chat/belirli-bir-sohbetin-mesajlarını-getir.md)
- [Zamanlanmış bir gönderimi getir](https://gowa-docs.mintlify.site/tr/api-reference/send/zamanlanmış-bir-gönderimi-getir.md)
- [Kullanıcının kişiler listesini al](https://gowa-docs.mintlify.site/tr/api-reference/user/kullanıcının-kişiler-listesini-al.md)


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