Introduction
Most modern products need guardrails on usage. Examples: • A dating app caps swipes or messages per user per day • A SaaS platform limits how often a host can be powered off per hour • An AI API caps requests per tenant per day Implementing these limits correctly is harder than it looks: reset semantics, retries, idempotency, and enforcement behavior quickly become operational burdens. Quota API sits in the request path and makes a deterministic allow / block decision for each request. You define a stable resource_key, attach a quota rule that describes limits and reset behavior, then check or consume usage per subject_id. Throughout these docs, we use a single example: limiting how many apples can be discarded per subject per day. The same pattern applies to any feature you need to meter.