Default Rate Limits
Most endpoints use the following default rate limits:| Environment | Limit | Refill Period | Initial Size |
|---|---|---|---|
| Sandbox | 100 requests | 1 second | 100 requests |
| Production | 500 requests | 1 second | 100 requests |
Rate Limit Headers
Rate limits should never be approached for normal customer read operations, and are only intended to limit heavy data ingestion processes, such as en-masse backfills of data. Nonetheless, we recommend adding retries on all Layer API calls. To assist in retries, the following headers are included in every successful API request:X-RateLimit-Limit: a specified bucket capacity.X-RateLimit-Remaining: the number of tokens remaining in a bucket.X-RateLimit-Reset: a UTC timestamp (in seconds) that specifies the time of refilling a bucket.
- Error code
429: Too Many Requests Retry-Afterheader indicating (in seconds) how long to wait before retrying the request.