# API

## Access

Some API endpoints are temporarily closed to the public.

If you receive an **"Access denied."** error, contact us via [Community Chat](https://t.me/rainbow_swap_chat) to request a personal authorization token.

To authenticate requests add this header:

```
Authorization: Bearer your_auth_key
```

**Important:** This is your personal auth token. Do not share or open-source it, or your access may be revoked.

## Rate Limits

**Our API has a rate limit of 4 requests per second.**

To avoid exceeding this limit, please apply a minimum debounce time of 300 ms for `getBestRoute` requests. Failure to comply may result in a temporary 24-hour ban.

If you require higher limits, please contact us via the [Community Chat,](https://t.me/rainbow_swap_chat) and we can discuss increasing your rate limit.

## Specification

🚧 *Under construction...*


---

# Agent Instructions: 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:

```
GET https://rainbow-ag.gitbook.io/docs/technical/api.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
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.
