Rate limiting
Rate limits are restrictions that our API imposes on the number of times a user can access our endpoints within a specified period of time.
To ensure the stability and reliability of our platform, we have implemented rate limiting on API endpoints. These rate limits are designed to prevent misuse and overloading of the API. Following these limits helps maintain optimal performance and availability for all users of the platform.
Bob's API rate limit determines how many API calls can be made per minute. For example, thev1/people/search
endpoint allows 50 requests per minute. If you exceed this limit, you'll get an HTTP status code of 429, meaning too many requests.
Rate limits per endpoint
Jump to review rate limits per endpoint.
Rate limiting best practices
By following some best practices, you can efficiently manage your API usage and avoid disruptions due to rate limiting.
- Understand limits: Familiarize yourself with the rate limits for each API endpoint. Check the API documentation regularly for updates.
- Optimize requests: Optimize your requests to minimize the number of API calls. Use bulk operations when available to reduce the frequency of requests.
- Handle rate limit errors: Implement error handling for rate limit responses (e.g., HTTP 429 Too Many Requests) and check rate limit headers to include retry logic after the specified delay.
- Monitor usage: Continuously monitor your API usage to ensure you stay within limits. Set up alerts to notify you when you're approaching rate limits.
- Distribute requests: If possible, distribute your requests evenly over time rather than sending large bursts of requests.
- Cache responses: Cache responses when possible to reduce the need for repeated requests for the same data.
Utilize rate limit headers
In addition to seeing your rate limit on your account page, most Bob endpoints send important information about your rate limits such as the remaining limits, in the headers of the HTTP response. These headers provide information about your current usage and remaining quota.
You can expect to see the following header fields:
X-RateLimit-Limit
: The total number of requests allowed within a specific time frame.X-RateLimit-Remaining
: The number of requests you have left in the current rate limit window.X-RateLimit-Reset
: The time when the rate limit window resets, given in Unix epoch time.
Check the rate limit headers when integrating with Bob empowers you to regularly monitor usage, handle limits gracefully with a retry mechanism to pause requests until the limit resets, and optimize your requests to reduce unnecessary calls to stay within limits and ensure efficient API usage.
Rate Limits per endpoint
To learn more about the rate limits for each endpoint, click the relevant link below..
API Category | Rate Limiting Link |
---|---|
People | People endpoints rate limits |
Onboarding | Onboarding endpoints rate limits |
Reports | Reports endpoints rate limits |
Tasks | Tasks endpoints rate limits |
Metadata | Metadata endpoints rate limits |
Time off | Time off endpoints rate limits |
Attendance | Attendance endpoints rate limits |
Payroll | Payroll endpoints rate limits |
Documents | No rate limits are implemented at the moment |
Hiring | Hiring endpoints rate limits |
Employee Tables | Employee tables endpoints rate limits |
Custom Tables | Custom tables endpoints rate limits |
Workforce Planning | Workforce Planning endpoints rate limits |
Updated 4 months ago