Skip to content

Commit 5201503

Browse files
authored
Rate limiting headers (#24967)
1 parent ddfebc5 commit 5201503

File tree

1 file changed

+11
-0
lines changed
  • src/content/docs/fundamentals/api/reference

1 file changed

+11
-0
lines changed

src/content/docs/fundamentals/api/reference/limits.mdx

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,3 +8,14 @@ sidebar:
88
import { Render } from "~/components";
99

1010
<Render file="api-rate-limits" product="fundamentals" params={{showHeading: true}} />
11+
12+
## Rate limiting headers
13+
14+
The following headers are returned when calling REST APIs:
15+
16+
- `x-ratelimit-limit`: The total number of requests a caller can make.
17+
- `x-ratelimit-remaining`: The number of remaining requests before the rate limit takes effect.
18+
- `retry-after`: The number of seconds, rounded up, until more capacity is available.
19+
- `x-ratelimit-reset`: The `RFC 1123` formatted date when more capacity is available.
20+
21+
Cloudflare's SDKs will also automatically work with the headers and back off in response to rate limits.

0 commit comments

Comments
 (0)