Get WhatsApp Templates

List the approved WhatsApp message templates for a channel.

List the WhatsApp message templates associated with a channel.

GET /stable/open/whatsapp/get-template-list

Base URL: https://api.myalice.ai. Authenticate with the X-Myalice-Api-Key header.

Query parameters

platform_id integer required

The ID of the WhatsApp channel (platform). Find it in the Revora dashboard or via Get WhatsApp Channels.

Response

Returns an array of template objects (id, name, body, header, footer, buttons, attributes).

Example

curl -X GET "https://api.myalice.ai/stable/open/whatsapp/get-template-list?platform_id=1022" \
  -H "X-Myalice-Api-Key: YOUR_API_KEY"
[
  {
    "id": 102323213,
    "name": "submit_feedback",
    "body": "Hi {{1}}, please submit your feedback for our service",
    "header": { "type": "text", "value": "Submit Feedback" },
    "footer": "Powered by Revora",
    "buttons": [
      { "id": 1, "type": "url", "title": "Submit Feedback", "value": "https://example.com/feedback" }
    ],
    "attributes": [ { "attribute": "1" } ]
  }
]