The whole hunk
from line 10, old and new numbered
/
lines
from line 10
1010or an API-surface category such as the Files API or Message Batches)
1111and contains the set of limiter values that apply to it.
1212
13When `limit` is omitted, every matching entry is returned in a single
14page; when `limit` truncates the result, follow `next_page` to fetch
15the remaining entries.
16
1317### Query parameters
1418
1519- `group_type: optional "batch" or "files" or "model_group" or 3 more`
from line 32
2832
2933 - `"web_search"`
3034
35- `limit: optional number`
36
37 Maximum number of items to return per page. Ranges from `1` to `1000`.
38
39 When omitted, every remaining entry is returned in a single page and `next_page` is `null`.
40
41 maximum: 1000, minimum: 1
42
3143- `model: optional string`
3244
3345 Filter to the single entry containing this model. Accepts full model names and aliases. Returns 404 if the model is not found or has no rate limits for this organization.
from line 98
8698
8799- `next_page: string or null`
88100
89 Token to provide in as `page` in the subsequent request to retrieve the next page of data.
101 Opaque cursor for the next page of results, or `null` when no entries remain beyond this response.
90102
91103### Example
92104
from line 105
93105```bash
94106curl https://api.anthropic.com/v1/organizations/rate_limits \
95107 -H 'anthropic-version: 2023-06-01' \
96 -H "Authorization: Bearer $ANTHROPIC_OAUTH_TOKEN"
108 -H "Authorization: Bearer $ANTHROPIC_AUTH_TOKEN"
97109```
98110
99111#### Response (200)
from line 138
126138
127139- `RateLimitListResponse object`
128140
129 - `data: array of object`
141 - `id: string`
130142
131 Rate-limit entries for the organization, one per group.
143 Stable identifier for this rate-limit group within the organization.
132144
133 - `id: string`
145 - `group_type: "batch" or "files" or "model_group" or 3 more`
134146
135 Stable identifier for this rate-limit group within the organization.
147 The kind of rate-limit group this entry represents. `model_group` entries apply to a family of models (listed in `models`); other values apply to an API-surface category and have `models` set to `null`.
136148
137 - `group_type: "batch" or "files" or "model_group" or 3 more`
149 - `"batch"`
138150
139 The kind of rate-limit group this entry represents. `model_group` entries apply to a family of models (listed in `models`); other values apply to an API-surface category and have `models` set to `null`.
151 - `"files"`
140152
141 - `"batch"`
153 - `"model_group"`
142154
143 - `"files"`
155 - `"skills"`
144156
145 - `"model_group"`
157 - `"token_count"`
146158
147 - `"skills"`
159 - `"web_search"`
148160
149 - `"token_count"`
161 - `limits: array of object`
150162
151 - `"web_search"`
163 The limiter values that apply to this group.
152164
153 - `limits: array of object`
165 - `type: string`
154166
155 The limiter values that apply to this group.
167 The limiter type (for example, `requests_per_minute` or `input_tokens_per_minute`).
156168
157 - `type: string`
169 - `value: number`
158170
159 The limiter type (for example, `requests_per_minute` or `input_tokens_per_minute`).
171 The configured limit value for this limiter type.
160172
161 - `value: number`
173 - `models: array of string or null`
162174
163 The configured limit value for this limiter type.
175 Model names this entry's limits apply to, including aliases. `null` when `group_type` is not `"model_group"`.
164176
165 - `models: array of string or null`
177 - `type: "rate_limit"`
166178
167 Model names this entry's limits apply to, including aliases. `null` when `group_type` is not `"model_group"`.
179 Object type. Always `rate_limit` for organization rate-limit entries.
168180
169 - `type: "rate_limit"`
170
171 Object type. Always `rate_limit` for organization rate-limit entries.
172
173 default: rate_limit
174
175 - `next_page: string or null`
176
177 Token to provide in as `page` in the subsequent request to retrieve the next page of data.
181 default: rate_limit
178182