> ## 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 /ru/openapi.yml get /send/schedules/{schedule_id}
openapi: 3.0.0
info:
  title: WhatsApp API MultiDevice
  version: 9.7.0
  description: >
    Этот API используется для отправки whatsapp через API.


    Веб-панель инструментов это отдельный проект (gowa-ui); сервер загружает
    свой последний релиз

    и служит в `/` (или возвращает баннер JSON, когда

    APP_UI_ENABLED=false).


    Привязка устройства:

    - Отправляйте `X-Device-Id` при всех вызовах с прикрепленными устройствами.

    - WebSocket: подключиться к `/ws?device_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: Отправить сообщение (Text/Image/Файл/Видео).
  - name: message
    description: Управление сообщениями (отозвать/изменить/обновить).
  - name: call
    description: Управление звонками (отклонить входящие вызовы)
  - name: chat
    description: Общение и обмен сообщениями
  - name: group
    description: Настройки группы
  - name: newsletter
    description: настройка рассылки
  - name: chatwoot
    description: Интеграция с Chatwoot для поддержки клиентов
paths:
  /send/schedules/{schedule_id}:
    get:
      tags:
        - send
      summary: Запланированная отправка
      operationId: getScheduledSend
      parameters:
        - $ref: '#/components/parameters/DeviceIdHeader'
        - $ref: '#/components/parameters/ScheduleIdPath'
      responses:
        '200':
          description: ОК
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ScheduleResponse'
        '404':
          description: График не найден для этого устройства
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorNotFound'
        '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
    ScheduleIdPath:
      name: schedule_id
      in: path
      required: true
      schema:
        type: string
      description: >-
        ID расписания вернулся как `schedule_id` с помощью запланированной
        отправки
  schemas:
    ScheduleResponse:
      type: object
      properties:
        code:
          type: string
          example: SUCCESS
        message:
          type: string
          example: Schedule fetched
        results:
          $ref: '#/components/schemas/Schedule'
    ErrorNotFound:
      type: object
      properties:
        code:
          type: string
          example: 404
          description: Код состояния HTTP
        message:
          type: string
          example: Chat not found
          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/ru/examples/sending-messages.md)
- [Отправка ограничений](https://gowa-docs.mintlify.site/ru/advanced/rate-limiting.md)
- [Лучшая практика производства](https://gowa-docs.mintlify.site/ru/advanced/best-practices.md)
- [Экспериментальные интерактивные сообщения](https://gowa-docs.mintlify.site/ru/examples/interactive-messages.md)
- [Обработка ошибок](https://gowa-docs.mintlify.site/ru/advanced/error-handling.md)


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