Rate Limits
API rate limiting to ensure fair usage.
Overview
The Irresistible API uses rate limiting to prevent abuse and ensure service stability. Rate limits are applied per user and per IP address.
Default Limits
Authenticated Requests
- Standard: 1000 requests per hour
- Pro: 5000 requests per hour
- Enterprise: Custom limits
Unauthenticated Requests
- All endpoints: 100 requests per hour per IP
Endpoint-Specific Limits
High-Cost Operations
Some endpoints have stricter limits:
/api/ai/chat
: 100 requests per hour/api/projects/deploy
: 10 requests per hour/api/auth/signup
: 5 requests per hour
File Operations
- Upload: 50 MB max file size
- Batch operations: 100 files per request
Rate Limit Headers
Every API response includes rate limit information:
X-RateLimit-Limit: 1000
X-RateLimit-Remaining: 999
X-RateLimit-Reset: 1640995200
Handling Rate Limits
When rate limited, you’ll receive:
{
"error": "Too Many Requests",
"message": "Rate limit exceeded. Try again in 42 seconds.",
"retryAfter": 42
}
Status Code: 429 Too Many Requests
Best Practices
- Cache responses when possible
- Batch operations to reduce requests
- Implement exponential backoff for retries
- Monitor rate limit headers
Increasing Limits
To request higher limits:
- Upgrade to a Pro or Enterprise plan
- Contact support for custom limits
- Use webhook events instead of polling