Skip to main content Skip to navigation

Documentation

Everything you need to build irresistible applications

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

  1. Cache responses when possible
  2. Batch operations to reduce requests
  3. Implement exponential backoff for retries
  4. Monitor rate limit headers

Increasing Limits

To request higher limits:

  1. Upgrade to a Pro or Enterprise plan
  2. Contact support for custom limits
  3. Use webhook events instead of polling