---
title: "Send a program a template message to send at a specific time"
method: POST
path: "/api/public/whatsapp/message/programmed/create"
tags: ["WhatsApp Message"]
---

# Send a program a template message to send at a specific time

`POST /api/public/whatsapp/message/programmed/create`

Send a specific template message to a given phone number at a given time.

## Headers

- `x-api-key` string, required

## Request body

- CreatePublicScheduledMessageDto
  - `content` union — Array of strings representing the variables of the message. AI will use the content to generate the variables
    - string
    - number
    - boolean
    - string[]
    - object
  - `scheduledDate` string, required — The date and time of the message in ISO 8601 format
  - `templateId` string, uuid, required — The template id of the message (uuid)
  - `contactIdentifier` string, required — The phone number of the contact
  - `contactName` string — The name of the contact
  - `channel` 'whatsapp' | 'web-whatsapp', required — The channel of the message
  - `channelId` string — The channel id of the message (uuid)
  - `isSmart` boolean — If true, the message will be sent as a smart message (AI will use the content to generate the variables)
  - `fromPhoneNumber` string — The phone number of the sender
  - `stageId` string, uuid — The stage id to assign the contact to (uuid)
  - `meta_data` object, required — Additional contact metadata (key-value pairs that will be stored as contact custom fields)

## Response `201`

---

[API](https://skmtc.net/vambe/apis/vambe-ai-api.md) · [All operations](https://skmtc.net/vambe/apis/vambe-ai-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/vambe/vambe-ai-api/versions/e206709d4be5/schema)
