POST
/
api
/
public
/
whatsapp
/
message
/
programmed
/
create
Send a program a template message to send at a specific time
curl --request POST \
  --url https://api.vambe.me/api/public/whatsapp/message/programmed/create \
  --header 'Content-Type: application/json' \
  --header 'x-api-key: <x-api-key>' \
  --data '{
  "scheduledDate": "<string>",
  "templateId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "contactIdentifier": "<string>",
  "channel": "whatsapp"
}'

Headers

x-api-key
string
required

API key needed to authorize the request

Body

application/json

The payload to send with the template message.

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

channel
enum<string>
required

The channel of the message

Available options:
whatsapp,
web-whatsapp
content
default:[]

Array of strings representing the variables of the message. AI will use the content to generate the variables

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>