# Rate limits and quota

> Per-IP, per-key and per-workspace rate limits and the monthly request quota of the Techvia TMS public API.

Source: https://techvia.software/docs/tms/concepts/rate-limits/

Every request meets these limits, in this order. A request refused by one does not run.

| Limit | Default | Applies to |
|---|---|---|
| Per IP | 3000 per minute | Every request to `/api/public/` and `/mcp` from one IP address, whatever the key. A flood ceiling, far above what one customer needs |
| Per key | 60 per minute | Each key on its own, every HTTP request (on `/mcp` too) |
| Per workspace | 120 per minute | All your workspace's keys together. More keys, or a new key in place of a revoked one, add no allowance |
| Monthly quota | Your plan's `api.requests` number (Pro 10,000, Pro AI 100,000) | All your workspace's keys together, per calendar month (UTC). Resets at 00:00 UTC on the 1st |

- `GET /api/public/v1/me` shows the quota used, the limit, the reset time and the rate limits that apply to you. It
  uses no unit itself.
- One request uses one unit of quota. Over MCP, one tool call uses one unit and meets the workspace limit; listing
  the tools and connecting use none (they meet the per-IP and per-key limits only). A request refused before it does any work uses none: a bad key (`401`), a
  missing scope or a feature not on your plan (`403`), a rate limit (`429`), a request that cannot be read (`400`,
  `406`, `415`), and a request that fails validation (`422` with `errors` for your input, for example an unknown
  `status` filter). Once the request starts its work, the unit is used whatever the answer: a `404` or `409`, a `422`
  from a rule about the current data (for example "This load is Completed"), or a server error.
- A replayed create (same `Idempotency-Key` or `client_request_id`, [Idempotency](/docs/tms/concepts/idempotency/)) uses no unit; it still meets the
  rate limits.
- At most 50 rows per page.
- The minute windows are fixed (they start on the minute). If our server restarts, a minute window can start over;
  the monthly quota cannot.
- Your account manager can set a different quota for your workspace.

Over a rate limit: `429` with `Retry-After` (seconds until the window ends). Back off and retry after that time.

```json
{
  "type": "https://api.techvia.com/errors/rate-limited",
  "title": "Too many requests",
  "status": 429,
  "detail": "This workspace's API rate limit (120 requests per 60 seconds, across all its keys) is used up. Retry after the indicated delay.",
  "instance": "/api/public/v1/loads",
  "code": "rate-limited",
  "scope": "workspace", "limit": 120, "windowSeconds": 60,
  "traceId": "00-..."
}
```

The per-key and per-IP limits answer before the key is checked, with the same `type` and `Retry-After` and no `code`
or `scope`.

Over the monthly quota: `429` with `Retry-After` (seconds until the reset). When your plan has no API requests at all
(quota 0), the `detail` says so: "This workspace's plan includes no API requests (monthly quota 0). Ask your
administrator to change the plan." That answer has no `Retry-After` and no `resetsAt`: waiting does not help.

```json
{
  "type": "https://api.techvia.com/errors/quota-exceeded",
  "title": "Quota exceeded",
  "status": 429,
  "detail": "This workspace's monthly API quota (10,000 requests) is used up. It resets at 2026-12-01T00:00:00Z.",
  "instance": "/api/public/v1/loads",
  "code": "quota-exceeded",
  "quota": "api.requests", "limit": 10000, "used": 10000, "resetsAt": "2026-12-01T00:00:00+00:00",
  "traceId": "00-..."
}
```
