> ## Documentation Index
> Fetch the complete documentation index at: https://docsapi.wiseapp360.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Create Scheduled Message

> Creates a new scheduled message at the account level, without requiring a conversation.

`contact_id` and `inbox_id` are required. `conversation_id` is optional and only associates the new message with an existing conversation; it is not needed to schedule delivery to the contact.

## Features
- Schedule messages for future delivery
- Attach up to 15 files
- Use WhatsApp templates
- Set up recurring messages (daily, weekly, monthly, yearly)

## Recurrence Options
Messages can be set to recur automatically:
- **Daily**: Send every N days
- **Weekly**: Send on specific days of the week
- **Monthly**: Send every N months
- **Yearly**: Send every N years

You can limit recurrence by:
- Setting an end date
- Limiting the number of occurrences
- Setting it to never end




## OpenAPI

````yaml /openapi/application.json post /api/v1/accounts/{account_id}/scheduled_messages
openapi: 3.1.0
info:
  title: WiseApp API — Aplicação
  description: >-
    Referência completa da API do WiseApp: plataforma (provisionamento),
    aplicação (conta), cliente (canais públicos) e MCP.
  version: 1.1.0
servers:
  - url: https://chat.wiseapp360.com
    description: Sua instalação WiseApp
security: []
paths:
  /api/v1/accounts/{account_id}/scheduled_messages:
    parameters:
      - $ref: '#/components/parameters/account_id'
        schema:
          type: string
        example: sample
    post:
      tags:
        - Scheduled Messages
      summary: Create Scheduled Message
      description: >
        Creates a new scheduled message at the account level, without requiring
        a conversation.


        `contact_id` and `inbox_id` are required. `conversation_id` is optional
        and only associates the new message with an existing conversation; it is
        not needed to schedule delivery to the contact.


        ## Features

        - Schedule messages for future delivery

        - Attach up to 15 files

        - Use WhatsApp templates

        - Set up recurring messages (daily, weekly, monthly, yearly)


        ## Recurrence Options

        Messages can be set to recur automatically:

        - **Daily**: Send every N days

        - **Weekly**: Send on specific days of the week

        - **Monthly**: Send every N months

        - **Yearly**: Send every N years


        You can limit recurrence by:

        - Setting an end date

        - Limiting the number of occurrences

        - Setting it to never end
      operationId: create-scheduled-message
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/scheduled_message_create_update_payload'
            examples:
              simple_message:
                summary: Simple scheduled message
                value:
                  content: Hello, thank you for your purchase!
                  scheduled_at: '2026-02-10T14:00:00Z'
                  inbox_id: 5
                  contact_id: 123
              daily_reminder:
                summary: Daily recurring reminder
                value:
                  content: Good morning! Don't forget to check your tasks for today.
                  title: Daily Task Reminder
                  scheduled_at: '2026-02-07T09:00:00Z'
                  inbox_id: 5
                  contact_id: 456
                  recurrence_type: daily
                  recurrence_interval: 1
                  recurrence_end_type: never
              weekly_report:
                summary: Weekly report on specific days
                value:
                  content: Your weekly report is ready to review
                  title: Weekly Report
                  scheduled_at: '2026-02-10T10:00:00Z'
                  inbox_id: 5
                  contact_id: 789
                  recurrence_type: weekly
                  recurrence_interval: 1
                  recurrence_days:
                    - 1
                    - 3
                    - 5
                  recurrence_end_type: after_occurrences
                  recurrence_max_occurrences: 12
              whatsapp_template:
                summary: WhatsApp template message with attachments
                value:
                  content: Hi {{1}}, your appointment is confirmed for {{2}}
                  scheduled_at: '2026-02-08T15:30:00Z'
                  inbox_id: 8
                  contact_id: 555
                  template_params:
                    name: appointment_reminder
                    category: UTILITY
                    language: en
                    namespace: your_namespace
                    processed_params:
                      body:
                        - John
                        - February 10th at 3:00 PM
          multipart/form-data:
            schema:
              $ref: '#/components/schemas/scheduled_message_create_update_payload'
            example:
              content: >-
                Hello {{customer_name}}, your order #{{order_id}} will arrive
                tomorrow
              scheduled_at: '2026-02-06T15:00:00Z'
              inbox_id: 5
              contact_id: 456
              title: Customer follow-up
              conversation_id: 123
              attachments:
                - Sample text
              template_params:
                name: appointment_reminder
                category: UTILITY
                language: en
                namespace: your_namespace
                processed_params:
                  header:
                    source: api
                    segment: enterprise
                  body:
                    source: api
                    segment: enterprise
                  buttons:
                    - source: api
                      segment: enterprise
              recurrence_type: daily
              recurrence_interval: 1
              recurrence_days:
                - 1
                - 3
                - 5
              recurrence_end_type: never
      responses:
        '201':
          description: Success
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/scheduled_message'
              example:
                id: 123
                content: >-
                  Hello {{name}}, your appointment is confirmed for tomorrow at
                  10:00 AM
                scheduled_at: 1738800000
                sent_at: 1
                title: Daily appointment reminder
                inbox_id: 42
                inbox_name: WhatsApp Business
                conversation_id: 567
                contact_id: 789
                contact_name: María González
                contact_phone: '+525512345678'
                contact_email: maria.gonzalez@example.com
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/bad_request_error'
              example:
                error: Unauthorized
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/bad_request_error'
              example:
                message: Validation failed
                attributes:
                  - name cannot be blank
      security:
        - userApiKey: []
components:
  parameters:
    account_id:
      in: path
      name: account_id
      schema:
        type: integer
      required: true
      description: The numeric ID of the account
  schemas:
    scheduled_message_create_update_payload:
      type: object
      required:
        - content
        - scheduled_at
        - inbox_id
        - contact_id
      properties:
        content:
          type: string
          description: >
            The content of the message to be sent. Supports variables for
            WhatsApp templates.


            ## Examples:

            - Simple text: "Hello, your order is ready"

            - With variables: "Hi {{name}}, your appointment is on {{date}}"
          example: >-
            Hello {{customer_name}}, your order #{{order_id}} will arrive
            tomorrow
        scheduled_at:
          type: string
          format: date-time
          description: |
            The date and time when the message should be sent (ISO 8601 format).
            Must be in the future.

            ## Examples:
            - "2026-02-06T15:00:00Z" (UTC)
            - "2026-02-06T10:00:00-05:00" (with timezone)
          example: '2026-02-06T15:00:00Z'
        title:
          type: string
          description: Optional title for the scheduled message
          example: Customer follow-up
        inbox_id:
          type: integer
          description: The ID of the inbox from which the message will be sent
          example: 5
        contact_id:
          type: integer
          description: >-
            The ID of the contact to send the message to. Required for the
            account-level endpoint; no conversation is required.
          example: 456
        conversation_id:
          type: integer
          description: >-
            Optional conversation to associate with this account-level scheduled
            message.
          example: 123
        attachments:
          type: array
          items:
            type: string
            format: binary
          description: Array of files to attach (max 15)
        template_params:
          type: object
          description: WhatsApp template parameters
          properties:
            name:
              type: string
              description: Template name
              example: appointment_reminder
            category:
              type: string
              description: Template category
              example: UTILITY
            language:
              type: string
              description: Template language code
              example: en
            namespace:
              type: string
              description: Template namespace
              example: your_namespace
            processed_params:
              type: object
              description: Processed template parameters
              properties:
                header:
                  type: object
                  description: Header parameters
                body:
                  type: object
                  description: Body parameters with variable substitutions
                buttons:
                  type: array
                  items:
                    type: object
                  description: Button parameters
        recurrence_type:
          type: string
          enum:
            - none
            - daily
            - weekly
            - monthly
            - yearly
          description: |
            The type of recurrence for the scheduled message.

            - **none**: Send only once (default)
            - **daily**: Repeat every N days
            - **weekly**: Repeat on specific days of the week
            - **monthly**: Repeat every N months
            - **yearly**: Repeat every N years
          example: daily
        recurrence_interval:
          type: integer
          description: Interval for recurrence (e.g., 2 for every 2 days)
          example: 1
        recurrence_days:
          type: array
          items:
            type: integer
            minimum: 0
            maximum: 6
          description: Days of the week for weekly recurrence (0=Sunday, 6=Saturday)
          example:
            - 1
            - 3
            - 5
        recurrence_end_type:
          type: string
          enum:
            - never
            - on_date
            - after_occurrences
          description: >
            How the recurrence should end.


            - **never**: Continue indefinitely

            - **on_date**: End on a specific date (requires recurrence_end_date)

            - **after_occurrences**: End after N occurrences (requires
            recurrence_max_occurrences)
          example: never
        recurrence_end_date:
          type: string
          format: date-time
          description: >-
            End date for recurrence (ISO 8601 format, required if
            recurrence_end_type is on_date)
          example: '2026-12-31T23:59:59Z'
        recurrence_max_occurrences:
          type: integer
          description: >-
            Maximum number of occurrences (required if recurrence_end_type is
            after_occurrences)
          example: 10
    scheduled_message:
      type: object
      properties:
        id:
          type: integer
          description: The ID of the scheduled message
          example: 123
        content:
          type: string
          description: The content of the message to be sent
          example: >-
            Hello {{name}}, your appointment is confirmed for tomorrow at 10:00
            AM
        scheduled_at:
          type: integer
          description: The timestamp when the message should be sent (Unix timestamp)
          example: 1738800000
        sent_at:
          type: integer
          nullable: true
          description: The timestamp when the message was actually sent (Unix timestamp)
          example: null
        title:
          type: string
          nullable: true
          description: Optional title for the scheduled message
          example: Daily appointment reminder
        inbox_id:
          type: integer
          description: The ID of the inbox from which the message will be sent
          example: 42
        inbox_name:
          type: string
          description: The name of the inbox
          example: WhatsApp Business
        conversation_id:
          type: integer
          nullable: true
          description: The ID of the conversation if associated with one
          example: 567
        contact_id:
          type: integer
          nullable: true
          description: The ID of the contact to send the message to
          example: 789
        contact_name:
          type: string
          nullable: true
          description: The name of the contact
          example: María González
        contact_phone:
          type: string
          nullable: true
          description: The phone number of the contact
          example: '+525512345678'
        contact_email:
          type: string
          nullable: true
          description: The email of the contact
          example: maria.gonzalez@example.com
        message_id:
          type: integer
          nullable: true
          description: The ID of the actual message after it's sent
          example: null
        created_at:
          type: integer
          description: >-
            The timestamp when the scheduled message was created (Unix
            timestamp)
          example: 1738713600
        status:
          type: string
          enum:
            - pending
            - sent
            - failed
          description: >-
            The status of the scheduled message (pending = waiting to be sent,
            sent = successfully delivered, failed = sending error)
          example: pending
        error_message:
          type: string
          nullable: true
          description: Error message if the sending failed
          example: null
        template_params:
          type: object
          nullable: true
          description: WhatsApp template parameters if using a template
        attachments:
          type: array
          items:
            $ref: '#/components/schemas/scheduled_attachment'
          description: Array of attachments (max 15)
        recurrence_type:
          type: string
          enum:
            - none
            - daily
            - weekly
            - monthly
            - yearly
          description: >-
            The type of recurrence for the scheduled message (none = single
            send, daily = every day, weekly = every week, monthly = every month,
            yearly = once per year)
          example: daily
        recurrence_interval:
          type: integer
          nullable: true
          description: >-
            Interval for recurrence (e.g., 2 for every 2 days/weeks/months, 1
            for every day/week/month)
          example: 1
        recurrence_days:
          type: array
          items:
            type: integer
          nullable: true
          description: >-
            Days of the week for weekly recurrence (0=Sunday, 1=Monday, ...,
            6=Saturday)
          example:
            - 1
            - 3
            - 5
        recurrence_end_type:
          type: string
          enum:
            - never
            - on_date
            - after_occurrences
          nullable: true
          description: >-
            How the recurrence should end (never = infinite, on_date = until
            specific date, after_occurrences = after N times)
          example: never
        recurrence_end_date:
          type: integer
          nullable: true
          description: End date for recurrence if end_type is 'on_date' (Unix timestamp)
          example: null
        recurrence_max_occurrences:
          type: integer
          nullable: true
          description: Maximum number of occurrences if end_type is 'after_occurrences'
          example: null
        recurrence_count:
          type: integer
          description: >-
            Current count of occurrences (how many times this recurring message
            has been sent)
          example: 0
        parent_id:
          type: integer
          nullable: true
          description: >-
            Parent scheduled message ID if this is a recurring occurrence (null
            for original, ID for recurring copies)
          example: null
        assignee_id:
          type: integer
          nullable: true
          description: The ID of the assigned agent who created the scheduled message
          example: 15
        assignee_name:
          type: string
          nullable: true
          description: The name of the assigned agent
          example: Carlos Ramírez
        assignee_avatar_url:
          type: string
          nullable: true
          description: The avatar URL of the assigned agent
    bad_request_error:
      title: data
      type: object
      properties:
        description:
          type: string
        errors:
          type: array
          items:
            $ref: '#/components/schemas/request_error'
    scheduled_attachment:
      type: object
      properties:
        id:
          type: integer
          description: The ID of the scheduled attachment
          example: 456
        file_type:
          type: string
          enum:
            - image
            - audio
            - video
            - file
          description: >-
            The type of the file (image = photos/pictures, audio = voice
            notes/music, video = video files, file = documents/PDFs)
          example: image
        account_id:
          type: integer
          description: The ID of the account
          example: 1
        external_url:
          type: string
          nullable: true
          description: External URL of the file if hosted externally
          example: https://cdn.example.com/images/promo.jpg
        extension:
          type: string
          nullable: true
          description: File extension (e.g., jpg, png, pdf, mp4)
          example: jpg
        thumb_url:
          type: string
          nullable: true
          description: Thumbnail URL for images/videos
          example: https://cdn.example.com/thumbs/promo_thumb.jpg
    request_error:
      type: object
      properties:
        field:
          type: string
        message:
          type: string
        code:
          type: string
  securitySchemes:
    userApiKey:
      type: apiKey
      in: header
      name: api_access_token
      description: >-
        Token de acesso do usuário (Perfil → Token de acesso). Dá acesso
        conforme o papel do usuário e age em nome dele.

````

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