> ## Documentation Index
> Fetch the complete documentation index at: https://solidroad.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Rate limits

> How many requests you can send, and the headers that tell you how many are left.

## Limits

| Limit | Applies to | Window |
| - | - | - |
| 5,000 requests | Each API key | 1 hour, sliding |
| 50 requests | Each IP address | 1 second, sliding |

Both limits apply to every request. A request that goes over either limit gets a `429` response.

These numbers are the minimums. We can lower the limit for a workspace that uses much more than others, but never below these numbers. Every key has the same limit today. Do not share keys between integrations to get more requests. If you need more, contact [support@solidroad.com](mailto:support@solidroad.com).

## Headers

Version 2 responses include these headers:

| Header | Meaning |
| - | - |
| `X-RateLimit-Limit` | The number of requests allowed in the window. |
| `X-RateLimit-Remaining` | The number of requests left in the window. |
| `X-RateLimit-Reset` | When the window resets, as a Unix time in seconds. |

```
X-RateLimit-Limit: 5000
X-RateLimit-Remaining: 4925
X-RateLimit-Reset: 1793379600
```

The headers usually describe your API key's limit. They describe the IP address limit when the request has no key, or when the IP address limit refused the request. If our rate-limit store is not available, requests continue without these headers.

> [!NOTE]
>
> Version 1 sends `X-RateLimit-Reset` in milliseconds. Version 2 sends it in seconds.

## When you go over a limit

The response has status `429`, a `Retry-After` header with the number of seconds to wait, and an error body:

```json theme={null}
{
  "type": "https://docs.solidroad.com/api/errors/rate_limited",
  "title": "Rate limit reached",
  "status": 429,
  "detail": "Rate limit of 5000 requests per hour for this API key reached. Try again in 600 seconds.",
  "instance": "abc12-1793279628409-14eba17502cd",
  "code": "rate_limited"
}
```

Wait for the `Retry-After` seconds, then send the request again.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.