WhatsApp

Send WhatsApp template

Send a pre-approved WhatsApp template message to a customer.

post/stable/open/whatsapp/send-template-message

Request

  • Base URL: https://api.myalice.ai
  • URL: https://api.myalice.ai/stable/open/whatsapp/send-template-message
  • Auth: API key in header X-Myalice-Api-Key

Request body

template_idstring required

The ID of the template.

channel_idstring required

The ID of the WhatsApp channel.

customer_phonestring required

Customer phone number with country code.

attributesobject

Variables for the template body, keyed by position, e.g. { "1": "John Doe" }.

Example request

{
  "customer_phone": "+628123456789"
}

Response

Template message queued.

idstring

Message ID.

project_idinteger

Revora team (project) ID.

timestampstring date-time
function_namestring
messagestring

Human-readable result.

statusstring

Delivery status.

extraobject

Operation-specific detail, e.g. customer_id and success.

Example response

{
  "id": "msg_a12b…",
  "project_id": 343,
  "timestamp": "2026-07-02T09:30:00Z",
  "function_name": "send_text_message",
  "message": "Message sent",
  "status": "sent"
}

Changes

No recorded changes to this operation across all 1 revision of this API.