wa_create_template
Creates a new WhatsApp message template for a business account, initiating Meta review before it can be sent. Supports utility, marketing, and authentication types.
Instructions
Create a new message template in a WABA. Templates go through Meta review before they can be sent.
When to use: setting up a new outbound notification, marketing or authentication message type.
Inputs:
name: lowercase letters, digits, underscores only.language: locale code matching Meta's list (en, pt_PT, es_ES, ...).category: UTILITY | MARKETING | AUTHENTICATION. Affects pricing and review rules.components_json: JSON array following Meta's component schema. Common types: [{"type":"HEADER","format":"TEXT","text":"Hello"}, {"type":"BODY","text":"Hi {{1}}, your code is {{2}}.","example":{"body_text":[["Alice","123"]]}}, {"type":"FOOTER","text":"Reply STOP to opt out"}]
Returns: the new template's ID. Status starts as PENDING; poll wa_get_templates for review result.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Template name: lowercase letters, digits, underscores only | |
| waba_id | Yes | WhatsApp Business Account ID (numeric) | |
| category | Yes | Template category | |
| language | Yes | Language/locale code, e.g. en, pt_PT, es_ES | |
| components_json | Yes | JSON array of components (HEADER, BODY, FOOTER, BUTTONS) following Meta API schema |