Skip to main content

rate_limits

Creates, updates, deletes, gets or lists a rate_limits resource.

Overview

Namerate_limits
TypeResource
Idanthropic_admin.workspaces.rate_limits

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
group_typestringThe 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)
limitsarrayThe 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).
modelsarrayModel names this entry's limits apply to, including aliases. Null when `group_type` is not `model_group`.
typestringObject type. Always `workspace_rate_limit`. (workspace_rate_limit)

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
listselectworkspace_idgroup_typeList 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.

NameDatatypeDescription
workspace_idstringID of the Workspace.
group_typestringFilter by group type.

SELECT examples

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 }}'
;