<!-- KeepSnappy docs for keepsnappy CLI 0.1.0-alpha.35 -->

# Limits

> The limits your team can reach during the pilot, with each default value, what you see and what to do.

This page lists the limits your team can reach while you use KeepSnappy. They cover how often you can call KeepSnappy and how big a session and its uploads can be.

These limits are the same for every app, and no plan or price changes them. This page shows their default values. KeepSnappy can set some of them differently, and may change them later.

## When you reach a limit

KeepSnappy answers with an error in JSON. The `error` field holds a code, such as `rate_limited`, and `request_id` identifies the request. Include the `request_id` when you report an error.

Past a limit per minute or per hour, the answer is HTTP 429 with a `Retry-After` header: the seconds to wait. The `keepsnappy` command waits that long, up to 60 seconds, and sends the request again, up to 5 times. Past a size limit, the answer is HTTP 413.

## Limits you may reach

| Limit | Default | What you see | What to do |
| --- | --- | --- | --- |
| Requests per key | 120 a minute for each CI key, SDK key and read key, and for each run's upload | 429 `rate_limited` | The `keepsnappy` command waits and retries by itself. A script of your own should wait for `Retry-After`. Run fewer jobs at once with one key. |
| Failed key checks | 30 a minute from one network address | 429 `rate_limited`, before the key is checked | Fix the key first ([Keys](https://keepsnappy.com/docs/keys.md)), then wait a minute. |
| Dashboard calls | 1,800 a minute per person, and 1,000 a minute on the heavier pages | 429 `rate_limited` | Close the tab or stop the script that loops. |
| Runs per journey in a session | 5 (`repetitions` in `keepsnappy.yml`, or `--repeat`). Any whole number from 1. | Nothing: this is how many runs the session tries | Keep it at 3 or more. A result needs 3 valid runs on each side ([How a result is decided](https://keepsnappy.com/docs/results.md)). |
| AI investigation and fix runs | 5 per app per UTC day (`on_alarm.max_runs_per_day`), at most 50. KeepSnappy counts them across all your CI jobs. | "Daily limit reached (5 of 5 investigations today)", and the other alarms are not investigated | Wait for 00:00 UTC, or raise `max_runs_per_day` ([AI investigation and fixes in CI](https://keepsnappy.com/docs/ai-act.md#set-the-policy)). |
| AI answers stored | 500 per app per UTC day | 429 `rate_limited`, with the message "this app stored 500 AI proposals today, the most one app may store per UTC day" (a proposal is an AI answer) | Wait for 00:00 UTC. |
| Mac app keys | 10 new keys an hour per app, and 60 an hour per person. The Mac app makes a new key when you sign in and when it restarts. At most 3 keys per person and app work at once: signing in on a fourth Mac stops your oldest key. | 429 `rate_limited`, with the message "too many device keys minted for this account" (a device key is a Mac app key) | Wait for `Retry-After`. |

## Limits for your own scripts

Most teams never reach these. They matter mostly if you send data to the KeepSnappy API with scripts of your own.

| Limit | Default | What you see | What to do |
| --- | --- | --- | --- |
| Request body | 1 MiB (1,048,576 bytes), before and after gzip | 413 `payload_too_large`, "body exceeds 1048576 bytes" | Send less in one request. |
| Measurements per batch | 500 | 413 `too_many_items` | Send fewer measurements in one batch. |
| Step markers per batch | 500 markers and 256 KiB. A single marker sent on its own: 16 KiB. | 413 `too_many_items`, "more than 500 markers", or 413 `payload_too_large` | Send the markers in more batches. |
| Profile files per run | 500 | 413 `too_many_items`, "a run takes at most 500 files" | Nothing. Files past the 500th are not stored. |
| Size of one profile file | 64 MiB unpacked, and 50 MiB as uploaded | 413 `payload_too_large`, "file exceeds 67108864 bytes" | Nothing. That file is not stored. |
| Shared result link reads | 60 a minute from one network address | 429 `rate_limited` | Wait for `Retry-After`. |

## How long data is kept

[Your data](https://keepsnappy.com/docs/data.md#how-long-data-is-kept) says how long KeepSnappy keeps each kind of data. [Leaving KeepSnappy](https://keepsnappy.com/docs/leaving.md) says how to ask for deletion.

All KeepSnappy docs for agents: https://keepsnappy.com/llms.txt
