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

# 403 Forbidden

> Which Mixpanel ingestion endpoints return a 403, what the response looks like, and how it differs from a 401

A 403 means Mixpanel recognized the request but refused it. Among the ingestion endpoints, `/track`, `/engage`, `/groups`, and `/import` return a 403.

> [!NOTE]
>
> `/import` returns a 403 only when the project does not reside in the data residency region of the server the request was sent to. Its response body has a different shape from the other endpoints; see the `/import` wrong-region response below. For credential problems, see [401 Unauthorized](https://docs.mixpanel.com/troubleshooting/errors/401-unauthorized.md).

## What the Response Looks Like

For `/track`, `/engage`, and `/groups`:

```json theme={"system"}
{
  "error": "...",
  "status": "error"
}
```

This shape differs from the other ingestion errors: there is no `code` field.

### `/import` Wrong Region

For `/import`, a 403 includes a `code` field and a numeric `status`, and the `error` message names the API server to use:

```json theme={"system"}
{
  "code": 403,
  "error": "project 12345 does not reside in this region; send requests to https://api.mixpanel.com/import. See https://docs.mixpanel.com/reference/overview for the API server for each data residency region",
  "status": 0
}
```

Send the request to the host given in the `error` message. See the [API overview](https://docs.mixpanel.com/reference/overview.md) for the API server for each data residency region.

## 403 Compared to 401

| Status | Meaning |
| - | - |
| 401 | Mixpanel could not authenticate the request at all — the credentials were missing, malformed, or invalid |
| 403 | The credentials were understood, but the request is not permitted |

## How to Fix It

**Confirm the project token** belongs to the project you intend to write to. See [find your project token](https://docs.mixpanel.com/docs/orgs-and-projects/managing-projects.md#find-your-project-tokens).

**Check the endpoint and host match your project's data residency.** EU and India projects use `api-eu.mixpanel.com` and `api-in.mixpanel.com`.

**Enable debug mode in your SDK** to log the exact request being sent, including headers and payload. See [debugging your implementation](https://docs.mixpanel.com/docs/tracking-best-practices/debugging.md#enable-debug-mode).

If the request still fails with a 403 and the token is correct, [contact support](https://mixpanel.com/contact-us/support/) with the full request and response, minus the credentials.

## Related

* [401 Unauthorized](https://docs.mixpanel.com/troubleshooting/errors/401-unauthorized.md)
* [Service Accounts](https://docs.mixpanel.com/reference/service-accounts.md)
