The Leonar API enforces rate limits to ensure fair usage and platform stability.
Limits
| Metric | Limit |
|---|
| Requests per hour | 2,000 per API key |
Exception — POST /sourcing/advanced/profiles/search is not subject to
the global per-API-key rate limit. Throughput on that endpoint is gated solely
by the workspace’s sourcing credit balance (one credit consumed per profile
returned). Standard X-RateLimit-* response headers are not returned for
that endpoint.
Every API response includes rate limit headers:
| Header | Description |
|---|
X-RateLimit-Limit | Maximum requests allowed per hour |
X-RateLimit-Remaining | Remaining requests in the current window |
X-RateLimit-Reset | Unix timestamp when the limit resets |
Handling rate limits
When you exceed the limit, the API returns a 429 status code:
Best practices:
- Check
X-RateLimit-Remaining before making requests
- Use exponential backoff when you receive a
429
- Cache responses when possible to reduce API calls
- Use bulk endpoints (e.g., sequence enrollment accepts multiple contact IDs)