Added
Added rate limit headers
10 months ago by Gusto Developer Relations
Added additional rate limit data to API response headers. The following headers are now available to use when handling rate limiting programmatically:
- 'Retry-After': the number of seconds until the rate limit window resets
- 'X-RateLimit-Limit': the total number of requests allowed in the rate limit window
- 'X-RateLimit-Remaining': the number of requests remaining in the rate limit window
- 'X-RateLimit-Reset': the datetime when the rate limit window will reset
Read more about rate limiting.
Examples
200 OK response
200 OK responseHTTP/1.1 200 OK
X-RateLimit-Limit: 200
X-RateLimit-Remaining: 198
X-RateLimit-Reset: 2025-07-08 15:35:40 -0700429 Too Many Requests response
429 Too Many Requests responseHTTP/1.1 429 Rate Limit Exceeded
Retry-After: 30