Skip to content
Meta Business PartnerAPI error reference

WhatsApp API error 2388299: Leading or trailing parameters not allowed

Error 2388299 means the template text begins or ends with a variable. WhatsApp wants every variable framed by fixed text, so a template can't open with {{1}} or finish with one.

2388299
Code
Leading or trailing parameters not allowed
Meta's name
Template management
Type
On a set-up call, not a send
Where you see it
After fixing the cause
Retry

Quick answer

The template starts or ends with a variable. Add fixed wording before the first variable and after the last one, then submit again.

What WhatsApp error 2388299 means

Meta documents 2388299 as: variables cannot be at the start or end of the template, and points to the error message for formatting details.

Why error 2388299 happens

Meta checks a template when you create or change it, and these errors say which rule it broke. The usual reasons:

  • A body that opens with a name variable, such as "{{1}}, your order is ready".
  • A body that ends with a link or code variable and nothing after it.
  • Trailing punctuation or spaces removed by an editor, leaving the variable last.
  • Templates designed to carry a pre-written message stored somewhere else.

How to fix error 2388299

Work through these in order; the first one that turns up a problem is usually the fix.

  • Start the message with fixed text, for example "Hi {{1}}, your order is ready".
  • End with fixed text after the last variable, such as a full stop with a short closing line.
  • Check the editor didn't strip the closing text.
  • Submit again.
  • Preview the template with sample values before submitting it.

Should you retry after 2388299?

Resubmit after rewording; unchanged, the template is rejected again.

How error 2388299 shows up in InfiQ

Error 2388299 comes from a set-up call, not a message send: creating or changing a template, registering a number or onboarding an account. InfiQ's template endpoints return Meta's error object for it with an InfiQ_traceid; for number registration and onboarding, which InfiQ's team runs with you, share the code and the details text with support.

Send it through InfiQ

Frequently asked questions

Does a full stop after the last variable count as text?+
Meta's rule is about variables at the start or end of the template. The safest fix is real wording after the last variable rather than relying on punctuation alone.
Why can't a template start with the customer's name?+
Because the variable would be the very first thing. Put a greeting first, like "Hi {{1}}", and the template is fine.
Does this rule apply to headers too?+
The error message names where the problem is. Wherever it is, frame the variable with fixed text.
Can a template body be just one variable?+
No. A body that is only a variable both starts and ends with one, so it breaks this rule, and it gives review nothing to check.

Build templates that pass review first time

Create and submit templates from InfiQ, with the approved list and each template's status in one place.