Documentation Index
Fetch the complete documentation index at: https://docs.lilury.com/llms.txt
Use this file to discover all available pages before exploring further.
Rate limits
The Lilury API limits how many requests a single client IP can make per second. This keeps the API stable and fair for all users.The limit
| Dimension | Value |
|---|---|
| Requests per second | 25 |
| Measured by | Client IP address |
| Scope | All endpoints |
The 429 response
When you exceed the limit, the API returns 429 Too Many Requests. Unlike most error responses, the body is empty — there is no JSON error object.
Retry-After header. Use a brief fixed pause or exponential backoff before retrying.
Handling a 429
The correct response to a 429 is to slow down and retry. A safe pattern:
- Detect the
429status code. - Wait at least 1 second before retrying.
- Resend the original request unchanged.
- If you receive another
429, increase the wait time (exponential backoff).
Staying within the limit
25 requests per second is more than enough for typical integrations. You are most likely to hit the limit if you are:- Bulk importing data — sending many create requests in a tight loop.
- Parallelizing too aggressively — running many concurrent workers against the same IP.
- Polling too frequently — checking for changes in a tight loop instead of on a schedule.
50ms sleep between requests keeps throughput at 20 req/s — well under the limit — with negligible impact on total runtime.
Use a queue for bulk imports. Process items from a queue with a controlled concurrency and rate. This decouples the speed of data ingestion from the speed of the API.
Avoid tight polling loops. If you need to monitor for changes, poll on a reasonable interval (every few seconds) rather than as fast as possible.
Limits do not reset idempotency keys
Rate limit rejections (429) are not cached by the idempotency system. If a request is rejected because of the rate limit, you can retry it with the same Idempotency-Key once the rate limit window passes. See Idempotency for details.