API Reference›Rate Limits
Rate Limits
DiffHook enforces rate limits on API requests to ensure fair usage and system stability. Per-plan quotas govern monitor checks, webhook deliveries, and API calls, with response headers exposing remaining capacity.
Limits
| Tier | Requests / minute |
|---|---|
| Free | 60 |
| Any paid plan | 200 |
Limits apply per API key and per IP.
Handling 429 responses
When you exceed the limit, you receive 429 Too Many Requests:
Implement exponential backoff when retrying:
async function apiRequest(url, options, retries = 3) {
const res = await fetch(url, options)
if (res.status === 429 && retries > 0) {
const delay = 1000 * (4 - retries)
await new Promise(r => setTimeout(r, delay))
return apiRequest(url, options, retries - 1)
}
return res
}