createWhatsappTemplate
Creates a WhatsApp message template on a direct Meta number and submits it to WhatsApp for review; templates start as pending and require approval before sending.
Instructions
Create a message template on a direct Meta number and send it to WhatsApp for review.
It answers the new template with status pending. WhatsApp usually
reviews it within minutes. Run syncWhatsappTemplates later to see the
result. Only an approved template can be sent.
The number must list template_create in its capabilities.
For an image or document header, upload the file with
POST /whatsapp/media first and pass its media_id in header_media.
AI assistants connected through MCP can't upload files, so they create
text headers only. Create a video header, an authentication template, or
a link that changes per message in the dashboard.
(Tags: WhatsApp)
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"number_id": "<number_id>",
"name": "<name>",
"language": "<language>",
"category": "<category>",
"body": "<body>"
},
"name": "createWhatsappTemplate"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| body | Yes | The message text. Placeholders are numbered from `{{1}}` with no gaps, such as `Hi {{1}}, your order {{2}} has shipped.` | |
| name | Yes | Lower-case letters, digits and underscores, such as `order_update`. It must not be on the number already, in any language. | |
| footer | No | Optional footer text, with no placeholders. | |
| header | No | Optional header text. It can hold one placeholder, `{{1}}`. Send `header` or `header_media`, not both. | |
| buttons | No | ||
| category | Yes | `utility` is for an update the customer expects, such as an order or appointment. `marketing` is for anything else. WhatsApp can change the category when it reviews the template. | |
| language | Yes | WhatsApp language code, such as `en`, `en_US` or `hi`. | |
| number_id | Yes | Id of a WhatsApp number in your workspace, from [listWhatsappNumbers](/docs/api-reference/whatsapp/listWhatsappNumbers). A number in another workspace answers `404`. | |
| body_examples | No | One sample value per body placeholder, in order. Required when the body has placeholders. | |
| header_example | No | Sample value for the header's `{{1}}`. Required when the header has one. |