Help article templates / Product help
API rate limits documentation template
Rate-limit docs should give the exact limits per plan or key, the response headers that show usage, what a 429 response looks like, and a retry pattern with exponential backoff that honours the Retry-After header. Developers copy code from this page, so include a working example.
For: Developer platforms and SaaS with a public API · Updated 10 Nov 2026
Developers usually discover rate limits when production breaks. Clear documentation, with limits in a table and a copy-paste retry example, turns a 2 am incident into a config change. Use the same header names in docs and responses, and keep the page versioned with your API.
What the article must cover
- Limits per plan, per key or per IP, and the time window.
- Response headers.
- The 429 response body.
- Retry with exponential backoff and Retry-After.
- Tips: batching, webhooks instead of polling, caching.
- How to request a higher limit.
The template
Replace everything in [brackets] with your own details, and delete rows that don't apply.
# Rate limits
Each API key can make a limited number of requests per minute. Limits protect the service for everyone.
| Plan | Requests per minute | Burst |
| --- | --- | --- |
| [Free] | [60] | [10 per second] |
| [Pro] | [600] | [50 per second] |
| [Enterprise] | [Custom] | [Custom] |
## Headers on every response
- **X-RateLimit-Limit**: your limit for the current window.
- **X-RateLimit-Remaining**: requests left in the window.
- **X-RateLimit-Reset**: when the window resets (Unix time, seconds).
## When you go over
You get **HTTP 429 Too Many Requests** with a **Retry-After** header (seconds):
{ "error": { "code": "rate_limited", "message": "Too many requests. Retry after 12 seconds." } }
## Retry safely
Wait for Retry-After if it's present; otherwise back off exponentially with jitter:
async function withRetry(fn, tries = 5) {
for (let i = 0; i < tries; i++) {
const res = await fn();
if (res.status !== 429) return res;
const wait = Number(res.headers.get("Retry-After")) * 1000 || 2 ** i * 500 + Math.random() * 250;
await new Promise((r) => setTimeout(r, wait));
}
throw new Error("Rate limited after retries");
}
## Use fewer requests
- Use [bulk endpoints] for up to [100] records per call.
- Subscribe to [webhooks] instead of polling for changes.
- Cache responses that don't change often.
## Need more?
Write to [api@example.com] with your use case and expected peak requests per minute.Mistakes to avoid
- Different header names in the docs and the real responses.
- No Retry-After header, forcing developers to guess.
- Retry examples without jitter, which make every client retry at the same moment.
Questions
- Which HTTP status code should signal a rate limit?
- 429 Too Many Requests, defined in RFC 6585, ideally with a Retry-After header telling the client how long to wait.
- What is exponential backoff with jitter?
- Waiting longer after each failed retry (for example 0.5, 1, 2, 4 seconds) plus a small random delay, so many clients don't retry in lockstep.
- Should rate limits be per key or per IP?
- Per key for authenticated APIs, so limits follow the customer; per IP for unauthenticated endpoints such as login, to slow abuse.
Sources
- RFC 6585: Additional HTTP Status Codes (429) — checked 10 Nov 2026
This page explains common practice and is not legal advice. Check the current rules for your business with a qualified adviser.
Publish it in a help center
In HelpCenterKit you can save this as an article template, send it for approval, and publish it to a help center where readers get AI answers that cite it. Free for your first 15 days, no card.