> ## Documentation Index
> Fetch the complete documentation index at: https://docs.medera.info/llms.txt
> Use this file to discover all available pages before exploring further.

# Rate Limits

> Per-tenant and per-endpoint rate limits

| Endpoint family                                  | Production           | Dev / staging         |                                                 |
| :----------------------------------------------- | :------------------- | :-------------------- | ----------------------------------------------- |
| Read endpoints                                   | 100 req / min        | 10,000 req / min      |                                                 |
| Write endpoints                                  | 20 req / min         | 10,000 req / min      |                                                 |
| Auth (`/login`, `/register`, `/forgot-password`) | 10 req / 15 min      | 10 req / 15 min       |                                                 |
| Intake batch (`/api/intake/start-batch-call`)    | 10 req / min         | 10 req / min          |                                                 |
| `/api/pa/coding-suggest`                         | 200 req / min        | 10,000 req / min      |                                                 |
| Realtime WSS                                     | 50 sessions / tenant | 200 sessions / tenant | Enterprise tenants can request elevated limits. |

## Headers

```text theme={"system"}
Retry-After: 60
X-RateLimit-Limit: 100
X-RateLimit-Remaining: 0
X-RateLimit-Reset: 1735944600
```

## Subscription gating The

`requireActiveSubscription` middleware blocks agent / intake / therapy / copilot endpoints when the payment processor subscription is not active. `checkAgentLimit` enforces per-tier agent count.
