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

# Access denied

> The API key is valid, but it isn't allowed to make this request.

**Error code:** `ACCESS_DENIED`

**Should you try again?** No, not until the API key is allowed to make the request, or the account is active again.

## Why it happens

* The key is a restricted key without the scope this endpoint needs. WhatsApp endpoints need the **WhatsApp** resource: **Read** for `GET` requests and **Write** for all other requests.
* The key is limited to authorized IP addresses, and the request came from an IP address that isn't on the list.
* The account is suspended. The `detail` field says `The account is suspended.`

## How to fix it

1. In the Wavix portal, go to **Administration** → **API Keys** and open the key.
2. If the key is restricted, give it the permission the endpoint needs.
3. If **Restrict access to authorized IPs only** is on, add the public IP address of the server that sends the request.
4. If the account is suspended, contact [support@wavix.com](mailto:support@wavix.com).

For more information, see [Restricted keys and scopes](https://docs.wavix.com/api-reference/authentication.md#restricted-keys-and-scopes).

## Technical details

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