21658: Parameter exceeded character limit
MESSAGING, CONTENT
ERROR
Twilio returns this error when a parameter value exceeds the allowed character limit in a Messaging request. When you create a Message resource, content is sent with Body, ContentSid, or MediaUrl. Body values can be up to 1,600 characters long, and Content Template variable values can also be up to 1,600 characters.
- You sent a value that is longer than the limit for the affected Messaging parameter.
- A
Bodyvalue exceeded 1,600 characters. - A Content Template variable value exceeded 1,600 characters.
- Shorten the affected parameter value and send the request again.
- If you are sending message text, reduce
Bodyto 1,600 characters or fewer. - If you are using Content API, reduce each variable value to 1,600 characters or fewer.