Skip to contentSkip to navigationSkip to topbar
Page toolsOn this pageProducts used
Looking for more inspiration?Visit the

21658: Parameter exceeded character limit


ERROR: 21658

error-21658 page anchor
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.

Possible causes

possible-causes page anchor
  • You sent a value that is longer than the limit for the affected Messaging parameter.
  • A Body value 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 Body to 1,600 characters or fewer.
  • If you are using Content API, reduce each variable value to 1,600 characters or fewer.

Additional resources

additional-resources page anchor