-
Notifications
You must be signed in to change notification settings - Fork 0
Add rate-limit headers to /v1/do response #2
Copy link
Copy link
Open
Labels
good first issueGood for newcomersGood for newcomers
Description
The /v1/do endpoint enforces rate limits but doesn't return standard rate-limit headers (X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Reset). Adding these helps SDK developers handle rate limiting gracefully.
What to do:
- In
apps/api/src/routes/do.ts, add rate-limit response headers after the rate limiter middleware runs - Follow the standard format: X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Reset (Unix epoch)
- Add to both authenticated and free-tier response paths
Good first issue — straightforward header addition, well-defined scope.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
good first issueGood for newcomersGood for newcomers