Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add rate limits info to docs #1836

Merged
merged 1 commit into from Mar 11, 2024
Merged

Conversation

TBonnin
Copy link
Collaborator

@TBonnin TBonnin commented Mar 11, 2024

Describe your changes

Adding docs to describe global rate limiting

Issue ticket number and link

https://linear.app/nango/issue/NAN-536/document-global-rate-limit

Copy link

linear bot commented Mar 11, 2024

- `X-RateLimit-Remaining` shows how many requests are remaining before the limit is reached.
- `X-RateLimit-Reset` provides a Unix timestamp representing the time at which the current rate limit window resets, and the remaining request count is replenished.

If a client exceeds the rate limit, the API will respond with a 429 `Too Many Requests` status code. In this case, the `Retry-After` header is included, indicating the number of seconds the client should wait before making another request to avoid being rate-limited.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No documentation about the actual limit?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The point of the headers is to specify the actual limit. It is easier not to mention the limit imho so docs doesn't have to be changed when we modify the limit or if we start implementing different limits for different endpoints/group of endpoints.

@TBonnin TBonnin force-pushed the tbonnin/NAN-536/document-rate-limits branch from 3880bf9 to 8dc9f2f Compare March 11, 2024 10:22
@TBonnin TBonnin enabled auto-merge (squash) March 11, 2024 10:24
@TBonnin TBonnin merged commit 1f5bb5c into master Mar 11, 2024
17 checks passed
@TBonnin TBonnin deleted the tbonnin/NAN-536/document-rate-limits branch March 11, 2024 10:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants