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

# احصل على تكوين دردشة الجهاز

> يرجع تكوين توجيه الدردشة لكل جهاز (API token مقنع).



## OpenAPI

````yaml /ar/openapi.yml get /devices/{device_id}/chatwoot/config
openapi: 3.0.0
info:
  title: واتسآب API متعدد الأجهزة
  version: 9.7.0
  description: >
    يتم استخدام هذا API لإرسال أي تطبيق عبر API.


    لوحة المعلومات هي مشروع منفصل (gowa-ui)؛ يقوم الخادم بتنزيل أحدث أصول
    الإصدار

    ويخدمه في `/` (أو يرجع لافتة JSON عندما

    APP_UI_ENABLED=false).


    تحديد الجهاز:

    - إرسال `X-Device-Id` على جميع مكالمات REST على نطاق الجهاز.

    - WebSocket: الاتصال بـ `/w?جهاز_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: إرسال رسالة (نص/صورة/ملف/فيديو).
  - name: message
    description: التلاعب بالرسالة (إلغائ/react/update).
  - name: call
    description: إدارة المكالمات (رفض المكالمات الواردة)
  - name: chat
    description: محادثات الدردشة والرسائل
  - name: group
    description: إعداد المجموعة
  - name: newsletter
    description: إعداد النشرة الإخبارية
  - name: chatwoot
    description: تكامل Chatwoot لدعم العملاء
paths:
  /devices/{device_id}/chatwoot/config:
    get:
      tags:
        - chatwoot
      summary: احصل على تكوين دردشة الجهاز
      description: يرجع تكوين توجيه الدردشة لكل جهاز (API token مقنع).
      operationId: chatwootGetDeviceConfig
      parameters:
        - $ref: '#/components/parameters/ChatwootConfigDeviceId'
      responses:
        '200':
          description: تم استرجاع التكوين
          content:
            application/json:
              schema:
                type: object
                properties:
                  code:
                    type: string
                    example: SUCCESS
                  message:
                    type: string
                    example: Chatwoot device config
                  results:
                    $ref: '#/components/schemas/ChatwootDeviceConfig'
        '404':
          description: >-
            لم يتم العثور على الجهاز (DEVICE_NOT_FOUND) أو لا يوجد إعدادات لهذا
            الجهاز (CONFIG_NOT_FOUND)
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorBadRequest'
components:
  parameters:
    ChatwootConfigDeviceId:
      name: device_id
      in: path
      required: true
      description: معرف الجهاز (أو WatsApp JID) الذي يتم معالجة إعدادات Chatwoot
      schema:
        type: string
        example: my-device-id
  schemas:
    ChatwootDeviceConfig:
      type: object
      description: ضبط توجيه Chatwoot للجهاز (مقنع رمز API في كل قراءة)
      properties:
        device_id:
          type: string
          example: my-device-id
        device_jid:
          type: string
          description: >-
            تطبيق WhatsApp JID للجهاز؛ اختم تلقائياً عند تسجيل الدخول (فارغ قبل
            الإقران)
          example: 628123456789@s.whatsapp.net
        chatwoot_url:
          type: string
          example: https://chatwoot.example.com
        account_id:
          type: integer
          example: 1
        inbox_id:
          type: integer
          example: 5
        api_token:
          type: string
          description: مقنع؛ فقط آخر 4 أحرف تم الكشف عنها
          example: '****1234'
        enabled:
          type: boolean
          example: true
        webhook_url:
          type: string
          description: >-
            عنوان URL لتعيينه على صندوق الوارد الخاص بالدردشة في هذا الجهاز حتى
            يقوم الوكيل بالرد على هذا الجهاز
          example: https://gowa.example.com/chatwoot/webhook/my-device-id
        webhook_secret_set:
          type: boolean
          description: >-
            ما إذا كان هذا الجهاز يحتوي على سر ويب هوك الخاص به (السر نفسه لا
            يعود أبداً)
          example: true
        created_at:
          type: string
          format: date-time
        updated_at:
          type: string
          format: date-time
    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

- [الحصول على تكوين الويبهوك للجهاز](https://gowa-docs.mintlify.site/ar/api-reference/device/الحصول-على-تكوين-الويبهوك-للجهاز.md)
- [الحصول على معلومات الجهاز](https://gowa-docs.mintlify.site/ar/api-reference/device/الحصول-على-معلومات-الجهاز.md)
- [حذف تهيئة دردشة الجهاز](https://gowa-docs.mintlify.site/ar/api-reference/chatwoot/حذف-تهيئة-دردشة-الجهاز.md)
- [احصل على قائمة المحادثات](https://gowa-docs.mintlify.site/ar/api-reference/chat/احصل-على-قائمة-المحادثات.md)
- [احصل على تقدم مزامنة الدردشة](https://gowa-docs.mintlify.site/ar/api-reference/chatwoot/احصل-على-تقدم-مزامنة-الدردشة.md)


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