# 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..._
