# Rate limits

> Each key can make 120 Passport checks in any rolling 60 seconds. What counts toward the limit, what a 429 looks like, and how to back off when you reach it.

Source: https://rentalpassport.app/docs/rate-limits

120 checks a minute, per key.

## The limit

| Limit | Window | Scope |
| --- | --- | --- |
| 120 Passport checks | Rolling 60 seconds | Per key |

## What counts

| Counts | Does not count |
| --- | --- |
| A successful `GET /api/v1/passports/{code}` | `GET /api/v1/usage` |
| A successful `verify_passport` MCP tool call | MCP `initialize`, `tools/list`, `ping`, `get_usage` |
| Repeat checks of the same renter | Refused calls (any 4xx) |

## At the limit

Once a key has 120 checks in the last 60 seconds, every call with that key is refused, on every endpoint, until the oldest check is more than 60 seconds old:

```json
{
  "error": {
    "code": "slow_down",
    "message": "Too many checks. The limit is 120 a minute for each key."
  }
}
```

The status is `429`. No `Retry-After` or rate limit headers are sent. The limit is checked once per request, when it arrives.

## Backing off

Wait, then retry. A short exponential backoff is enough:

```python
import os
import time
import requests

def check(code, tries=5):
    for attempt in range(tries):
        res = requests.get(
            f"https://rentalpassport.app/api/v1/passports/{code}",
            headers={"Authorization": f"Bearer {os.environ['RP_KEY']}"},
            timeout=10,
        )
        if res.status_code != 429:
            return res
        time.sleep(2 ** attempt)
    return res
```

Retry only `429`. Every other refusal needs a change before it can succeed. See [Errors](/docs/errors).

## Questions

### Is there a daily or monthly cap?

No. Past your first 5 free renters, each new renter needs an active card. See [Billing](/docs/billing).

### Do repeat checks of one renter cost more?

No. They count toward the rate limit, but a renter is billed at most once per calendar month.
