The whole hunk
from line 9012, old and new numbered
/
lines
This page is larger than the 256 KiB this site keeps, so one side of the diff below stops where the stored text does.
from line 9012
90129012
90139013 default: workspace_rate_limit
90149014
9015 - `group_type: "batch" or "files" or "model_group" or 3 more`
9015 - `group: BetaOrganizationRateLimitModelGroup or BetaOrganizationRateLimitBatchGroup or BetaOrganizationRateLimitTokenCountGroup or 3 more`
90169016
9017 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`.
9017 The rate-limit group this entry's limits apply to. Its `type` equals `group_type`.
90189018
9019 - `"batch"`
9019 - `BetaOrganizationRateLimitModelGroup object`
90209020
9021 - `"files"`
9021 - `type: "model_group"`
90229022
9023 - `"model_group"`
9023 Always `model_group`: a family of models.
90249024
9025 - `"skills"`
9025 default: model_group
90269026
9027 - `"token_count"`
9027 - `id: string`
90289028
9029 - `"web_search"`
9029 Opaque identifier of the rate-limit group (for example, `rlg_01VPTCmyiu5ZLsWkcxYG2pY8`). It is the same in every organization and never changes, unlike the entry's own identifier, which differs per organization.
90309030
9031 - `display_name: string`
9032
9033 Human-readable name of the model group (for example, `Claude Sonnet 4.x`). For display only; it may change.
9034
9035 - `BetaOrganizationRateLimitBatchGroup object`
9036
9037 - `type: "batch"`
9038
9039 Always `batch`: the Message Batches API.
9040
9041 default: batch
9042
9043 - `id: string`
9044
9045 Opaque identifier of the rate-limit group (for example, `rlg_01VPTCmyiu5ZLsWkcxYG2pY8`). It is the same in every organization and never changes, unlike the entry's own identifier, which differs per organization.
9046
9047 - `BetaOrganizationRateLimitTokenCountGroup object`
9048
9049 - `type: "token_count"`
9050
9051 Always `token_count`: the Token Count API.
9052
9053 default: token_count
9054
9055 - `id: string`
9056
9057 Opaque identifier of the rate-limit group (for example, `rlg_01VPTCmyiu5ZLsWkcxYG2pY8`). It is the same in every organization and never changes, unlike the entry's own identifier, which differs per organization.
9058
9059 - `BetaOrganizationRateLimitFilesGroup object`
9060
9061 - `type: "files"`
9062
9063 Always `files`: the Files API.
9064
9065 default: files
9066
9067 - `id: string`
9068
9069 Opaque identifier of the rate-limit group (for example, `rlg_01VPTCmyiu5ZLsWkcxYG2pY8`). It is the same in every organization and never changes, unlike the entry's own identifier, which differs per organization.
9070
9071 - `BetaOrganizationRateLimitSkillsGroup object`
9072
9073 - `type: "skills"`
9074
9075 Always `skills`: the Skills API.
9076
9077 default: skills
9078
9079 - `id: string`
9080
9081 Opaque identifier of the rate-limit group (for example, `rlg_01VPTCmyiu5ZLsWkcxYG2pY8`). It is the same in every organization and never changes, unlike the entry's own identifier, which differs per organization.
9082
9083 - `BetaOrganizationRateLimitWebSearchGroup object`
9084
9085 - `type: "web_search"`
9086
9087 Always `web_search`: the Messages API web search tool.
9088
9089 default: web_search
9090
9091 - `id: string`
9092
9093 Opaque identifier of the rate-limit group (for example, `rlg_01VPTCmyiu5ZLsWkcxYG2pY8`). It is the same in every organization and never changes, unlike the entry's own identifier, which differs per organization.
9094
90319095 - `limits: array of BetaWorkspaceRateLimitValue`
90329096
90339097 The limiter values overridden for this group in this workspace. Limiter types without a workspace override are omitted and inherit the organization value.
from line 9114
90509114
90519115 - `rate_limit_id: string`
90529116
9053 The `id` of the RateLimit group this override applies to.
9117 The `id` of the organization's RateLimit entry this override applies to.
90549118
90559119 - `workspace_id: string`
90569120
90579121 ID of the Workspace this override applies to.
90589122
9123 - `group_type: "batch" or "files" or "model_group" or 3 more`
9124
9125 **Deprecated**: Use `group.type` instead. `group_type` is still returned and always equals `group.type`.
9126
9127 Deprecated: use `group.type` instead. 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`. Always equal to `group.type`.
9128
9129 - `"batch"`
9130
9131 - `"files"`
9132
9133 - `"model_group"`
9134
9135 - `"skills"`
9136
9137 - `"token_count"`
9138
9139 - `"web_search"`
9140
90599141- `next_page: string or null`
90609142
90619143 Opaque cursor for the next page of results, or `null` when no entries remain beyond this response.
from line 9156
90749156{
90759157 "data": [
90769158 {
9159 "group": {
9160 "id": "id",
9161 "display_name": "display_name",
9162 "type": "model_group"
9163 },
90779164 "group_type": "batch",
90789165 "limits": [
90799166 {
from line 10540
1045310540```json
1045410541{
1045510542 "service_account_id": "service_account_id",
10456 "type": "service_account_workspace_member_deleted",
10457 "workspace_id": "workspace_id"
10458}
10459```
10460
10461## Organization › Rate Limits
10462
10463### List Organization Rate Limits
10464
10465**GET** `/v1/organizations/rate_limits`
10466
10467List Messages API rate limits for your organization.
10468
10469Each entry corresponds to one rate-limit group (either a model family
10470or an API-surface category such as the Files API or Message Batches)
10471and contains the set of limiter values that apply to it.
10472
10473When `limit` is omitted, every matching entry is returned in a single
10474page; when `limit` truncates the result, follow `next_page` to fetch
10475the remaining entries.
10476
10477#### Query parameters
10478
10479- `group_type: optional "batch" or "files" or "model_group" or 3 more`
10480
10481 Filter by group type.
10482
10483 - `"batch"`
10484
10485 - `"files"`
10486
10487 - `"model_group"`
10488
10489 - `"skills"`
10490
10491 - `"token_count"`
10492
10493 - `"web_search"`
10494
10495- `limit: optional number`
10496
10497 Maximum number of items to return per page. Ranges from `1` to `1000`.
10498
10499 When omitted, every remaining entry is returned in a single page and `next_page` is `null`.
10500
10501 maximum: 1000, minimum: 1
10502
10503- `model: optional string`
10504
10505 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.
10506
10507- `page: optional string`
10508
10509 Opaque cursor from a previous response's `next_page`.
10510
10511#### Returns
10512
10513- `data: array of BetaOrganizationRateLimit`
10514
10515 Rate-limit entries for the organization, one per group.
10516
10517 - `type: "rate_limit"`
10518
10519 Object type. Always `rate_limit` for organization rate-limit entries.
10520
10521 default: rate_limit
10522
10523 - `id: string`
10524
10525 Stable identifier for this rate-limit group within the organization.
10526
10527 - `group_type: "batch" or "files" or "model_group" or 3 more`
10528
10529 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`.
10530
10531 - `"batch"`
10532
10533 - `"files"`
10534
10535 - `"model_group"`
10536
10537 - `"skills"`
10538
10539 - `"token_count"`
10540
10541 - `"web_search"`
10542
10543 - `limits: array of BetaOrganizationRateLimitValue`
10544
10545 The limiter values that apply to this group.
10546
10547 - `type: string`
10548
10549 The limiter type (for example, `requests_per_minute` or `input_tokens_per_minute`).
10550
10551 - `value: number`
10552
10553 The configured limit value for this limiter type.
10554
10555 - `models: array of string or null`
10556
10557 Model names this entry's limits apply to, including aliases. `null` when `group_type` is not `"model_group"`.
10558
10559- `next_page: string or null`
10560
10561 Opaque cursor for the next page of results, or `null` when no entries remain beyond this response.
10562
10563#### Example
10564
10565```bash
10566curl https://api.anthropic.com/v1/organizations/rate_limits \
10567 -H 'anthropic-version: 2023-06-01' \
10568 -H "X-Api-Key: $ANTHROPIC_API_KEY"
10569```
10570
10571##### Response (200)
10572
10573```json
10574{
10575 "data": [
10576 {
10577 "id": "id",
10578 "group_type": "batch",
10579 "limits": [
10580 {
10581 "type": "type",
10582 "value": 0
10583 }
10584 ],
10585 "models": [
10586 "string"
10587 ],
10588 "type": "rate_limi
10543