Skip to Content

Rate limits

Preview

Each API key can make 600 requests per minute; response headers tell you how much of the budget is left.

Preview

This feature is in preview. The contract documented here is stable enough to build against, but details may still change before general availability.

The Luso8 API limits how many requests each API key can make so that one integration cannot slow down a workspace. Limits are counted per key, not per workspace or IP address.

The limit

LimitWindow
600 requestsper minute, per API key

Every request counts, including requests that fail validation.

Rate limit headers

Every response includes headers that describe the current window:

HeaderDescription
X-RateLimit-LimitThe number of requests allowed in the window (600).
X-RateLimit-RemainingRequests left in the current window.
X-RateLimit-ResetWhen the window resets, as a Unix timestamp in seconds.
HTTP/1.1 200 OK
Content-Type: application/json
X-RateLimit-Limit: 600
X-RateLimit-Remaining: 587
X-RateLimit-Reset: 1795361460

When you exceed the limit

Requests over the limit are rejected with 429 Too Many Requests and a Retry-After header with the number of seconds to wait:

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

{ "detail": "Rate limit exceeded" }

Handling 429 responses

Wait for Retry-After seconds, then retry. If the header is missing, back off exponentially with jitter. Cap the number of attempts so a stuck job fails loudly instead of looping.

async function luso8Fetch(url, init = {}, maxAttempts = 5) {
  for (let attempt = 1; ; attempt++) {
    const res = await fetch(url, {
      ...init,
      headers: { Authorization: `Bearer ${process.env.LUSO8_API_KEY}`, ...init.headers },
    });
    if (res.status !== 429 || attempt === maxAttempts) return res;

    const retryAfter = Number(res.headers.get('Retry-After'));
    const delayMs = Number.isFinite(retryAfter) && retryAfter > 0
      ? retryAfter * 1000
      : Math.min(30_000, 500 * 2 ** attempt) + Math.random() * 250;
    await new Promise((resolve) => setTimeout(resolve, delayMs));
  }
}

Staying under the limit

  • Use bulk endpoints. POST /api/v1/contacts/bulk and POST /api/v1/companies/bulk create many records in one request.
  • Page with large limit values instead of many small pages.
  • Pace background jobs using X-RateLimit-Remaining rather than sending bursts.
  • Cache reads that change rarely, such as lists, ticket categories and agents.
  • Split unrelated integrations across keys, so a backfill does not starve a real-time sync.

Need a higher limit for a large migration? Email hello@rexplore.ai with your workspace name and expected volume.

Edit on GitHub

Last updated on

On this page