Reference
Rate Limits and Maintenance
Design client applications to handle request throttling (429) and scheduled institutional maintenance windows (503) gracefully.
Tiered Rate Limits (429 Too Many Requests)
Requests are throttled per client IP over a 60,000 ms (1 minute) rolling window using three endpoint tiers:
| Tier | Applies To | Production Limit / Min | Development Default / Min |
|---|---|---|---|
| Authentication | /auth/** | 10 requests | 20 requests |
| Writes | POST, PUT, DELETE, PATCH | 30 requests | 60 requests |
| Reads | GET, OPTIONS, HEAD | 60 requests | 120 requests |
Sample 429 Response (RateLimitErrorResponse)
Code
Recommended Client Backoff
- Pause outgoing requests when HTTP
429arrives and wait at leastretryAfterMsmilliseconds (with small jitter) before retrying idempotentGETcalls. - Cache reference endpoints (
GET /api/academic-years/current,GET /api/time-slots,GET /admin/api/departments) for the duration of a user session rather than polling on every UI route change. - Avoid parallel login bursts in automated scripts; reuse one obtained Bearer token across requests within its 1-hour lifetime.
Maintenance Mode (503 Service Unavailable)
During planned maintenance, protected domain routes and POST /auth/login return HTTP 503:
Code
Maintenance-Exempt Read Checks
Clients can continue checking service status and caller context cleanly even during maintenance:
GET /api/public/maintenance-status(unauthenticated preflight banner check)GET /auth/me,POST /auth/forgot-password,POST /auth/reset-passwordGET /admin/api/permissions/my-permissionsandGET /admin/api/permissions/my-effective-permissionsGET /admin/api/institution-settingsandPUT /admin/api/institution-settings
