> For the complete documentation index, see [llms.txt](https://developer.rogerroger.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://developer.rogerroger.io/getting-started/rate-limits.md).

# Rate limits

Request limits and error handling

To ensure stable performance and prevent misuse, our API enforces a rate limit per tenant, regardless of how many API keys a tenant uses.

#### How it works

* Each tenant is allowed up to 20 API requests per minute, across all their API keys combined.
* We use a sliding window strategy:
  * The system continuously tracks the number of requests made by a tenant over the last 60 seconds.
  * Requests are allowed as long as the tenant has not exceeded the 20-request limit within that moving window.
  * As soon as an older request drops out of the window, a new request is allowed.

#### Limit details

| Setting       | Value                   |
| ------------- | ----------------------- |
| Scope         | Per tenant              |
| Shared across | All API keys per tenant |
| Limit         | 20 request              |
| Window        | 1 minute (sliding)      |

#### When limit is exceeded

If a tenant exceeds the limit:

* The API responds with **HTTP 429 – Too Many Requests**.
* A `Retry-After` header is included in the response, indicating how long to wait before retrying.

#### Best practices

* Distribute requests evenly rather than sending many in bursts.
* If you receive a 429 error, pause requests based on the `Retry-After` header before retrying.
* Design your integration with automatic retry logic (e.g. exponential backoff) to handle throttling gracefully.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://developer.rogerroger.io/getting-started/rate-limits.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
