速率限制
列出组织速率限制
client.Organization.RateLimits.List(ctx, query) (*PageCursor[OrganizationRateLimit], error)列出您组织的 Messages API "rate limit"(速率限制)。
Models
type OrganizationRateLimit struct { Type: "rate_limit"; ID; Group; /* 2 more */ }
type OrganizationRateLimitBatchGroup struct { Type: "batch"; ID }
Type BatchAlways batch: the Message Batches API.
Always batch: the Message Batches API.
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.
type OrganizationRateLimitFilesGroup struct { Type: "files"; ID }
Type FilesAlways files: the Files API.
Always files: the Files API.
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.
type OrganizationRateLimitModelGroup struct { Type: "model_group"; ID; DisplayName }
Type ModelGroupAlways model_group: a family of models.
Always model_group: a family of models.
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.
Human-readable name of the model group (for example, Claude Sonnet 4.x). For display only; it may change.
type OrganizationRateLimitSkillsGroup struct { Type: "skills"; ID }
Type SkillsAlways skills: the Skills API.
Always skills: the Skills API.
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.
type OrganizationRateLimitTokenCountGroup struct { Type: "token_count"; ID }
Type TokenCountAlways token_count: the Token Count API.
Always token_count: the Token Count API.
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.
type OrganizationRateLimitValue struct { Type; Value }
The limiter type (for example, requests_per_minute or input_tokens_per_minute).
The configured limit value for this limiter type.
type OrganizationRateLimitWebSearchGroup struct { Type: "web_search"; ID }
Type WebSearchAlways web_search: the Messages API web search tool.
Always web_search: the Messages API web search tool.
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.