[CAL-4413] [Api][v2] implement api key rate limiting #16824
Labels
api
area: API, enterprise API, access token, OAuth
✨ feature
New feature or request
High priority
Created by Linear-GitHub Sync
platform
Anything related to our platform plan
override handleRequest in CustomerThrottlerGuard (apps/api/v2/src/lib/throttler-guard.ts) to be able to rate limit based on api key, example:
new prisma schema RateLimits
id
apiKeyId
ttl
limit
blockDuration
in handleRequest,
in handleRequest, if tracker is not for an api key
From SyncLinear.com | CAL-4413
The text was updated successfully, but these errors were encountered: