A Request Budget for Every Key
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.
Three Settings, First One Wins
Archie checks three settings in this order and uses the first one that is set.
Set with client.keys.update in the Python SDK, or PATCH /api/v1/connect-keys/{key_id}. Overrides the other two.
An org-wide raise that applies to every new key. Ask Archie. Overrides the default.
Applies when neither override is set.
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.
Surfaces With Their Own Limit
Beyond the per-key budget, a few surfaces have limits of their own.
Open streams on /api/v1/workstreams/cycles/{id}/events. A fourth answers 429.
All of a firm's keys together, on skill calls.
Calls to https://uk.heyarchie.com/mcp, per person.
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.
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.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.
The budget for the window: the per-key override if set, else the organisation or default.
How many requests you have left in the current window.
When the window rolls 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.
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…"
}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.
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")What Never Counts Against You
These calls are not counted against any key's budget.