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.
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.
Frequently asked questions
Does a full stop after the last variable count as text?+
Why can't a template start with the customer's name?+
Does this rule apply to headers too?+
Can a template body be just one variable?+
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.