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

# قائمة المرسلات المجدولة

> يسرد الإرسال المجدولة للجهاز. الجداول الزمنية القادمة تأتي أولاً (أقرب وقت تليه أولاً)، تليها الجداول المكتملة، الأحدث أولاً.



## OpenAPI

````yaml /ar/openapi.yml get /send/schedules
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:
  /send/schedules:
    get:
      tags:
        - send
      summary: قائمة المرسلات المجدولة
      description: >-
        يسرد الإرسال المجدولة للجهاز. الجداول الزمنية القادمة تأتي أولاً (أقرب
        وقت تليه أولاً)، تليها الجداول المكتملة، الأحدث أولاً.
      operationId: listScheduledSends
      parameters:
        - $ref: '#/components/parameters/DeviceIdHeader'
        - name: status
          in: query
          schema:
            type: string
            enum:
              - active
              - running
              - paused
              - completed
              - failed
              - cancelled
          description: الجداول في هذه الحالة فقط
        - name: search
          in: query
          schema:
            type: string
          description: مطابقة المستلم أو نص الرسالة
        - name: message_type
          in: query
          schema:
            type: string
            enum:
              - text
              - image
              - file
              - video
              - audio
              - sticker
              - contact
              - link
              - location
              - poll
              - forward
          description: فقط هذا النوع من الإرسال المجدول
        - name: limit
          in: query
          schema:
            type: integer
            default: 25
            minimum: 1
            maximum: 100
          description: الحد الأقصى لعدد الجداول الزمنية للعودة
        - name: offset
          in: query
          schema:
            type: integer
            default: 0
            minimum: 0
          description: عدد الجداول الزمنية المراد تخطيها (للصفحة)
      responses:
        '200':
          description: حسناً
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ScheduleListResponse'
        '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:
    ScheduleListResponse:
      type: object
      properties:
        code:
          type: string
          example: SUCCESS
        message:
          type: string
          example: Schedules fetched
        results:
          type: object
          properties:
            data:
              type: array
              items:
                $ref: '#/components/schemas/Schedule'
            pagination:
              type: object
              properties:
                limit:
                  type: integer
                  example: 25
                offset:
                  type: integer
                  example: 0
                total:
                  type: integer
                  example: 3
    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: بيانات إضافية
    Schedule:
      type: object
      properties:
        id:
          type: string
          example: 0b5c3a8e-7f5d-4d6f-9d1e-2f8c1a7b9e10
        message_type:
          type: string
          enum:
            - text
            - image
            - file
            - video
            - audio
            - sticker
            - contact
            - link
            - location
            - poll
            - forward
          example: text
        phone:
          type: string
          example: 6289685028129@s.whatsapp.net
        summary:
          type: string
          example: selamat pagi
          description: معاينة قصيرة للرسالة
        status:
          type: string
          enum:
            - active
            - running
            - paused
            - completed
            - failed
            - cancelled
          example: active
          description: |
            - `active`: ينتظر التشغيل التالي
            - `running`: تولّى العامل معالجته ويجري الإرسال
            - `paused`: معلّق حتى استئنافه
            - `completed`: لا توجد عمليات تشغيل متبقية
            - `failed`: توقّف بعد استنفاد محاولات الإعادة أو حدوث خطأ في التحقق
            - `cancelled`: ألغاه المستخدم
        scheduled_at:
          type: string
          format: date-time
          example: '2026-10-01T02:00:00Z'
        next_run_at:
          type: string
          format: date-time
          example: '2026-10-01T02:00:00Z'
          description: غير متوفر عندما لا يبقى تشغيل
        timezone:
          type: string
          example: Asia/Jakarta
        recurrence:
          type: string
          enum:
            - once
            - daily
            - weekly
            - monthly
          example: once
        weekdays:
          type: array
          items:
            type: integer
          example:
            - 1
            - 3
            - 5
        day_of_month:
          type: integer
          example: 15
        end_at:
          type: string
          format: date-time
        occurrence_limit:
          type: integer
          example: 10
        occurrence_count:
          type: integer
          example: 0
          description: عدد الإرسالات الناجحة حتى الآن
        attempts:
          type: integer
          example: 0
          description: فشل المحاولات للتشغيل الحالي
        last_run_at:
          type: string
          format: date-time
        last_message_id:
          type: string
          example: 3EB0B430B6F8F1D0E053AC120E0A9E5C
        last_error:
          type: string
        created_at:
          type: string
          format: date-time
          example: '2026-09-25T08:00:00Z'
        updated_at:
          type: string
          format: date-time
          example: '2026-09-25T08:00:00Z'
  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/chat/احصل-على-قائمة-المحادثات.md)
- [قائمة تكوينات Chatwoot لكل جهاز](https://gowa-docs.mintlify.site/ar/api-reference/chatwoot/قائمة-تكوينات-chatwoot-لكل-جهاز.md)
- [الحصول على قائمة الأجهزة المتصلة](https://gowa-docs.mintlify.site/ar/api-reference/app/الحصول-على-قائمة-الأجهزة-المتصلة.md)
- [الحصول على قائمة جهات اتصال المستخدم](https://gowa-docs.mintlify.site/ar/api-reference/user/الحصول-على-قائمة-جهات-اتصال-المستخدم.md)


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