Kylas API Rate Limit :-
The rate limits for each user type are as follows:
Type | Rate limit |
Web / Mobile User | 10 requests per second |
API Key | 5 request per second |
Marketplace Apps | 10 requests per second |
Web Users or Mobile App interact with the Sales CRM platform through the UI interface. API requests made are subject to the rate limit of 10 requests per second.
User access platform programmatically using an API key. This API key have a rate limit of 5 requests per second to balance usage across the system.
Marketplace App Users utilize the platform via integrations with marketplace applications. These Marketplace apps have the highest rate limit of 10 requests per second to accommodate high-volume interactions.
Rate Limit Enforcement :
Response Code: When a user exceeds their rate limit, the API responds with 429 Too Many Requests.
Headers Provided: The following headers are included to help users monitor their rate limit status:
X-RateLimit-Replenish-Rate: The number of tokens added per second (e.g., 10).
X-RateLimit-Burst-Capacity: The maximum number of requests that can be made in a short burst (e.g., 20).
X-RateLimit-Remaining: The number of requests remaining in the current window (e.g., 19).
X-RateLimit-Requested-Tokens: The number of tokens consumed by the current request (e.g., 1).
X-RateLimit-Retry-After: The time (in seconds) after which a request can be retried (e.g., 1).
Real-time Monitoring: Users can monitor their API usage via the dashboard provided in their account settings.
Best Practices for Users :
Batch Requests: Optimize your API usage by batching requests wherever possible.
Respect Limits: Design your applications to respect the rate limits for your user type.
Exponential Backoff: Implement retry logic with exponential backoff to handle 429 Too Many Requests responses gracefully.