# A Request Budget for Every Key

> Every key gets a request budget over a sliding one-minute window, 60 requests a minute by default. How the limits work and how to change them.

Every key gets a request budget, measured over a sliding one-minute window. The default is 60 requests a minute per key, and every skill call, over REST, the SDKs, the CLI or MCP, draws on the same budget.

The defaults are conservative. You can raise or lower the limit on any key yourself, without asking anyone.

Which limit applies

## Three Settings, First One Wins

Archie checks three settings in this order and uses the first one that is set.

Per key: rate_limit_per_minute

Set by you

Set with client.keys.update in the Python SDK, or PATCH /api/v1/connect-keys/{key_id}. Overrides the other two.

Per organisation

Set by Archie

An org-wide raise that applies to every new key. Ask Archie. Overrides the default.

Default

60 a minute

Applies when neither override is set.

Park a key without revoking it

Set rate_limit_per_minute to 0 and the key refuses every request until you change it back. Set it to null to clear the override, and the key falls back to the organisation limit or the default.

Other limits

## Surfaces With Their Own Limit

Beyond the per-key budget, a few surfaces have limits of their own.

Live event streams

3 at once, per workspace

Open streams on /api/v1/workstreams/cycles/{id}/events. A fourth answers 429.

Per firm

120 a minute

All of a firm's keys together, on skill calls.

MCP

300 a minute

Calls to https://uk.heyarchie.com/mcp, per person.

From code

## Set a Limit With the SDK

Needs heyarchie 1.2.0 or later. The server clears its per-key cache when the limit changes, so the next request through that key sees the new limit. There is no five-minute delay.

python

```
from heyarchie import Archie

client = Archie(api_key="sk_...", base_url="https://uk.heyarchie.com")
client.keys.update("api_key_01KRVGB…", rate_limit_per_minute=30)
# Next request through that key sees the new cap immediately.
```

On a throttled MCP call

## Rate-Limit Headers

Rate-limit headers are not sent on every response. A skill call over REST that goes over the limit carries Retry-After, in seconds. The MCP server's own per-person limit also sends these three headers with its 429.

X-RateLimit-Limit

integer

The budget for the window: the per-key override if set, else the organisation or default.

X-RateLimit-Remaining

integer

How many requests you have left in the current window.

X-RateLimit-Reset

Unix seconds

When the window rolls over.

When you go over

## A Throttled Response

Going over the limit returns HTTP 429 with the standard error envelope and a Retry-After header in seconds. The code is RATE_LIMIT.USER when the per-key or default limit fires, and RATE_LIMIT.ORG when an organisation-wide override fires, or when the whole organisation goes over its shared budget of 120 requests a minute across all its keys.

text

```
HTTP/1.1 429 Too Many Requests
Content-Type: application/json
Retry-After: 23

{
  "error": {
    "type": "api_error",
    "code": "RATE_LIMIT.USER",
    "message": "Rate limit exceeded for 'key api_key_01…': 30 requests per 60s",
    "correlation_id": "4f1c…"
  },
  "correlation_id": "4f1c…"
}
```

Retry pattern

## Back off and Try Again

The SDKs retry a 429 once for you; the CLI does not. In your own client, back off exponentially and never wait less than Retry-After. On a write skill such as workstream.run or workstream.cancel, retry with the same idempotency_key as the original request, so Archie returns the original cycle id instead of starting a duplicate.

python

```
import time, random, httpx

def call_with_retry(url, headers, payload, max_attempts=5):
    delay = 1.0
    for attempt in range(max_attempts):
        r = httpx.post(url, headers=headers, json=payload)
        if r.status_code != 429 or "RATE_LIMIT" not in r.text:
            return r
        sleep_for = max(int(r.headers.get("Retry-After", "0")), delay) + random.random()
        time.sleep(sleep_for)
        delay = min(delay * 2, 30.0)
    raise RuntimeError(f"Still rate-limited after {max_attempts} attempts")
```

Free to call

## What Never Counts Against You

These calls are not counted against any key's budget.

Skill Catalogue Listing

GET /api/v1/skills is cached and free.

OpenAPI Spec

/openapi.json is static.

Health Check

/health is always open.

OAuth Discovery and Registration

Not counted against a key. Sign-in and registration have their own hourly limits.

Next

### Authentication

Bearer keys, scopes and where keys live.

### WorkStreams

Use idempotency_key when a retry lands on a cycle.

### SDKs

Handle throttling and Retry-After for you.

### Error Handling

The error envelope and its codes.

On this page

[Three Settings, First One Wins](https://heyarchie.com/en-gb/developers/rate-limits/#s-which-limit-applies)[Surfaces With Their Own Limit](https://heyarchie.com/en-gb/developers/rate-limits/#s-other-limits)[Set a Limit With the SDK](https://heyarchie.com/en-gb/developers/rate-limits/#s-from-code)[Rate-Limit Headers](https://heyarchie.com/en-gb/developers/rate-limits/#s-on-every-response)[A Throttled Response](https://heyarchie.com/en-gb/developers/rate-limits/#s-when-you-go-over)[Back off and Try Again](https://heyarchie.com/en-gb/developers/rate-limits/#s-retry-pattern)[What Never Counts Against You](https://heyarchie.com/en-gb/developers/rate-limits/#s-free-to-call)
