Rate limits
Per-principal request quotas, the current observation-only rollout state, and how to back off correctly.
The Acreum API limits the number of requests a single principal can make per minute. This page explains the tiers, the current rollout state, and how to back off correctly when you do hit a limit.
Current state: observed, not enforced
Rate limits are presently observed on the server but not enforced. Your requests
will not be rejected with 429 today. The numbers below are the targets that will become
enforced in a subsequent release. Build your client to honour them now so you do not
have to retrofit later.
Tiers
Each principal (session user or API key) is assigned one of two tiers:
| Tier | Default for | Requests / minute | Window |
|---|---|---|---|
default | API keys | 100 | 60-second fixed window |
elevated | Acreum app sessions | 600 | 60-second fixed window |
- Per principal, not per IP. Two API keys for the same organization each get their own count.
- Fixed window. A principal's window opens with its first request and its count resets once 60 seconds have passed since that request.
- Tier upgrades exist. Customers with high-throughput integrations can request the
elevated tier; contact support@acreum.io with the key id
(the
idfromGET /v1/api-keys, never the secret) and a description of the workload. Only Acreum staff can change a key'srate_limit_tier.
When enforcement turns on
Enforcement is not built yet, so the exact response is not final. The API already
registers a 429 RATE_LIMITED error code for it. Treat any 429 as a signal to back off,
honour a Retry-After header if one is present, and otherwise use exponential backoff
with jitter, as below.
Backoff strategy
async function callWithRateLimitBackoff(req: Request) {
for (let attempt = 0; attempt < 5; attempt++) {
const res = await fetch(req.clone());
if (res.status !== 429) return res;
const retryAfter = Number(res.headers.get('Retry-After'));
const delay = retryAfter
? retryAfter * 1000
: Math.min(30_000, 2 ** attempt * 1000) + Math.random() * 1000;
await new Promise((r) => setTimeout(r, delay));
}
throw new Error('rate limited after 5 attempts');
}Cap the total wait and surface the failure past it.
What counts as a request
Every authenticated request counts once, regardless of payload size or response status.
There is no read/write weighting. Public routes (/health, /metrics, /api,
/api-json, /docs) carry no principal and do not count.
Concurrency and polling
The limiter counts a request when it arrives, before it is handled, so in-flight calls count. For predictable throughput, cap concurrency client-side at roughly your tier.
If you poll a resource for updates:
- Cap polling at 30 calls per minute per resource.
- Back off on no change: if the resource has not changed in five polls, double your interval.
- Use list filters, not per-id polls.
GET /v1/documents?from_date=…&status=postedcovers many resources in one call.
Outbound webhooks are not yet available; polling is the supported path. The limiter is permissive enough that reasonable polling needs no accommodation.
Shared keys
Sharing one API key across many integrations means they share one quota. Issue one key per integration; the audit benefit is real and the rate-limit math gets simpler.