Create a WhatsApp template
create_whatsapp_templateSubmit a WhatsApp message template to Meta for approval. Templates are what WhatsApp requires to write to someone outside the 24h window; a new one starts as PENDING and cannot be used until it is APPROVED (see list_whatsapp_templates). Placeholders go as {{1}}, {{2}} in the body, in order; you fill them in when you send the broadcast.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Template name. Meta forces lowercase with underscores; it is normalised for you. | |
| bodyText | Yes | Body of the message. Use {{1}}, {{2}} for the variable parts. | |
| category | Yes | MARKETING for promotions, UTILITY for order updates and the like, AUTHENTICATION for codes. Getting it wrong is a common cause of rejection. | |
| language | Yes | Language code, e.g. es, en_US. | |
| accountId | Yes | WhatsApp account id from list_accounts. | |
| idempotencyKey | No | Optional. A unique id for this action (16-128 chars: letters, digits, _ : . -). If you are unsure whether a call went through (timeout, network error), repeat it with the SAME idempotencyKey and the same arguments: you get the original result and nothing is done twice. |