Claude Platform Docs

Limiti di velocità

Elenca i limiti di velocità del workspace
$client->beta->organization->workspaces->rateLimits->list(string workspaceID, ?GroupType groupType, ?bool includeInherited, ?int limit, ?string page): PageCursor<BetaWorkspaceRateLimit>
GET/v1/organizations/workspaces/{workspace_id}/rate_limits

Elenca i "rate limit" (limiti di velocità) di un workspace.

Imposta i limiti di velocità del workspace
$client->beta->organization->workspaces->rateLimits->update(string rateLimitID, string workspaceID, list<BetaWorkspaceRateLimitUpdateValue> limits): BetaWorkspaceRateLimit
POST/v1/organizations/workspaces/{workspace_id}/rate_limits/{rate_limit_id}

Imposta o rimuovi gli override dei limiti di velocità per un gruppo di limiti di velocità in un workspace.

Models
class BetaWorkspaceRateLimit { $type = 'workspace_rate_limit'; $group; $limits; /* 3 more */ }
"workspace_rate_limit" type

Object type. Always workspace_rate_limit for workspace rate-limit entries.

Group group

The rate-limit group this entry's limits apply to.

The workspace's limiter values for this group. By default only the limiter types with a workspace-level override are listed. With include_inherited set to true, the limiter types the workspace inherits from the organization are listed too, each marked by source.

?list<string> models

Model names this entry's limits apply to, including aliases. null when group.type is not "model_group". The list covers the models this workspace has access to, so it can differ between workspaces.

string rateLimitID

The id of the organization's RateLimit entry this entry applies to.

string workspaceID

ID of the Workspace this entry applies to.

class BetaWorkspaceRateLimitOrganizationSource { $type = 'organization'; }
"organization" type

Always organization: no workspace-level override is stored, so the organization's value applies.

One of the following:
"fast_itpmca"
"fast_otpm"
"input_tokens_per_minute"
"input_tokens_per_minute_cache_aware"
"output_tokens_per_minute"
"requests_per_minute"
"tokens_per_day"
"tokens_per_minute"
"tool_uses_per_second"
class BetaWorkspaceRateLimitUpdateValue { $type; $value; }

Rate limiter type.

?int value

New limit value. Set to null to clear the workspace override and fall back to the organization limit.

class BetaWorkspaceRateLimitValue { $type; $orgLimit; $source; $value; }
string type

The limiter type (for example, requests_per_minute or input_tokens_per_minute).

?int orgLimit

The organization-level value for the same limiter type, for reference. null when the organization has no limit configured for this limiter type.

Source source

Where value comes from. organization values are listed only when include_inherited is true, and then value equals org_limit.

int value

The workspace's value for this limiter type: the workspace-level override when source.type is workspace, otherwise the organization's value.

class BetaWorkspaceRateLimitWorkspaceSource { $type = 'workspace'; }
"workspace" type

Always workspace: a workspace-level override is stored.