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

# Schedule a WhatsApp Template Message

> Create a scheduled send for a WhatsApp template. Body includes templateId (uuid), contactIdentifier (phone), channel (whatsapp|web-whatsapp), scheduledDate (ISO 8601), optional content (variables for AI/smart), isSmart, fromPhoneNumber, stageId, and channelId. Requires x-api-key.



## OpenAPI

````yaml post /api/public/whatsapp/message/programmed/create
openapi: 3.0.0
info:
  title: Vambe AI API
  description: Vambe AI documentation
  version: '1.0'
  contact: {}
servers:
  - url: https://api.vambe.me
    description: Production Server
security: []
tags:
  - name: Vambe AI
    description: ''
paths:
  /api/public/whatsapp/message/programmed/create:
    post:
      tags:
        - WhatsApp Message
      summary: Send a program a template message to send at a specific time
      description: >-
        Send a specific template message to a given phone number at a given
        time.
      operationId: PublicWhatsAppMessageController_createPublicScheduledMessage
      parameters:
        - name: x-api-key
          in: header
          description: API key needed to authorize the request
          required: true
          schema:
            type: string
      requestBody:
        required: true
        description: The payload to send with the template message.
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CreatePublicScheduledMessageDto'
      responses:
        '201':
          description: ''
components:
  schemas:
    CreatePublicScheduledMessageDto:
      type: object
      properties:
        content:
          description: >-
            Array of strings representing the variables of the message. AI will
            use the content to generate the variables
          oneOf:
            - type: string
            - type: number
            - type: boolean
            - type: array
              items:
                type: string
            - type: object
              properties: {}
          default: []
        scheduledDate:
          description: The date and time of the message in ISO 8601 format
          type: string
        templateId:
          description: The template id of the message (uuid)
          type: string
          format: uuid
        contactIdentifier:
          description: The phone number of the contact
          type: string
        contactName:
          description: The name of the contact
          type: string
          minLength: 1
        channel:
          description: The channel of the message
          type: string
          enum:
            - whatsapp
            - web-whatsapp
        channelId:
          description: The channel id of the message (uuid)
          type: string
        isSmart:
          description: >-
            If true, the message will be sent as a smart message (AI will use
            the content to generate the variables)
          type: boolean
        fromPhoneNumber:
          description: The phone number of the sender
          type: string
        stageId:
          description: The stage id to assign the contact to (uuid)
          type: string
          format: uuid
        meta_data:
          description: >-
            Additional contact metadata (key-value pairs that will be stored as
            contact custom fields)
          type: object
          additionalProperties: true
      required:
        - scheduledDate
        - templateId
        - contactIdentifier
        - channel
        - meta_data

````