WhatsApp template variables: named or positional
How to declare variables in Cloud API templates, the difference between named and positional, required examples and the 132000 and 132012 errors.
The two variable formats
A template accepts two variable formats, set by `parameter_format` at creation: `positional` and `named`. If you do not specify one, the default is `positional`. Both use double curly brackets in the text, but they behave very differently at send time.
In the positional format variables are numbered from 1, like `{{1}}` and `{{2}}`, and both the example values and the send-time values must follow the order in which the placeholders appear in the text. In the named format each variable has a unique name, in lowercase letters and underscores, like `{{customer_name}}`, and values can come in any order, because each one carries the name of the variable it fills.
The choice has a cost. Positional is the default, but swapping two values produces a message that is correct in format and wrong in content, with no error at all. Named is more readable and safer against reordering, but the send must include `parameter_name`. See the send a template guide (Portuguese) for the positional format in the Hub.
Required examples at creation
Every parameter needs an example value at template creation. Meta uses the examples during review, and the review documentation says templates with variables require samples, including media. Do not skip this field: Meta treats it as a required part of the template.
In the positional format, the body example goes in `body_text`, as a list of lists. In the named format, the documentation shows the header example in `header_text_named_params` and, for a utility body, `body_text_named_params`, each item with `param_name` and `example`.
Here are a positional and a named body for the same notice:
{ "type": "BODY",
"text": "Hi {{1}}, your order {{2}} is out for delivery.",
"example": { "body_text": [["Ana", "BR123456789"]] } }{ "type": "BODY",
"text": "Hi {{customer_name}}, your order {{order_code}} is out for delivery.",
"example": { "body_text_named_params": [
{ "param_name": "customer_name", "example": "Ana" },
{ "param_name": "order_code", "example": "BR123456789" } ] } }For the named one, remember to send `"parameter_format": "named"` at the top of the creation body. Choose realistic examples: an example like "test" or "xxx" gives the review less signal than a value that looks like what will actually be sent.
Where each component accepts variables
Each component has its own rule. The body accepts several variables. The text header accepts one variable. The URL button accepts one variable, appended to the end of the URL. The footer is text only and is not among the components Meta's components page lists as accepting variables; when sending through the Hub, a `footer` component does not even exist.
This shows up in the send. For a media header, the parameter is of type `image`, `video` or `document` and carries the media ID. For the URL button, the parameter is a `text` with the final part of the URL. Meta asks that special characters in URL values be percent-encoded, like `%20` for a space and `%C3%A7` for `ç`, or the URL may fail validation.
The Hub messages reference (Portuguese) lists the component types accepted at send time, in lowercase: `header`, `body` and `button`.
Errors 132000 and 132012
Two errors account for most variable failures at send time. Error 132000 means the number of values sent does not match the number of variables defined in the template. The approved template has one count, the send had another, and the check only happens at Meta. The fix is to send one value for each variable, in the exact quantity.
Error 132012 means the values are formatted incorrectly for the template. The typical case is a template created with named variables and a send using positional ones, or the opposite. For a named template, send `parameter_name` in each parameter. When you do not declare the format at creation, the default is positional.
There is also 132001, which happens when the template does not exist in the requested language or is not approved. Name and language form a pair, and `welcome` in `en_US` does not exist in `pt_BR`. All three errors appear in the Meta error catalog (Portuguese). For an approved template that was still refused at send time, the first step is to compare count and format.
What review rejects in variables
Meta's review looks at the shape of variables. The review page lists these rejection causes: missing or mismatched curly braces, special characters such as #, $ or %, non-sequential parameters, too many parameters for the message length, and a template that starts or ends with a parameter.
In the authentication category, parameters are limited to 15 characters. In categorization, Meta also says a body with only `{{1}}` is treated as marketing, because the content is unclear. If your whole message is a variable, it goes to marketing.
A good practice is to keep enough fixed text around each variable: a greeting at the start, a closing at the end, and words that explain what the value represents. That reduces format rejections and keeps the message useful even when the value arrives short.
Building the send payload
When sending through the Hub, the `body` component carries a `parameters` list in the same order as the approved template. In the positional format, the first position fills `{{1}}`, the second `{{2}}` and so on. The `text` type is the most common, and the Hub validates up to 4,096 characters per text.
{
"to": "5521999999999",
"type": "template",
"template": {
"name": "order_on_the_way",
"language": { "code": "en_US" },
"components": [
{ "type": "body", "parameters": [
{ "type": "text", "text": "Ana" },
{ "type": "text", "text": "BR123456789" } ] }
]
}
}For a named template, each item in `parameters` also carries `parameter_name`, with the name declared at creation, and order stops mattering. The `currency` and `date_time` types carry a `fallback_value`, which is the text shown when Meta cannot format the value for the device language.
Validate the count before sending. A ten-line function that compares the number of placeholders in the approved text with the length of `parameters` prevents 132000 in production, and costs far less than a campaign full of failures.
Frequently asked questions
What is the default variable format of a template?
Positional. If parameter_format is not set at creation, Meta uses positional, with placeholders numbered from 1.
Do I need to provide examples for variables?
Yes. Every parameter needs an example value at creation, and review uses those examples.
What does error 132000 mean?
The number of values sent does not match the number of variables in the template. Send one value for each variable, in the exact quantity.
What does error 132012 mean?
The values are formatted incorrectly for the template, such as sending positional parameters to a template with named variables. Use parameter_name in the named format.
Fontes
Documentação oficial da Meta, conferida em 31 de outubro de 2026.