# Rate Limits

Rate limits are applied per organization (based on the API key's team). Limits scale with your credit pack.

## Per-plan limits

| Plan       | Burst (req/sec) | Sustained (req/min) |
|------------|-----------------|---------------------|
| Free       | 5               | 60                  |
| Growth     | 25              | 300                 |
| Scale      | 50              | 1,000               |
| Pro        | 100             | 5,000               |
| Enterprise | 200             | 10,000              |

**Burst** limits prevent short spikes from overwhelming the system. **Sustained** limits cap your average throughput over a rolling 60-second window.

## Endpoint-specific overrides

Some endpoint categories have tighter limits to protect resource-intensive services:

### Enrichment endpoints (`POST:/api/enrich/*`)

| Plan   | Sustained (req/min) |
|--------|---------------------|
| Free   | 10                  |
| Growth | 100                 |
| Scale  | 500                 |
| Pro    | 2,000               |

### Bulk submit endpoints (`POST:/api/bulk/*`)

| Plan   | Burst (req/sec) | Sustained (req/min) |
|--------|-----------------|---------------------|
| Free   | 1               | 2                   |
| Growth | 3               | 10                  |
| Scale  | 5               | 20                  |
| Pro    | 10              | 50                  |

Enterprise plans have no endpoint-specific overrides — global limits apply.

## Response headers

Every response includes rate limit headers:

| Header                  | Description                         |
|-------------------------|-------------------------------------|
| `X-RateLimit-Limit`     | Maximum requests in the window      |
| `X-RateLimit-Remaining` | Requests remaining in the window    |
| `X-RateLimit-Reset`     | Seconds until the window resets     |

## 429 Too Many Requests

When you exceed a rate limit, the API returns a 429 response with a `Retry-After` header:

```json
{
  "statusCode": 429,
  "error": "Too Many Requests",
  "message": "Rate limit exceeded, please retry later",
  "retryAfter": 45
}
```

The `Retry-After` value (in seconds) tells you when you can safely retry.

## Tips for staying within limits

- **Use batch endpoints** for large datasets instead of making many single requests. A single bulk submit counts as one request.
- **Respect `Retry-After`** — back off for the indicated duration before retrying.
- **Implement exponential backoff** for transient failures.
- **Poll batch status at reasonable intervals** (every 5–10 seconds) rather than in a tight loop.
- **Monitor your usage** via the `X-RateLimit-Remaining` header to adjust throughput before hitting limits.
- **Upgrade your plan** if you consistently hit limits — higher packs come with significantly higher rate limits.

