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

> The API rejected the request because the body or a parameter isn't valid.

**Error code:** `INVALID_REQUEST`

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

## Why it happens

* The body isn't valid JSON, or it has a field the endpoint doesn't accept.
* A required field is missing, such as `to`.
* A phone number isn't 6 to 20 digits, with or without a leading `+`.
* `idempotency_key` contains characters that aren't printable ASCII, or is longer than 128 characters.
* Your account has several WhatsApp Business Accounts, and the request doesn't say which one to use.

## How to fix it

1. Read the `detail` field and fix the field it names.
2. Check the request against the endpoint in the [API reference](https://docs.wavix.com/api-reference/openapi.md).
3. Send the corrected request.

## Technical details

| Detail | Value |
| - | - |
| Returned in | The response to an API request |
| HTTP status | `400` |
| `error_code` | `INVALID_REQUEST` |
| `error_class` | `permanent` |

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.