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

# الحصول على بيانات التعريف للنشرة الإخبارية (قناة)

> يُرجع البيانات الوصفية للقناة (الاسم، والوصف، وعدد المشتركين،
وحالة التوثيق، والصورة، ورمز الدعوة، والحالة). توفير واحد بالضبط من
`newsletter_id` أو `invite`. لا يتطلب الأمر اتباع القناة؛
`viewer_metadata` هو فارغ عندما لا يعيد WhatsApp بيانات التعريف الخاصة بالمشاهد.




## OpenAPI

````yaml /ar/openapi.yml get /newsletter/info
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:
  /newsletter/info:
    get:
      tags:
        - newsletter
      summary: الحصول على بيانات التعريف للنشرة الإخبارية (قناة)
      description: >
        يُرجع البيانات الوصفية للقناة (الاسم، والوصف، وعدد المشتركين،

        وحالة التوثيق، والصورة، ورمز الدعوة، والحالة). توفير واحد بالضبط من

        `newsletter_id` أو `invite`. لا يتطلب الأمر اتباع القناة؛

        `viewer_metadata` هو فارغ عندما لا يعيد WhatsApp بيانات التعريف الخاصة
        بالمشاهد.
      operationId: getNewsletterInfo
      parameters:
        - $ref: '#/components/parameters/DeviceIdHeader'
        - name: newsletter_id
          in: query
          required: false
          schema:
            type: string
          example: 120363024512399999@newsletter
        - name: invite
          in: query
          required: false
          description: رابط دعوة القناة (https://whatsapp.com/channel/...) أو فقط الرمز
          schema:
            type: string
          example: https://whatsapp.com/channel/0029Va4K0PZ5a245NkngBA2M
      responses:
        '200':
          description: حسناً
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/NewsletterInfoResponse'
        '400':
          description: طلب خاطئ
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorBadRequest'
        '500':
          description: خطأ خادم داخلي
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorInternalServer'
components:
  parameters:
    DeviceIdHeader:
      name: X-Device-Id
      in: header
      required: false
      description: |
        معرف الجهاز لدعم الأجهزة المتعددة. مطلوب عند تسجيل أجهزة متعددة.
        إذا تم تسجيل جهاز واحد فقط، فسيتم استخدامه كجهاز افتراضي.
        يمكن أيضا توفيره كعامل استعلام `device_id`.
      schema:
        type: string
        example: my-device-id
  schemas:
    NewsletterInfoResponse:
      type: object
      properties:
        code:
          type: string
          example: SUCCESS
        message:
          type: string
          example: Success get newsletter info
        results:
          $ref: '#/components/schemas/Newsletter'
    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: بيانات إضافية
    ErrorInternalServer:
      type: object
      properties:
        code:
          type: string
          example: INTERNAL_SERVER_ERROR
          description: SYSTEM_CODE_ERROR
        message:
          type: string
          example: you are not loggin
          description: تفاصيل رسالة الخطأ
        results:
          type: object
          example: null
          description: بيانات إضافية
    Newsletter:
      type: object
      properties:
        id:
          type: string
          example: 120363144038483540@newsletter
        state:
          type: object
          properties:
            type:
              type: string
              example: active
        thread_metadata:
          type: object
          properties:
            creation_time:
              type: string
              example: '1688746895'
            invite:
              type: string
              example: 0029Va4K0PZ5a245NkngBA2M
            name:
              type: object
              properties:
                text:
                  type: string
                  example: WhatsApp
                id:
                  type: string
                  example: '1688746895480511'
                update_time:
                  type: string
                  example: '1688746895480511'
            description:
              type: object
              properties:
                text:
                  type: string
                  example: >-
                    WhatsApp's official channel. Follow for our latest feature
                    launches, updates, exclusive drops and more.
                id:
                  type: string
                  example: '1689653839450668'
                update_time:
                  type: string
                  example: '1689653839450668'
            subscribers_count:
              type: string
              example: '0'
            verification:
              type: string
              example: verified
            picture:
              type: object
              properties:
                url:
                  type: string
                  example: ''
                id:
                  type: string
                  example: '1707950960975554'
                type:
                  type: string
                  example: IMAGE
                direct_path:
                  type: string
                  example: >-
                    /v/t61.24694-24/416962407_970228831134395_8869146381947923973_n.jpg?ccb=11-4&oh=01_Q5AaIIvOIeu3l0HCZWILrmr-dGR_vXFqnhUeytw0-ojPc4hL&oe=670D95B1&_nc_sid=5e03e0&_nc_cat=110
            preview:
              type: object
              properties:
                url:
                  type: string
                  example: ''
                id:
                  type: string
                  example: '1707950960975554'
                type:
                  type: string
                  example: PREVIEW
                direct_path:
                  type: string
                  example: >-
                    /v/t61.24694-24/416962407_970228831134395_8869146381947923973_n.jpg?stp=dst-jpg_s192x192&ccb=11-4&oh=01_Q5AaIHO-DQklqm3q3awF7xwji_WAn9DkgZASQA0B2Ct0qbSa&oe=670D95B1&_nc_sid=5e03e0&_nc_cat=110
            settings:
              type: object
              properties:
                reaction_codes:
                  type: object
                  properties:
                    value:
                      type: string
                      example: ALL
        viewer_metadata:
          type: object
          nullable: true
          description: فارغ عندما تكون بيانات التعريف الخاصة بالمستعرض غير متوفرة.
          properties:
            mute:
              type: string
              example: 'off'
            role:
              type: string
              example: subscriber
  securitySchemes:
    basicAuth:
      type: http
      scheme: basic

````

## Related topics

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


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