Templates
Create Template
Submit a WhatsApp template to Meta for approval ⏳
POST
Create Template
Submit a new WhatsApp template to Meta for review. Templates cannot be used until Meta approves them — typically within 5 minutes but up to 24 hours. Check approval status using Get templates.
The template starts with
Endpoint
Request body
| Field | Type | Required | Description |
|---|---|---|---|
name | string | Yes | Template name. Used to reference the template when sending messages. |
language | object | Yes | Language object with a single code field (e.g. { "code": "en_US" }). See Meta’s supported languages. |
category | string | Yes | Template category: MESSAGE_TEMPLATE_GROUP_CATEGORY_MARKETING, MESSAGE_TEMPLATE_GROUP_CATEGORY_UTILITY, or MESSAGE_TEMPLATE_GROUP_CATEGORY_AUTHENTICATION. |
template_components | array | Yes | Ordered list of component objects defining the template structure. See Template components. |
Response
status: MESSAGE_TEMPLATE_STATUS_PENDING. Once Meta reviews it, the status transitions to approved or rejected.
Examples
Body only — no variables
Body only — no variables
Body with variables
Body with variables
Variables use
{{N}} syntax, numbered sequentially from 1.Image header + body variables
Image header + body variables
Provide an example image URL in
example to speed up Meta’s approval review.Carousel template
Carousel template
Carousel templates display multiple horizontally scrollable cards. Each card has its own header image, body, and buttons.To send this carousel template, see Send template message — Carousel.
