90019: 'TemplateArgs' dictionary size is too large
ERROR
This error occurs when your request includes more template arguments in TemplateArgs than Twilio accepts for a template message. Send only the key-value pairs required to populate the placeholders defined in your template.
TemplateArgscontains too many entries.- Your request includes placeholder keys that are not required by the template you are sending.
- Your application is passing a large personalization object into
TemplateArgsinstead of only the variables used by the template. - The template design requires more dynamic fields than Twilio supports in a single template payload.
- Remove unused entries from
TemplateArgsand resend the request. - Send only the placeholder keys that are defined in the template body.
- Keep the template variable payload within the supported limit. Content templates support up to 100 variables.
- Move static text into the template itself and reserve
TemplateArgsfor runtime substitution values only. - If you need more placeholders than a single template supports, simplify the template or split the content into multiple messages or templates.
- Review each variable definition before resending. Variable keys cannot contain spaces, keys can be up to 16 characters, and values can be up to 1,600 characters.