Genesys API 429 errors on bulk user PATCH

Hitting 429 Too Many Requests constantly when running a bulk update script against the /api/v2/users/{userId} endpoint. The rate limit headers are there, but my current retry logic isn’t catching the reset window correctly.

Anyone got a solid snippet for exponential backoff in Python that actually respects the Retry-After header? Current implementation is just sleeping for fixed intervals and failing hard.

  • Drop the time.sleep hack. Parse response.headers.get("Retry-After") and pass it directly to time.sleep() or urllib3.util.retry.
  • If the header is missing, fallback to 2 ** attempt * 0.5 seconds.
  • Genesys rate limits are strict on user endpoints. Respect the header or get banned.