rate_limits
Creates, updates, deletes, gets or lists a rate_limits resource.
Overview
| Name | rate_limits |
| Type | Resource |
| Id | anthropic_admin.workspaces.rate_limits |
Fields
The following fields are returned by SELECT queries:
- list
| Name | Datatype | Description |
|---|---|---|
group_type | string | The kind of rate-limit group this entry represents. `model_group` entries apply to a family of models; other values apply to an API-surface category and have `models` set to null. (batch, files, model_group, skills, token_count, web_search) |
limits | array | The limiter values overridden for this group in this workspace. Each item carries `type`, `value` and `org_limit` (the organization-level value for the same limiter, or null). |
models | array | Model names this entry's limits apply to, including aliases. Null when `group_type` is not `model_group`. |
type | string | Object type. Always `workspace_rate_limit`. (workspace_rate_limit) |
Methods
The following methods are available for this resource:
| Name | Accessible by | Required Params | Optional Params | Description |
|---|---|---|---|---|
list | select | workspace_id | group_type | List rate-limit overrides configured for a workspace. Only groups and limiter types with a workspace-level override are returned; everything else inherits the organization limits. |
Parameters
Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.
| Name | Datatype | Description |
|---|---|---|
workspace_id | string | ID of the Workspace. |
group_type | string | Filter by group type. |
SELECT examples
- list
List rate-limit overrides configured for a workspace. Only groups and limiter types with a workspace-level override are returned; everything else inherits the organization limits.
SELECT
group_type,
limits,
models,
type
FROM anthropic_admin.workspaces.rate_limits
WHERE workspace_id = '{{ workspace_id }}' -- required
AND group_type = '{{ group_type }}'
;