Send a template message
Sends an approved WhatsApp template message to a recipient phone number. Template messages can be sent outside the 24-hour customer service window. The template must already be APPROVED on the WABA, and the language code must match an approved variant. Component parameter order must match the template’s placeholders.
Authorizations
Prefix your API key with "Bearer ". Example: Authorization: Bearer sapi_key_...
Path Parameters
Connected account ID (sapi_acc_...)
Body
Recipient, template name, language, and components
Components carries header/body/button variable substitutions. Each component matches WhatsApp's template component schema (type + parameters).
Language is the BCP-47 code matching the template's approved language (e.g. en_US, fr_FR).
"en_US"
TemplateName is the approved template name to send.
"order_confirmation"
To is the recipient phone number in E.164 format without the leading "+".
"15551234567"