ZuploZuplo
LoginStart for Free
  • Documentation
  • API Reference
Introduction
Getting Started
    Develop using the Portal
      1 - Setup Your Gateway2 - Rate Limiting3 - API Key Auth4 - Deploy5 - Dynamic Rate LimitingMCP - Quick start
    Develop Locally
      1 - Setup Your Gateway2 - Rate Limiting3 - API Key Auth
Concepts
Development
Policies
Handlers
API Keys
MCP Server
MCP Gateway
AI Gateway
Developer Portal
Monetization
Deploying & Source Control
Observability
Networking & Infrastructure
Account Management
Programming API
Build with AI
Zuplo CLI
Migration Guides
Platform LimitsSecuritySupportTrust & ComplianceChangelog
powered by Zudoku
Develop using the Portal

Step 2 - Add Rate Limiting

Choose your Development Approach

Select how you'd like to build your gateway. You can switch between approaches at any time.

Portal Development
Local Development

Portal Development

Build and deploy your gateway using Zuplo's web-based portal. No local setup required.

In this guide we'll add simple Rate Limiting to a route. If you don't have one ready, complete Step 1 first.

Rate Limiting is one of our most popular policies - you should never ship an API without rate limiting because your customers or internal developers will accidentally DoS your API; usually with a rogue useEffect call in React code.

What's a Policy?

Policies are modules that can intercept and transform an incoming request or outgoing response. Zuplo offers a wide range of policies built-in (including rate limiting) to save you time. You can check out the full list.

Zuplo offers a programmable approach to rate limiting that allows you to vary how rate limiting is applied for each customer, or requests.

In this example, we'll add a simple IP based rate limiter, but you should look into dynamic rate limiting to see the full power of the world's best rate limiter.

  1. Add the rate-limiting Policy

    Navigate to your route in the Route Designer (Code > routes.oas.json), click the Policies dropdown, then click Add Policy on the request pipeline.

    Add policy

    Search for the rate limiting policy (not the "Complex" one) and click it.

    Add rate-limiting policy

    By default, the policy will rate limit based on the caller's IP address (as indicated by the rateLimitBy field). It will allow 2 requests (requestsAllowed) every 1 minute (timeWindowMinutes). You can explore the rest of the policy's documentation and configuration in the right panel.

    Rate limiting policy

    To apply the policy, click OK. Then, save your changes to redeploy.

  2. Testing your Policy

    Now try firing some requests against your API. You should receive a 429 Too many requests on your 3rd request.

    429 response

    Your rate limiting policy is now intercepting excess requests, protecting the getting-started API.

NEXT Try Step 3 - Add API Key Authentication.

Edit this page
Last modified on March 27, 2026
1 - Setup Your Gateway3 - API Key Auth