Templates & categories

WhatsApp business messaging is template-based. You send a pre-approved template and supply values for its dynamic parts at send time, using a components array.

Template components

ComponentDescriptionWhen to include
HeaderTop section: text, image, document, or video. Text headers can contain variables.When the template has a header. Use empty parameters if static.
BodyMain text. Variables {{1}}, {{2}}… each need a parameter object.Always. Use empty parameters if there are no variables.
FooterShort bottom line, usually static.Only if the template has a footer.
ButtonQuick-reply or call-to-action; dynamic URL suffix or payload.Only if the template has dynamic buttons.

Each component is an object: { "type": "body", "parameters": [ { "type": "text", "text": "123456" } ] }. Pass "parameters": [] for components with no dynamic variables.

Template categories

CategoryDescription
MARKETINGPromotional content; subject to WhatsApp marketing policy.
UTILITYTransactional messages (orders, shipping, appointments, account alerts).
AUTHENTICATIONAccount verification flows using the native WhatsApp authentication format.

WABA accounts

Each WhatsApp Business Account (WABA) corresponds to a registered business phone number. Your source must be an approved sender under the selected WABA.