# 21658: Parameter exceeded character limit

Log Type: APPLICATION

Log Level: ERROR

## Description

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

* 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.

### Possible solutions

* 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

* [Messages resource](/docs/messaging/api/message-resource)
* [Using Variables with Content Templates](/docs/content/using-variables-with-content-api)
