21658: Parameter exceeded character limit
MESSAGING, CONTENT
ERROR
You receive this error when a Messaging API request includes a parameter value that is longer than the allowed limit. In a Message request, Body can be up to 1,600 characters. When you send a Content template, each variable value can be up to 1,600 characters, though some template fields enforce a lower limit and the variable limit follows that field limit.
- Your
Bodyvalue is longer than 1,600 characters. - A value in
ContentVariablesis longer than the allowed limit for the template field where it is used. Variable values can be up to 1,600 characters, and some fields have lower maximums. - Another Messaging request parameter exceeded its maximum character limit.
- Shorten the parameter that caused the request to fail, then send the request again.
- If you are sending text in
Body, keep it at 1,600 characters or fewer. - If you are using
ContentSidandContentVariables, shorten each variable value so it fits the limit for the template field where you use it.