Send Template Message
Send a template-based message to users via their phone numbers
POST https://api.insightssystem.com/api:hFrjh8a1/send_template_message_by_api
Authorizations
Bearer authentication header of the form Bearer <token>. Your Notifyer System API Token
Body
The unique template ID used for sending the message
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
The recipient's phone number in international format (e.g., +123476529999)
Response
200: Message sent successfully
Indicates if the message was sent successfully
Show properties
Show properties
The input phone number
The WhatsApp ID
Show properties
The WhatsApp message ID
The status of the message
The messaging product (e.g., whatsapp)
Errors
400: Bad Request401: Unauthorized
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"
}'