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

# Cihazda QR koduyla oturum aç

> Belirli bir cihaz yuvası için QR eşleştirmesini başlatır ve taranacak QR görselinin bağlantısını döndürür. `GET /app/login` çağrısının `X-Device-Id: <device_id>` ile kullanımına eşdeğerdir; cihaz bunun yerine yoldan alınır.



## OpenAPI

````yaml /tr/openapi.yml get /devices/{device_id}/login
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:
  /devices/{device_id}/login:
    get:
      tags:
        - device
      summary: Cihazda QR koduyla oturum aç
      description: >-
        Belirli bir cihaz yuvası için QR eşleştirmesini başlatır ve taranacak QR
        görselinin bağlantısını döndürür. `GET /app/login` çağrısının
        `X-Device-Id: <device_id>` ile kullanımına eşdeğerdir; cihaz bunun
        yerine yoldan alınır.
      operationId: loginDevice
      parameters:
        - name: device_id
          in: path
          required: true
          schema:
            type: string
          description: Cihaz kimliği
      responses:
        '200':
          description: Tamam
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/DeviceLoginResponse'
        '404':
          description: Cihaz bulunamadı
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorNotFound'
        '500':
          description: Dahili Sunucu Hatası
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorInternalServer'
components:
  schemas:
    DeviceLoginResponse:
      type: object
      properties:
        code:
          type: string
          example: SUCCESS
        message:
          type: string
          example: Login success
        status:
          type: integer
          example: 200
        results:
          type: object
          properties:
            device_id:
              type: string
              example: my-device-id
            qr_link:
              type: string
              example: >-
                http://localhost:3000/statics/images/qrcode/scan-qr-b0b7bb43-9a22-455a-814f-5a225c743310.png
            qr_duration:
              type: integer
              example: 30
    ErrorNotFound:
      type: object
      properties:
        code:
          type: string
          example: 404
          description: HTTP Durum Kodu
        message:
          type: string
          example: Chat not found
          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
  securitySchemes:
    basicAuth:
      type: http
      scheme: basic

````

## Related topics

- [Cihazda eşleştirme koduyla oturum aç](https://gowa-docs.mintlify.site/tr/api-reference/device/cihazda-eşleştirme-koduyla-oturum-aç.md)
- [Eşleştirme koduyla oturum aç](https://gowa-docs.mintlify.site/tr/api-reference/app/eşleştirme-koduyla-oturum-aç.md)
- [WhatsApp sunucusunda oturum aç](https://gowa-docs.mintlify.site/tr/api-reference/app/whatsapp-sunucusunda-oturum-aç.md)
- [Hızlı başlangıç](https://gowa-docs.mintlify.site/tr/quickstart.md)
- [Oturumlar ve Bağlantı Yaşam Döngüsü](https://gowa-docs.mintlify.site/tr/concepts/sessions.md)


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