THE GITHTML FIELD GUIDE

A rate-limit reference template that explains scope and recovery

Document a rate limit by its scope, measured unit, relevant response signals, and provider-approved recovery behavior. State whether limits vary by account, token, endpoint, or plan, and date the evidence. Do not turn one observed response into a universal quota or recommend automatic retries that ignore the service's actual instructions.

Define what the limit applies to

Identify the API version and authentication context, then describe the subject being limited: an account, application, credential, IP address, endpoint, or another unit. Distinguish request-count limits from concurrency, cost, or secondary protective limits when the provider documents them. Avoid a single prominent number without its scope and conditions. If a quota depends on account configuration, explain where the reader can find the applicable value rather than publishing a misleading default as universal. Record the source date because these policies can change independently of the client code and documentation release cycle.

Connect responses to a documented next step

The scaffold below asks for the signals a client can observe and how to interpret them. Include relevant status codes, headers, and body fields only when verified for the provider. Explain the units and clock assumptions behind reset or retry values. A generic retry recommendation can create unnecessary traffic or repeated failures, so link the provider's current guidance and keep application-specific backoff decisions separate. Use synthetic response examples without real tokens or account identifiers. GitHub's REST rate-limit documentation illustrates why multiple limit categories may exist, but its exact policy should not be copied into another API reference.

text
Provider and API version:
Limit category:
Subject and measured unit:
Applicable quota source:
Response status / headers:
Reset or retry interpretation:
Approved recovery guidance:
Client-specific policy:
Evidence date:
Support diagnostics:

Test the documentation without provoking real limits

Prefer provider-supported test fixtures, recorded sanitized responses, or a controlled mock to explain limit handling. Do not intentionally exhaust a production quota just to produce a screenshot. Review how the client distinguishes rate limiting from authentication failure, service outage, and normal empty results. State what information support needs when behavior differs from the documented contract, including timestamps and sanitized response metadata. Revisit the page after provider policy changes or authentication-model changes. The reference should help readers avoid and recover from throttling responsibly, not offer a recipe for bypassing controls or a promise that every retry will succeed. Add a small interpretation example using invented values and clearly stated units. Ask the reviewer to explain the resulting wait or escalation decision in words, which helps expose ambiguous timestamps, mixed scopes, or unsupported retry assumptions before a client implements them.

  1. Record limit scope, unit, conditions, and source date before quoting values.
  2. Map observable response signals to provider-approved recovery guidance.
  3. Use safe fixtures rather than exhausting a live production quota.
  4. Separate throttling from authentication and service failures in examples and troubleshooting.

Sources and further reading

AI-assisted writing with source-linked guidance and illustrative examples. Read our editorial approach or report a correction.

All documentation templates guides →

Read as MarkdownAll guides

A rate-limit reference template that explains scope and recovery · gitHtml