WhatsAble
Legacy API

Send Template Message

Send a template-based message to users via their phone numbers

This page documents the legacy API. New integrations use API v1: Send a message (API v1)

POST https://api.insightssystem.com/api:hFrjh8a1/send_template_message_by_api

Authorizations

Authorizationstringrequired

Bearer authentication header of the form Bearer <token>. Your Notifyer System API Token

Body

templatestringrequired

The unique template ID used for sending the message

variablesobjectrequired

A JSON object containing dynamic placeholders for the message template. The keys should match the variables in your template. Common variable keys include:

  • body1, body2, body3: Text variables for message content
  • media: URL for image, video, or document attachments
  • visit_website: URL's parameter for the dynamic button link

Each value: string. Value for the template variable

phone_numberstringrequired

The recipient's phone number in international format (e.g., +123476529999)

Response

200: Message sent successfully

successboolean

Indicates if the message was sent successfully

whatsapp_response_infoobject
Show properties
contactsobject[]
Show properties
inputstring

The input phone number

wa_idstring

The WhatsApp ID

messagesobject[]
Show properties
idstring

The WhatsApp message ID

message_statusstring

The status of the message

messaging_productstring

The messaging product (e.g., whatsapp)

Errors

  • 400: Bad Request
  • 401: Unauthorized
cURL
curl -X POST \
  'https://api.insightssystem.com/api:hFrjh8a1/send_template_message_by_api' \
  -H 'Content-Type: application/json' \
  -H 'Authorization: Bearer YOUR_API_KEY' \
  -d '{
    "template": "f10695a9-38d6-4f5f-8444-1f7bf52c6164",
    "variables": {
      "body1": "Axel",
      "body2": "Shampoo",
      "body3": "$1",
      "media": "https://drive.google.com/file/d/1D35uTbceRPmCgwxVfBJZ2yxD2lQgs0bi/view?usp=sharing"
    },
    "phone_number": "123476529999"
  }'

On this page