amoniacou / pipedrive.rb

Pipedrive.com API Wrapper
MIT License
33 stars 56 forks source link

Rate limiting info #1

Open simonoff opened 9 years ago

simonoff commented 9 years ago

Rate limiting

Rate limiting is is considered per API token. API allows to perform 100 requests per 10 seconds. Every API response includes the following headers: X-RateLimit-Limit: the amount of requests current API token can perform for the 10 seconds window. X-RateLimit-Remaining: the amount of requests left for the 10 seconds window. X-RateLimit-Reset: the amount of seconds before the limit resets. In case the limit is exceeded for the time window, the Pipedrive API will return an error response with HTTP code 429 and Retry-After header that will incicate the amount of seconds before the limit resets.