# E12009 — SMSTemplateVariableInvalid

A template variable value does not satisfy its accepted format.

- **HTTP status**: `422`
- **Type**: `validation_error`
- **Name**: `SMSTemplateVariableInvalid`

## What to do

A value in parameters does not match the format its variable expects. Fetch the template to see each variable's accepted type and format, then correct the value and resend.

Operations that resolve this:

- [Get an SMS template](/docs/api/reference/get-sms-template)

## Related

- [E12xxx — SMS sending & delivery](/docs/api/errors/E12xxx): every code in this range
- [Errors](/docs/api/errors): the full wire contract, status mapping, and error catalog
- [Error handling](/docs/guides/errors): branching on `type` and `code`, validation details, and `vendor_code`