# Usage and limits

> How Naruska CRM counts usage, the headers that report it, and what happens near and over a limit.

Every plan has limits, so nothing can run up a surprise bill. Usage is counted from the first request and shown on every answer.

## What is counted

| Metric                | Kind          | Counts                                                                            |
| --------------------- | ------------- | --------------------------------------------------------------------------------- |
| `api.requests`        | monthly quota | API requests, the web app's included                                              |
| `mcp.tool_calls`      | monthly quota | tool calls from AI tools                                                          |
| `webhooks.deliveries` | monthly quota | webhook delivery attempts, retries and test events included                       |
| `quotes.pdf_renders`  | monthly quota | quote PDFs created, previews included                                             |
| `records.total`       | cap           | live records: contacts, organisations, deals, activities, notes, cases, campaigns |
| `credentials.active`  | cap           | active tokens, service-account credentials and API keys                           |
| `webhooks.endpoints`  | cap           | active webhook endpoints                                                          |
| `saved_views.total`   | cap           | saved views                                                                       |
| `storage.bytes`       | cap           | stored files, quote PDFs and the logo                                             |

A monthly quota resets at the start of each calendar month (UTC). A cap is a level you can't go over; it frees up when you delete something.

Your plan's limits and this month's usage: `GET https://staging-api.naruskacrm.com/v1/usage` (admins, or a token with `usage:read`), or ask your AI tool "how much of our limit have we used?".

## Headers on every answer

| Header                                               | Means                                                                                    |
| ---------------------------------------------------- | ---------------------------------------------------------------------------------------- |
| `X-Usage-Metric`                                     | the metric this request counted against, such as `api.requests`                          |
| `X-Usage-Limit`, `X-Usage-Used`, `X-Usage-Remaining` | the monthly quota, the amount used and what is left                                      |
| `X-Usage-Reset`                                      | when the quota resets                                                                    |
| `X-Usage-State`                                      | `ok`, `warning`, `grace`, `blocked`, or `unavailable` when usage can't be read right now |
| `X-Usage-Warning`                                    | `<metric>=95` from 95 %, `<metric>=100` from 100 %                                       |
| `RateLimit`, `RateLimit-Policy`                      | the same monthly quota in the standard rate-limit header format                          |

## Near and over a monthly quota

- **From 95 %** the answers carry `X-Usage-Warning`, and AI tools mention it in their result.
- **From 100 % to 105 %** everything keeps working (the grace band). `X-Usage-Remaining` is 0 and `X-Usage-State` is `grace`.
- **Above 105 %** metered actions stop with [`quota_exceeded`](/errors/quota_exceeded.md) until the quota resets. Reading your own data keeps working at a slower rate.

Caps have no warning and no grace: going over one is refused with [`cap_reached`](/errors/cap_reached.md).

## Short bursts

Besides the monthly quotas, requests per minute are limited per token and per company. Too many in a short time returns [`rate_limited`](/errors/rate_limited.md) with `Retry-After: 60`. Wait, then try again.
