Rate Limited API
Category: Backend & APIs
This page is generated from the Air Pipe marketplace. Browse it live to install into your organization.
Overview
A public endpoint rate-limited to 10 requests/min per IP. Demonstrates the native network rate_limit policy.
Endpoints
- GET
public/quote— returns a quote; rate-limited per IP
Required variables
- None
Configuration
rate_limited_api.yml
name: RateLimitedApi
description: >
A public endpoint rate-limited to 10 requests per minute per client IP.
Demonstrates the native network rate_limit policy — no database table or
custom counting logic required.
docs: true
# Required managed variables: none.
interfaces:
public/quote:
output: http
method: GET
public: true
summary: A public endpoint rate-limited to 10 requests per minute per IP
network:
rate_limit:
per: ip
requests: 10
window: "60s"
on_deny:
status: 429
body:
error: rate_limited
message: "Too many requests. Slow down and try again shortly."
actions:
- name: Respond
json_output: |-
{ "quote": "Stay hungry, stay foolish." }