Trying to update user attributes for ~200 agents via PUT /api/v2/users/{userId}. The script hits a wall with 429 Too Many Requests after about 50 calls. I’ve added a basic Thread.sleep(100) between requests, but the rate limiter still triggers. The response header x-ratelimit-reset is there, but parsing it in Kotlin feels clunky. Should I be checking 429 status and sleeping until the reset timestamp, or is there a better way to handle the rate limit without blocking the main thread?