Varying x-ratelimits

We have an application that talks to the management API to update some user account values. After each call we get the current x-ratelimits, so we know when to pause a bit to not go past the limits. This worked fine until the 5th of Februari, when suddenly the limit value keeps getting changed in the middle of the running process, like so:

Feb  5 12:48:04 webserv0 auth0-user-list[143972]: x-ratelimits: limit: 1000; remaining: 986; reset: 2025-02-05T12:49:02+01:00
Feb  5 12:48:04 webserv0 auth0-user-list[143972]: Key(s) updated for: auth0|...
Feb  5 12:48:04 webserv0 auth0-user-list[143972]: Updating: auth0|...
Feb  5 12:48:04 webserv0 auth0-user-list[143972]: x-ratelimits: limit: 10; remaining: 0; reset: 2025-02-05T12:48:05+01:00
Feb  5 12:48:04 webserv0 auth0-user-list[143972]: Got http-code: 429, Response txt: '{"statusCode":429,"error":"Too Many Requests","message":"Global limit has been reached","errorCode":"too_many_requests"}'
Feb  5 12:48:04 webserv0 auth0-user-list[143972]: Updating: auth0|...
Feb  5 12:48:04 webserv0 auth0-user-list[143972]: x-ratelimit sleep
Feb  5 12:48:05 webserv0 auth0-user-list[143972]: x-ratelimits: limit: 1000; remaining: 985; reset: 2025-02-05T12:49:02+01:00
Feb  5 12:48:05 webserv0 auth0-user-list[143972]: Key(s) updated for: auth0|...
Feb  5 12:48:05 webserv0 auth0-user-list[143972]: Updating: auth0|...

So the limit changes from 1000 to 10, and of course the process is suddenly over this reduced limit and gets an error response. This seems like a bug in the management API, because it used to work perfectly fine before this dateā€¦

Hi @wilfred

Welcome to the Auth0 Community!

The initial x-ratelimit value that you is presented, would be the total number of requests which you can make per minute to the Management API.

The second x-ratelimit that is presented in your logs would be the limit of requests which you can make per second. Usually, you can make 2 requests per second up to bursts of 10 requests, which you appear to have exceeded, which results in the Error 429.

You can read more about burst limits here and about rate limits here.

If you have any other questions, feel free to let me know!

Kind Regards,
Nik