Multi-Ratelimit System
Unkey supports multiple named ratelimits per key, providing fine-grained control over different aspects of your API usage. You can define separate limits for different operations, time windows, and use cases within a single key. The system offers two types of ratelimits: auto-apply ratelimits that check automatically during verification, and manual ratelimits that require explicit specification in requests.Auto-Apply vs Manual Ratelimits
Auto-apply ratelimits (autoApply: true) are checked automatically during every key verification without needing explicit specification. These work well for general usage limits that should always be enforced.
autoApply: false) must be explicitly specified in verification requests. Use these for operation-specific limits that only apply to certain endpoints.