> ## 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 webhook URL

> Wavix can't send events to the webhook URL, because it isn't a public HTTPS URL.

**Error code:** `INVALID_WEBHOOK_URL`

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

## Why it happens

* The URL doesn't start with `https://`.
* The host resolves to an address that isn't public, such as `localhost` or a private network address.
* The URL is longer than 2,048 characters.

## How to fix it

1. Use an `https` URL on a host that's reachable from the internet. To test from your computer, expose your local server with a tunneling tool.
2. Send the request again with the new URL.

## Technical details

| Detail | Value |
| - | - |
| Returned in | The response to an API request |
| HTTP status | `422` |
| `error_code` | `INVALID_WEBHOOK_URL` |
| `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.