Rate limits
PreviewEach API key can make 600 requests per minute; response headers tell you how much of the budget is left.
Preview
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
| Limit | Window |
|---|---|
| 600 requests | per minute, per API key |
Every request counts, including requests that fail validation.
Rate limit headers
Every response includes headers that describe the current window:
| Header | Description |
|---|---|
X-RateLimit-Limit | The number of requests allowed in the window (600). |
X-RateLimit-Remaining | Requests left in the current window. |
X-RateLimit-Reset | When 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: 1795361460When 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/bulkandPOST /api/v1/companies/bulkcreate many records in one request. - Page with large
limitvalues instead of many small pages. - Pace background jobs using
X-RateLimit-Remainingrather 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.
Last updated on