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

# Invalid WhatsApp template parameters

> The message wasn't delivered because the parameters you sent don't match the template.

**Error code:** `INVALID_TEMPLATE_PARAMETERS`

**Should you try again?** Yes, after you correct the parameters.

## Why it happens

* The number of parameters doesn't match the placeholders in the template.
* A parameter has the wrong type, such as text where the template expects media.

## How to fix it

1. Compare the parameters with the template:

   ```bash theme={null}
   curl "https://api.wavix.com/v1/whatsapp/templates" \
     -H "Authorization: Bearer your_api_key"
   ```
2. Send the message again with the corrected parameters, as a new request with a new `idempotency_key`.

## Technical details

| Detail | Value |
| - | - |
| Returned in | The `whatsapp.message.failed` event, in `data.error`, and the `error` field of [Retrieve a WhatsApp message](https://docs.wavix.com/api-reference/whatsapp/retrieve-a-whatsapp-message.md) and [List WhatsApp messages](https://docs.wavix.com/api-reference/whatsapp/list-whatsapp-messages.md). The request that sent the message succeeded. |
| `code` | `INVALID_TEMPLATE_PARAMETERS` |
| `subcode` | `null`: this code has no subcodes |
| `action` | `fix_and_resend` |

For the error format and how to handle it, see [WhatsApp delivery errors](https://docs.wavix.com/messaging/whatsapp/troubleshooting.md#how-delivery-errors-reach-you).


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