> For the complete documentation index, see [llms.txt](https://argos-ci.com/docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://argos-ci.com/docs/api-reference/rate-limits.md).

# Rate limits

To keep the API fast and reliable for everyone, Argos limits how many requests you can make in a given window.

## The limit

The default rate limit is **500 requests every 5 minutes**, applied per token.

If you exceed it, the API responds with a [`429 Too Many Requests`](/docs/api-reference/errors.md) status code and rejects the request until the window resets.

## Rate limit headers

Every response includes [standard rate limit headers](https://datatracker.ietf.org/doc/draft-ietf-httpapi-ratelimit-headers/) so you can track your usage without guessing:

| Header                | Description                                                   |
| --------------------- | ------------------------------------------------------------- |
| `RateLimit-Limit`     | The maximum number of requests allowed in the current window. |
| `RateLimit-Remaining` | The number of requests remaining in the current window.       |
| `RateLimit-Reset`     | The number of seconds until the window resets.                |

When you receive a `429` response, a `Retry-After` header tells you how many seconds to wait before retrying.

## Handling 429 responses

The recommended way to deal with rate limits is to **respect the `Retry-After` header** and back off before retrying. Here's a small helper that retries a request once it's allowed:

```js
async function requestWithRetry(url, options) {
  while (true) {
    const response = await fetch(url, options);

    if (response.status !== 429) {
      return response;
    }

    const retryAfter = Number(response.headers.get("Retry-After")) || 1;
    await new Promise((resolve) => setTimeout(resolve, retryAfter * 1000));
  }
}
```

{% hint style="info" %}
To stay well under the limit when processing large amounts of data, increase your [page size](/docs/api-reference/pagination.md) and avoid firing requests concurrently. Spacing requests out is almost always more reliable than retrying after a `429`.
{% endhint %}

## Need a higher limit?

If your integration consistently bumps into the rate limit, [contact support](https://argos-ci.com/contact) to discuss your use case.


---

# 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 dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://argos-ci.com/docs/api-reference/rate-limits.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
