Check Rate Limit using Okta Java API Client


I am using the Okta Java SDK to make API calls. I want to ensure my code respects the Okta API rate limit. The REST API returns the header ‘X-Rate-Limit-Remaining’ after each API call to inform the client of how many future requests they can make in the current window. Is it possible to access this header via the Java SDK?

I just answered a similar question in a GitHub issue:

This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.