Skip to main content
Public read endpoints require no API key but are rate-limited per IP:
  • 240 requests a minute per IP globally (see the RateLimit-Limit header; always read the header rather than hard-coding it).
  • 10 requests/min on GET /v1/audit.csv (the bulk export, per ADR-0014).
  • GET /healthz is exempt; GET /readyz has its own 30 req/min per-IP budget (responses are cached for 2 s, so faster polling gains nothing).
Pegana’s own web app renders on its servers and is metered on separate, authenticated budgets (one for ordinary pages, one reserved for embeddable widgets), so its traffic never consumes the public per-IP budget above and public callers cannot opt into them. The window is a 60-second sliding counter, so your budget refills continuously as the previous window ages out — not in a single step at a fixed reset.

Headers on every response

You don’t have to guess your remaining budget — every response carries it, using the IETF standards-track RateLimit-* fields (mirrored as X-RateLimit-* for older clients):
Browser clients can read these cross-origin — they’re in the CORS expose-headers allowlist on the public read surface.

When you hit the limit

Exceeding the limit returns 429 with the JSON error envelope ({"error":"rate_limited"}) and a Retry-After header (seconds). Back off for that long, then resume.
Don’t hammer through 429s — back off on Retry-After. Sustained abuse past the limit just keeps you throttled.