> ## Documentation Index
> Fetch the complete documentation index at: https://docs.wavix.com/llms.txt
> Use this file to discover all available pages before exploring further.

# WhatsApp template invalid

> The message template can't be created as submitted.

**Error code:** `TEMPLATE_INVALID`

**Should you try again?** No. Sending it again as is fails the same way.

## Why it happens

* The components don't match the expected structure.
* WhatsApp rejected the template content.

## How to fix it

1. Read the `detail` field and fix the component it names, for example `components[0].format: must be lowercase`.
2. Check the components against the [create template reference](https://docs.wavix.com/api-reference/whatsapp/create-a-whatsapp-template.md). Enum values, such as the component `type` and `format`, are lowercase.
3. Submit the template again.

## Technical details

| Detail | Value |
| - | - |
| Returned in | The response to an API request |
| HTTP status | `422` |
| `error_code` | `TEMPLATE_INVALID` |
| `error_class` | `invalid_template` |

For the error format and how to handle it, see [Request errors](https://docs.wavix.com/api-reference/errors.md#request-errors).


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.