Skip to main content

Rate limits

Requests are capped per API token at a fixed window — 120 requests per minute by default (configurable per deployment via LSGBIO_API_RATE_LIMIT_PER_MINUTE). Limits apply to the token, not the account: two tokens get two independent budgets.

Business accounts get ten times the base headroom — 1,200 requests per minute at the default base. The X-RateLimit-Limit header always carries the limit the request was actually held to, so a Business client sees 1,200, not 120. Never assume the limit is a constant; read the header.

Response headers​

Every response from /api/v1 carries:

HeaderMeaning
X-RateLimit-LimitMaximum requests per window — the applied limit after any plan multiplier
X-RateLimit-RemainingRequests left in this window
X-RateLimit-ResetUnix timestamp when the window resets

When you hit the limit​

The window's next request is refused:

// 429 (message names the applied limit — 1,200 on a Business account)
{ "error": { "code": "rate_limited",
"message": "Rate limit of 120 requests per minute exceeded." } }

…with a Retry-After header giving the seconds until the reset. Honor it: wait, then resume.

Per-endpoint budgets​

Some endpoints carry a second, narrower budget in front of the per-token window:

EndpointBudgetKeyed on
POST /links30 link creations per minuteThe account, not the token

The create budget is per account on purpose: it is the same 30/min the dashboard's create path spends, so an integration cannot raise its own ceiling by minting more tokens. Holding several tokens still leaves you at 30.

A request answered from the Idempotency-Key cache is not charged — a retry of something that already succeeded created no link, and charging it would make the feature punish the client it exists to serve. See safe retries.

Business headroom​

Business-tier accounts get ten times the base budget — 1,200 requests per minute by default. The limit actually applied rides the X-RateLimit-Limit header, so a client always sees the number it is held to rather than the base.

Designing around limits​

  • Batch over poll. Prefer one list call to fifty detail calls.
  • Back off exponentially on 429 and 5xx rather than retrying on a timer.
  • Watch X-RateLimit-Remaining and slow down before you are cut off, instead of after.
  • One token per integration keeps a chatty job from starving everything else sharing its budget.