Fair Usage and Rate Limiting
To keep the API reliable and responsive for everyone, we apply rate limits to API requests. Requests that exceed the allowed rate may be temporarily rejected.
What To Expect
- The API returns an HTTP
429 Too Many Requestsresponse when a rate limit is exceeded. - The response may include a
Retry-Afterheader indicating how many seconds to wait before retrying. - Rate limits may vary by endpoint or account type.
What You Should Do
- Implement retry logic to handle
429responses gracefully. - Use exponential backoff with a small random jitter (for example, wait 1, 2, 4 seconds, and so on) between retries.
- If the response includes a
Retry-Afterheader, wait for the specified duration before retrying. - Limit retry attempts and display an error to users if the request continues to fail.
- Reduce unnecessary API calls where possible by caching responses, batching requests, and spreading traffic evenly over time instead of sending bursts.
Need Higher Limits?
If your use case requires higher throughput, contact your Punchh representative.
