Skip to content

Send Template Message

WhatsApp

WhatsApp

Send Template Message

Send a pre-approved WhatsApp template message (required to initiate conversations outside the 24-hour customer service window).

Action

Inputs

Name Type Required Description
businessdropdownRequiredWhatsApp Business Account (WABA) that owns the sending phone number.
phone_number_iddropdownRequiredThe WhatsApp Business phone number that sends the message.
totextRequiredRecipient phone number in international format including country code, digits only (e.g. 14155552671).
template_namedropdownRequiredApproved WhatsApp message template to send.
language_codedropdownRequiredBCP-47 language/locale code for the selected template (e.g. en_US).
componentsarray of objectOptionalOptional template components (header/body/button parameters) following the WhatsApp Cloud API components schema.
typetextOptionalComponent type, e.g. header, body, or button.
parametersarray of objectOptionalParameters that fill the placeholders in this component. Each item is an object with fields: type, text.

Outputs

Name Type Description
statusCodenumberHTTP status code from the WhatsApp Cloud API response.
bodyobjectStructured WhatsApp Cloud API response envelope.
messaging_producttextAlways 'whatsapp'.
contactsarray of objectResolved contacts for the message.
messagesarray of objectMessages created by the request.