Skip to content

Commit 42661d4

Browse files
authored
Update rate-limits.mdx
1 parent 8b5b2a7 commit 42661d4

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

fern/docs/pages/rate-limits.mdx

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,22 @@ Retry-After: 30
1111

1212
The `Retry-After` response header can be used to determine the number of seconds left before the user’s rate limit window expires.
1313

14+
The user’s current rate limit quota and usage can be inspected in a request’s response headers:
15+
16+
| Header | Description |
17+
| :--- | :--- |
18+
| X-Ratelimit-Limit | The user’s total rate limit units for the current window. |
19+
| X-Ratelimit-Remaining | The user’s remaining rate limit units for the current window. |
20+
| X-Ratelimit-Reset | The time at which the rate limit window resets, in seconds from the Unix epoch. |
21+
22+
The following provides an example of response header values:
23+
24+
```
25+
X-Ratelimit-Limit: 1000
26+
X-Ratelimit-Remaining: 900
27+
X-Ratelimit-Reset: 1720636800
28+
```
29+
1430
<Callout intent="info">
1531
All APIs have the same weight when applying rate limiting, and there is no preference given to any individual API. However, this is subject to change in the future.
1632
</Callout>

0 commit comments

Comments
 (0)