Developer & Agent API Portal
Rate Limits & Error Handling
Three-tier Express rate limit windows, Retry-After headers, and structured ErrorResponse payloads.
Verified Rate Limit Policies
| Tier / Endpoint Scope | Limit Window | Headers Returned |
|---|---|---|
General Endpoints (globalLimiter) | 120 requests / 1 minute per IP | Standard RateLimit-* + Retry-After: 60 on HTTP 429 |
Authentication & OAuth2 (authLimiter) | 10 attempts / 15 minutes per IP | Retry-After: 900 on HTTP 429 |
Sensitive Forms & Support (sensitiveFormLimiter) | 15 submissions / 10 minutes per IP | Retry-After: 600 on HTTP 429 |
Vercel Edge bot.fusionhub.in/api/stats | 60 requests / 1 minute per IP (5s CDN cache) | X-RateLimit-Limit, X-RateLimit-Remaining, Retry-After |
HTTP Status Codes & JSON Errors
| Status | Meaning | Action |
|---|---|---|
200 | Success | Parse JSON response body cleanly. |
400 | Bad Request / Captcha Required / Invalid Guild Input | Validate required payload parameters or Turnstile check. |
403 | Forbidden / Blocked CORS Origin / Admin Required | Confirm allowed Origin header or Discord Guild Admin privileges. |
404 | Resource Not Found | Verify route path against /openapi.json. |
429 | Too Many Requests | Honor Retry-After seconds before retrying with backoff. |
500 | Server Error | Check Service Status or report persistent failures cleanly. |