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 X-Rate-Limit headers to mint responses #233

Open
Egge21M opened this issue Mar 4, 2025 · 1 comment
Open

Add X-Rate-Limit headers to mint responses #233

Egge21M opened this issue Mar 4, 2025 · 1 comment

Comments

@Egge21M
Copy link
Contributor

Egge21M commented Mar 4, 2025

As rate limiting access to mint endpoints is a very common practice it might make sense to communicate these limits clearly to API consumers. This makes sure that wallets and services do not run into these limits by accident.

While there is an active draft to standardise these headers, as of right now there is only the following defacto standard:

X-Rate-Limit-Limit - the rate limit ceiling that is applicable for the current request.
X-Rate-Limit-Remaining - the number of requests left for the current rate-limit window.
X-Rate-Limit-Reset - the time at which the rate limit resets, specified in UTC epoch time (in seconds).

@ok300
Copy link
Contributor

ok300 commented Mar 4, 2025

A good reference, with examples, is: https://developer.okta.com/docs/reference/rl-best-practices/

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

No branches or pull requests

2 participants