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

# Why Is Domain Whitelisting Recommended Over IP Whitelisting for the Data API?

> MoEngage recommends domain whitelisting over IP whitelisting for Data APIs because IPs change often. Learn the best approach for API access.

## Problem

It is recommended that the domain for the Data application programming interface (API) be whitelisted instead of the IP.

<Info>
  The need to enable network address translation (NAT) IP forwarding for specific User API and Event API requests may arise, potentially because of errors like a time-out error, network error, and so on.
</Info>

## Explanation

* MoEngage uses a multi-tenant system, meaning IPs change frequently to support scale and security.
* The domain `api-xx.moengage.com` is static, making domain whitelisting more reliable than IP whitelisting.
* MoEngage APIs use Authentication to validate requests and ensure security.
* If static IPs are required, a custom implementation at MoEngage is required, which is typically avoided.
* Do not cache the IP. If you encounter any errors in the response from MoEngage, domain whitelisting should suffice.
