Unify Logo Footer.svg
API Manager
Logo
Rate Limiting Policy

Rate Limiting Policy

Logo

3 mins READ

Control how many API requests a client profile can make within a defined time window, protecting backend services from traffic overload.

Overview

Rate Limiting Policy controls how many API requests a client profile can make within a defined time window. When the limit is reached, further requests are rejected and the configured error message is returned — protecting backend services from traffic overload, preventing abuse, and ensuring fair usage across all API consumers.

Rate Limiting Policy configuration panel

rate_limiting-1.png
rate_limiting-1.png

Field Reference

Field

Description

Policy Name *

A unique identifier used across logs, dashboards, and API group configurations.

Tags

Custom labels to organize and filter the policy by environment, team, or functionality.

Duration *

The length of the time window during which requests are tracked per client profile.

Unit *

The time unit for the Duration field. Options: Seconds, Minutes, Hours, Days.

Number of Requests *

The maximum number of requests allowed per client profile within the time window. Once reached, further requests are denied until the window resets.

Error Message

The message returned to the client when their request is denied. Defaults to "API rate limit exceeded" if not set.

rate_limiting.png
rate_limiting.png

How It Works

  1. Request received — The gateway identifies the client using an API key, IP address, or user ID.

  2. Counter check — The system retrieves the request count for that client within the current time window.

  3. Limit evaluation — If the count is below the limit, the request is forwarded and the counter increments. If at or above the limit, the request is rejected.

  4. Error response — Rejected requests receive the configured error message indicating the rate limit has been exceeded.

  5. Window reset — After the time window expires, the counter resets and the client can send requests again.

Attaching to an API Group

Once a Rate Limiting Policy is created, attach it to one or more API Groups from the group's policy settings. Drag policies into the desired execution order when multiple policies are applied to the same group.

Notes

  • Rate limits are tracked per client profile, not globally — one client hitting the limit does not affect other clients.

  • Start with conservative limits and loosen them based on observed traffic patterns from the Insights dashboard.

  • Provide a descriptive Error Message so callers understand the limit and when to retry (e.g., "Rate limit exceeded. Maximum 100 requests per minute.").

  • Pair with a Usage Quota Policy for end-to-end traffic governance: rate limiting handles bursts, quotas handle total consumption.

FAQs

What HTTP status code does the client receive when rate limited?

Rejected requests receive a 429 Too Many Requests response with the error message configured in the policy

Is the rate limit shared across all clients or per client?

The limit is tracked per client profile, independently. One client reaching the limit has no effect on other clients' allowances

When does the request counter reset?

The counter resets when the configured time window expires. For example, with a 1-minute window, the counter resets every minute starting from when the first request in that window arrived.

What is the difference between a Rate Limiting Policy and a Usage Quota Policy?

A Rate Limiting Policy controls short-window traffic bursts (e.g., 100 requests per minute). A Usage Quota Policy controls total consumption over longer periods (e.g., 10,000 requests per day). Use both together for complete governance.