/track, /engage, /groups, and /import return a 403.
/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.What the Response Looks Like
For/track, /engage, and /groups:
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:
error message. See the API overview for the API server for each data residency region.
403 Compared to 401
How to Fix It
Confirm the project token belongs to the project you intend to write to. See find your project token. Check the endpoint and host match your project’s data residency. EU and India projects useapi-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.
If the request still fails with a 403 and the token is correct, contact support with the full request and response, minus the credentials.