Prerequisites
Before you begin, you must have:- A HealviChat tenant domain (e.g.
your-tenant.onhealvi.com) - An API bearer token for that tenant
- At least one WhatsApp template that has already been approved by Meta
Send a template message
1
Find your template name and language
Fetch your approved templates to get the exact
name and language to use.2
Send the template
Call
/whatsapp/send-template with the recipient’s phone number (in E.164 format), the template name and language, and values for any template variables via template_components.If the customer doesn’t exist yet, they’re created automatically.3
Check the response
A successful call returns the created message:If the template has no variables, pass an empty array for
template_components.