Error 132000: template parameter count mismatch

Error 132000 appears when you send more or fewer variables than the approved template defines. Learn to count per component and validate before sending.

132000 is a counting error. The approved template defines a number of variables, and your request carried another. It sounds trivial, yet it is one of the most frequent errors in template integrations, because the count is done per component and because whoever edits the template text in WhatsApp Manager rarely tells the team that owns the code. Usually the send was fine yesterday and fails today.

What 132000 means

Short answer: 132000 means the number of variable values in the request does not match the number of variables defined in the template. Meta's error codes table says to send a value for every parameter the template defines, in the exact number.

The word "exact" matters in both directions. Missing a value triggers the error, and so does an extra one. A template with two body variables accepts exactly two parameters in the body component; sending one or three does not pass. And, as we will see next, each component of the template has its own count.

The count is per component

Short answer: header, body and buttons have independent variables. You count and send each group in its own component, not summed into one.

Meta's components page gives the limits that help predict the count: a text header accepts 1 parameter (and at most 60 characters), the body accepts several parameters (up to 1,024 characters) and the URL button accepts 1 variable, which goes at the end of the address. The footer is fixed text. When creating the template, any variable requires an example value.

ComponentPossible variablesWhere to send
Text header1components entry with type "header"
Media headerOne image, video or document parametercomponents entry with type "header"
BodySeveral, depending on the textcomponents entry with type "body"
URL button1, at the end of the URLcomponents entry with type "button", sub_type "url" and index
FooterNoneDoes not appear in the request

A complete example

Short answer: if the template body is "Hi {{1}}, your order {{2}} is out for delivery" and the URL button ends in {{1}}, the request needs two parameters in the body and one in the button.

# Template: body with {{1}} and {{2}}, URL button with one variable curl -X POST https://crprohub.com/api/v1/channels/CHANNEL_UUID/messages \ -H "Authorization: Bearer hub_pk_EXAMPLE_NOT_REAL" \ -H "Idempotency-Key: 8d2f4a60-1b7c-4e93-a5d1-6c0e9f3b7a42" \ -H "Content-Type: application/json" \ -d '{ "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" } ]}, { "type": "button", "sub_type": "url", "index": "0", "parameters": [ { "type": "text", "text": "order/BR123456789" } ]} ] } }'

This format follows the Hub's send-template guide; the quickstart covers the basic send call. Note that the button uses index "0" and sub_type "url". If the template had a second URL button with a variable, it would need its own component with index "1".

Why the error appears after it worked

Short answer: because the template changed and your code did not. Almost every late 132000 comes from an edit to the template text that changed the number of variables.

  • Someone edited the template and added or removed a variable. After the new approval the name stays the same and the count changed.
  • A template was duplicated per language and the versions ended up with different numbers of variables.
  • Your code builds parameters from a dynamic list, and an empty field was dropped, leaving one parameter short.
  • The URL button variable exists in the template but was not sent, or was sent without existing.

The third case is the most treacherous. If an optional data point (such as a tracking code) arrives empty and your code filters null values before building the list, the template receives one parameter fewer. The rule is to always send the number the template defines, with a replacement value when data is missing, and never to omit the parameter.

How to validate before sending

Short answer: count the variables in the approved text and compare with the parameters you are about to send, per component. A ten-line function prevents most failures.

// Counts {{n}} in a template text (positional format) const count = (text) => new Set(text.match(/\{\{\d+\}\}/g) ?? []).size // definition: { body: 'Hi {{1}}, order {{2}}', buttonUrl: 'https://shop.com/{{1}}' } function check(definition, components) { const body = components.find((c) => c.type === 'body')?.parameters.length ?? 0 const button = components.find((c) => c.type === 'button')?.parameters.length ?? 0 const errors = [] if (body !== count(definition.body)) errors.push('body: count differs') if (button !== count(definition.buttonUrl ?? '')) errors.push('button: count differs') return errors }

The definition comes from the approved text, visible in WhatsApp Manager. The Hub's template listing returns name, language, category and status; for the variable count, use the template text in the Meta account and keep the definition next to your code, versioned. That way, when the template changes, the test fails in your environment instead of at the customer.

If the count is right and the error persists

Short answer: then the problem is no longer quantity. Check the variable format (positional or named), the template language and the approved category.

A template created with named variables accepts parameters with parameter_name, and a positional one does not; that difference produces 132012, covered in another article of this series. A wrong name or language produces 132001. When the refusal comes through the Hub it arrives as 502 META_SEND_FAILED with the code in details.meta_code, or as message.status failed after the 202. Either way, do not repeat the call in a loop: the same body produces the same result, and each attempt spends the limit of 60 sends per minute per channel. Fix the body and use a new Idempotency-Key. The webhooks page shows where the asynchronous failure arrives.

Templates without variables and other edge cases

Short answer: if the template has no variable at all, do not send components with parameters. The minimal send carries just the name and the language.

{ "to": "5521999999999", "type": "template", "template": { "name": "maintenance_notice", "language": { "code": "en_US" } } }
  • A template with a media header and no body variable still needs the media parameter in the header, because the media is supplied at send time rather than fixed in the template.
  • Quick reply and fixed phone buttons carry no variable. Only the URL button with a variable, at the end of the address, requires a parameter.
  • Two URL buttons with variables need two components, each with its own index, in the order they appear in the template.

When in doubt, compare the JSON your system generates with the complete example in the Hub's send-template guide, which covers an image header, a body with text, currency and date, and a URL button.

A test that catches template changes

Short answer: keep, in the repository, the definition of every template the system uses and a test that generates the payload and checks the count. When someone edits the template, the periodic review catches the difference before the customer does.

The weak point of that arrangement is that the definition can go stale. So schedule a periodic review: from time to time, open each template used in production in WhatsApp Manager and compare the text with the definition. If your team edits templates often, agree that every edit opens a task to update the definition. A template edit is a contract change and should be treated as one, with the same care you take when altering an endpoint.

An extra parameter also gives 132000. Do not fill in components "for safety" that the template does not have.

Frequently asked questions

Can I send an extra parameter without a problem?

No. Meta asks for a value for every parameter the template defines, in the exact number. An extra or missing value produces 132000.

Do the header and the body count together?

No. Each component has its own variables and is sent in its own object in components. A text header accepts 1; the body accepts several; the URL button accepts 1.

How do I find out how many variables the template has?

From the approved text in WhatsApp Manager. The Hub listing shows name, language, category and status, but you check the variable count in the template text.

Does resending with the same Idempotency-Key fix it?

No. If you change the body, the old key answers 409 IDEMPOTENCY_KEY_REUSED. Fix the parameters and send with a new key.

Fontes

Documentação oficial da Meta, conferida em 31 de outubro de 2026.