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

# Rate limits and pagination

> Per-credential request limits, the 429 response, Retry-After handling, and how list endpoints return results.

## Authenticated rate limits

Every request to `https://api.kmerhosting.com/v1/*` is counted against the credential that made it.

* **API keys** have a `rate_limit_per_minute` allowance. New keys start at **60 requests per minute**; the stored limit is between 1 and 600.
* **OAuth access tokens** (used by the hosted MCP server) have the same kind of per-minute allowance, 60 by default.
* The allowance uses a **fixed one-minute window** aligned to the clock minute, not a rolling window. The counter resets at the start of each minute.
* Every authenticated request counts, whether it is a read, a write, or an idempotent replay. Requests rejected for an invalid credential are not counted against a key.

Public [domain availability search](https://kmerhosting.com/docs/developer/domain-search-api.md) is separate: it is unauthenticated and limited per client IP.

## The 429 response

When the allowance for the current minute is used up, the API returns `429 Too Many Requests` and does not run the operation:

```http theme={null}
HTTP/1.1 429 Too Many Requests
Retry-After: 23
X-RateLimit-Limit: 60
X-RateLimit-Remaining: 0
X-Request-Id: 0b0f6f0e-5a45-4f2e-8d58-6a2a4f6b9c11
Content-Type: application/json; charset=utf-8

{
  "error": {
    "code": "rate_limit_exceeded",
    "message": "Too many requests. Try again in one minute.",
    "request_id": "0b0f6f0e-5a45-4f2e-8d58-6a2a4f6b9c11"
  }
}
```

| Header | Meaning |
| - | - |
| `Retry-After` | Whole seconds until the next one-minute window starts (1 to 60). |
| `X-RateLimit-Limit` | The per-minute allowance of the credential. |
| `X-RateLimit-Remaining` | Requests left in the window; always `0` on a 429. |

The rate-limit headers are sent on 429 responses only. Successful responses do not carry them, so track your own request rate if you need to stay under the limit.

## Handling a 429

1. Wait for `Retry-After` seconds, then retry. Add a little random jitter so many workers do not retry in the same instant.
2. For write requests, **reuse the same `Idempotency-Key`**. A rejected request did not run, so a retry with the same key is safe.
3. Spread bulk jobs over time or lower your concurrency rather than retrying in a tight loop.

The official SDKs (version 0.4.0 and later) retry 429, 502, 503, and 504 automatically with exponential backoff and jitter, honor `Retry-After`, and reuse the idempotency key. See [SDKs](https://kmerhosting.com/docs/developer/sdk.md).

## Pagination

The authenticated API does not currently define pagination parameters. There is no `page`, `limit`, or cursor parameter, and responses carry no `next` link.

* List endpoints such as `/v1/services`, `/v1/email/services`, `/v1/hosting/services`, and `/v1/kvm/instances` return the complete collection for your account in `data`, newest first.
* `/v1/account/api-usage` returns at most the **500 most recent** requests, newest first. Older activity is available in the Dashboard activity view.
* Domain, DNS, LXC, and snapshot lists are served by the underlying product services and return the collection for the requested resource.

If pagination is added later it will be introduced as optional parameters so existing integrations keep working. See [Versioning and deprecation](https://kmerhosting.com/docs/developer/versioning.md).


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