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

# API rate limits

> Understand OMOPHub API rate limits per plan, how to read throttling response headers, and how to request higher quotas for production workloads.

The response headers, when present, describe your current rate limit in conformance with the [IETF standard](https://datatracker.ietf.org/doc/html/draft-ietf-httpapi-ratelimit-headers):

| Header name | Description |
| - | - |
| `ratelimit-limit` | Maximum number of requests allowed within the sustained window. |
| `ratelimit-remaining` | How many requests can be admitted by both active windows; this is the lower of the sustained and burst remaining. |
| `ratelimit-reset` | Countdown in seconds until the oldest request leaves the window currently constraining admission. |
| `ratelimit-window` | The sustained window size in seconds. |
| `ratelimit-policy` | The enforced `burst` and `sustained` policies, including each quota (`q`) and window (`w`). |
| `retry-after` | How many seconds you should wait before making a follow-up request. |

The Free plan is enforced by two sliding windows:

* A 60-second sustained window containing the plan's full request budget.
* A 10-second burst window. Its quota is one sixth of the sustained budget,
  rounded down and capped at 1,000 requests.

The quota is scoped to one API key across the API. Requests to different REST
or FHIR paths consume the same bucket, as do different query strings and pages.
Different API keys have independent buckets. When no API key is present, the
equivalent authenticated-user or IP identity is used instead.

For example, the default Free allowance is 120 requests per 60 seconds with 20
requests per 10 seconds. Its policy header is:

```http theme={null}
ratelimit-policy: "burst";q=20;w=10,"sustained";q=120;w=60
```

A key-specific override or temporary safety reduction can instead produce an
effective sustained limit of 24 requests per minute with a burst policy of 4
requests per 10 seconds. This is not the normal Free policy. After the fourth
tightly grouped request, `ratelimit-remaining` is `0` even though the sustained
window still has 20 requests available. Wait for burst capacity before sending
another request.

That key's corresponding effective policy header is:

```http theme={null}
ratelimit-policy: "burst";q=4;w=10,"sustained";q=24;w=60
```

`ratelimit-reset` is a delta-seconds countdown, not the configured window size
or a Unix timestamp. During a burst rejection it describes the burst window;
during a sustained rejection it describes the sustained window. `retry-after`
uses the same recovery delay on a `429` response.

## Rate Limit Responses

Rate limits by plan:

| Plan | Sustained quota | Burst quota | Average sustained rate |
| - | - | - | - |
| Free | 120 per 60s | 20 per 10s | 2 requests/second |
| Pro | No limits | No limits | No limits |
| Scale | No limits | No limits | No limits |
| Business | No limits | No limits | No limits |
| Private Cloud | Deployment-specific | Deployment-specific | Deployment-specific |

The Free per-second value is an average, not a separate one-second bucket.
Free burst traffic is governed by the 10-second quota.

The table gives the default plan policy.
The `ratelimit-policy` and `ratelimit-limit` response headers are authoritative
for the key making the request. Private Cloud operators can configure or
disable the limiter for their deployment.

See [Pricing](https://omophub.com/pricing) for the full plan comparison, including monthly call quotas.

If you exceed your rate limit, you'll receive a `429` response. Reduce the rate at which you request the API, for example by introducing a queue or reducing the number of concurrent requests.

The response body identifies which policy rejected the request and reports that
policy's quota, window, and current reset countdown:

```json Burst rejection theme={null}
{
  "success": false,
  "error": {
    "code": "rate_limit_exceeded",
    "message": "Too many requests for the active rate-limit window. Retry after the advertised delay.",
    "details": {
      "limit": 4,
      "reset_time": 7,
      "tier": "burst",
      "window": 10
    }
  },
  "meta": {
    "request_id": "req_01JABCDEF1234567890",
    "timestamp": "2026-09-13T12:00:00.000Z"
  }
}
```

```json Sustained rejection theme={null}
{
  "success": false,
  "error": {
    "code": "rate_limit_exceeded",
    "message": "Too many requests for the active rate-limit window. Retry after the advertised delay.",
    "details": {
      "limit": 24,
      "reset_time": 38,
      "tier": "sustained",
      "window": 60
    }
  },
  "meta": {
    "request_id": "req_01JABCDEF1234567890",
    "timestamp": "2026-09-13T12:00:00.000Z"
  }
}
```

If your workload needs a custom arrangement outside these plans, [contact support](https://omophub.com/contact).


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.