# Limits

The numbers behind the [API terms of use](https://developers.mapit.me/terms.md). Mapit may change them to protect the service; this page always shows the current ones, and a change that is materially worse for you is announced as the terms describe.

> **Beta.** Limits may be tightened or relaxed while Mapit learns how the API is used.

## Requests

| Limit | Value |
| --- | --- |
| Per personal key or access token | 30 requests a minute, for both the REST API and the My Mapit connector (MCP). Over that, the API answers `429` with `Retry-After` in seconds. |
| Per IP address | 1,000 requests in 5 minutes. Requests from addresses on AWS's IP reputation list are blocked. |
| Sign-in pages, per IP address | 30 requests in 5 minutes to `/login` and `/oauth/register` on `login.mapit.me`. Over that, the request is refused with `429` for the rest of the window. |
| Following your vehicles | Ask `https://api.mapit.me/v1/status` at most once a minute. It returns every vehicle in one request. |

Short bursts above the per-key limit may be tolerated, but do not rely on them: Mapit may change limits, and tighten enforcement, at any time to protect the service.

Using several keys, accounts or addresses to get around these limits is not allowed.

## Keys, connections and tokens

| Item | How long it lasts |
| --- | --- |
| Personal key | One year from when you create it. Up to 10 keys per account. |
| App connection | 30 days after the app last renewed it, and never more than one year after you signed in. |
| Access token given to an app | 15 minutes. The app renews it on its own. |

You can delete a key or disconnect an app at any time at [login.mapit.me/connections](https://login.mapit.me/connections). It takes effect on the next request.

## Sign-in

| Item | Value |
| --- | --- |
| Sign-in session on the Mapit sign-in page | One hour. |
| Failed password attempts in one sign-in flow | 5\. The last one ends that flow and you start again from the app. |
| Failed password attempts per IP address | 20 in 15 minutes. Over that, sign-in is refused with `429` until the 15 minutes have passed. |
| Failed sign-in attempts are counted for | 15 minutes. |
