Skip to content
Using the API

Rate limits

Understand the rate limits applied to Lightfield API requests.

The Lightfield API enforces rate limits to ensure fair usage and platform stability. During this early launch period, the following limits apply per organization:

CategoryMethod(s)Limit
WriteCreate, Update25 requests per second
ReadRetrieve, Definitions25 requests per second
SearchList25 requests per second

Every API response includes headers to help you track your current usage:

HeaderDescription
X-RateLimit-LimitMaximum requests allowed per second (bucket capacity)
X-RateLimit-RemainingNumber of requests remaining in the current window
X-RateLimit-ResetUnix timestamp (seconds) when the bucket will be fully replenished

When you exceed the rate limit, the API responds with HTTP status 429 Too Many Requests. The response includes a Retry-After header indicating how many seconds to wait before retrying.

HTTP/1.1 429 Too Many Requests
Retry-After: 1
X-RateLimit-Limit: 5
X-RateLimit-Remaining: 0
X-RateLimit-Reset: 1741392001
{
"type": "too_many_requests",
"message": "Rate limit exceeded. Please try again later."
}
  • Implement exponential backoff — When you receive a 429, wait for the duration specified in Retry-After, then retry with increasing delays on consecutive failures.
  • Monitor rate limit headers — Check X-RateLimit-Remaining proactively to throttle your requests before hitting the limit.
  • Cache reads — Avoid redundant GET requests by caching responses on your end when the data doesn’t change frequently.