The API Firewall currently applies to only Data APIs.
How It Works
The API Firewall applies workspace-specific allowlist logic:- No rules published (Default): The API Firewall is inactive. MoEngage accepts Data API requests from any IP address that presents valid credentials.
- One or more rules published: The API Firewall is active. MoEngage accepts Data API requests only from IP addresses that match a published rule. All other addresses receive a
4xxresponse.
Use Cases
- Protect workspaces with large teams: Organizations with many API users can restrict Data API access to approved server IP addresses. Even if a team member leaves and takes an API key, requests from unauthorized IP addresses are rejected.
- Protect against exposed credentials: When an API key is exposed in a public repository, the API Firewall rejects requests from IP addresses not on your allowlist, even when valid credentials are presented.
- Isolate non-production environments: Create workspace-specific allowlist rules for internal automation networks or QA testing tools in staging workspaces, keeping test traffic separate from production data.
Navigate to the API Firewall
- On the left navigation menu in the MoEngage dashboard, click Settings > Account > Security.
- On the Security page, select the API firewall tab.
- On the API firewall page, select Enable API Firewall. The Add API Firewall Rule dialog box opens.

You must be an Admin for your MoEngage workspace to add API Firewall rules. For more information, refer to Access Roles.
Create and Publish API Firewall Rules
Before configuring rules, obtain a complete list of static IP addresses and CIDR blocks used by your servers from your DevOps or Security team.
Add New API Firewall Rule
- In the Add API firewall rule dialog box, enter the following details:
- Rule name: Enter a descriptive name (for example, “Internal Corporate Network” or “AWS Production Server”).
-
Condition: Select the IP address type from the drop-down menu:
- Value: Enter the IP address, CIDR range, or start and end IP addresses in the format shown in the example.
- Select Add rule. After you save your first rule, MoEngage redirects you to the API firewall list page. To add more rules, select + Add New Rule on the top right of the list page.

API Firewall Status: InactiveYour saved IP rules are recorded but not yet enforced. No traffic is currently restricted. Add all required server IPs before publishing to ensure uninterrupted access for your authorized systems. Once published, the MoEngage Data API accepts requests exclusively from approved IP addresses and returns a
4xx error for all others.Publish Rules
Publishing a rule makes it active and enforces the IP restriction for your workspace. You can publish all rules at once or publish a subset of rules selectively.- Select the checkbox next to each unpublished rule you want to activate.
- Select Publish at the bottom of the screen.
- In the confirmation dialog box, review the notice, and then select Publish to confirm.
4xx response.

If you publish only some of your rules, the remaining unpublished rules are not enforced. Requests from IP addresses covered only by unpublished rules are rejected until you publish those rules.
View Rule Details and Activity
The API firewall page displays the following information for each rule:
Manage API Firewall Rules
Edit an Existing Rule
- On the API firewall page, click the ellipsis icon on the rule you want to modify.
- Click Edit. The Edit API Firewall Rule dialog box opens.
- Update the Rule name, Condition, or Value as needed.
- Select Save.

Unpublish or Delete a Rule
- To unpublish: Select the active rules using the checkboxes and select Unpublish at the bottom of the screen. The rule remains in your list but is no longer enforced.

- To delete: Click the ellipsis icon on the rule, select Delete, and confirm the deletion in the dialog box. Deleted rules are removed from the list permanently.

FAQs
Why should I add all IP rules before publishing them?
Why should I add all IP rules before publishing them?
Publishing a rule activates the API Firewall immediately. If you have three server IPs and publish them one at a time, each server without an active rule receives
4xx errors until its rule is published. Add all rules in Unpublished status first, then select all and publish them together to prevent service interruptions for your authorized systems.Does the API Firewall affect mobile app or website SDK traffic?
Does the API Firewall affect mobile app or website SDK traffic?
No. The API Firewall applies to Data APIs (server-to-server traffic) only. It does not affect end-user mobile or web SDK traffic.
How does a blocked system receive notification of the block?
How does a blocked system receive notification of the block?
MoEngage does not send a dashboard notification when the firewall blocks a request. The blocked system receives a
4xx error (specifically 4xx) directly in the API response. The dashboard status column reflects the current published or unpublished state of each rule.What happens if I accidentally exclude my server's IP when publishing?
What happens if I accidentally exclude my server's IP when publishing?
The API Firewall rejects requests from any IP address not covered by an active rule, including your own servers. To prevent accidental lockouts, verify that all authorized server IPs are present in your rules before selecting Publish.
Can I use wildcards or fully qualified domain names (FQDNs) in rules?
Can I use wildcards or fully qualified domain names (FQDNs) in rules?
No. The API Firewall evaluates requests using network-layer IP identifiers. Rules must specify single IP addresses or CIDR ranges. Domain names are not supported.
What happens if the API Firewall experiences an internal failure?
What happens if the API Firewall experiences an internal failure?
The API Firewall is designed to fail open. If an internal failure occurs, the system allows API traffic through rather than blocking legitimate requests, preserving data collection continuity.
Next Steps
Now that your API Firewall rules are configured, refer to the following resources to strengthen your workspace security further:- Audit Logs — Review a complete record of all API Firewall rule changes, including who made each change, when, and from which IP address.
- Firewall — Restrict MoEngage dashboard login access to approved IP addresses, complementing the API-level protection provided by the API Firewall.
- SDK Authentication — Secure your mobile and web SDK traffic using JWT-based authentication to validate requests from your app users.
- Security Best Practices — Explore recommended configurations across authentication, access control, and network security to keep your workspace secure.