Claude Platform Docs

Limiti di spesa

Models
class SpendLimit { type: :spend_limit, id, amount, 6 more }

A configured spend limit: a cap on metered spend for one scope and period.

class SpendLimitOrganizationScope { type: :organization }
type: :organization
class SpendLimitOrganizationServiceScope { type: :organization_service, service }
type: :organization_service
service: String
type SpendLimitPeriod = :daily | :monthly | :weekly
One of the following:
:daily
:monthly
:weekly
class SpendLimitRBACGroupScope { type: :rbac_group, rbac_group_id }
type: :rbac_group
rbac_group_id: String
class SpendLimitScopedAPIKeyActor { type: :scoped_api_key_actor, scoped_api_key_id }

A scoped Admin API key acting on behalf of the organization.

type: :scoped_api_key_actor
scoped_api_key_id: String
class SpendLimitSeatTierScope { type: :seat_tier, seat_tier }
type: :seat_tier
seat_tier: String
class SpendLimitUsageTierScope { type: :usage_tier }

Scope of the monthly spend cap Anthropic sets for a Claude Console organization from its usage tier, or a higher cap Anthropic granted the organization. Read-only; its created_at and updated_at are the organization's creation time, so amount can change while updated_at stays the same.

type: :usage_tier

Scope type. Always usage_tier for this scope.

class SpendLimitUserActor { type: :user_actor, deleted, email_address, 2 more }

A user within the organization. name and email_address are null when the underlying account is unavailable or has been deleted; deleted is true only for deleted accounts.

type: :user_actor

Actor type. Always user_actor.

deleted: bool

True only when the underlying account has been deleted.

email_address: String | nil

The user's email address. Null when the account is unavailable or has been deleted.

name: String | nil

The user's current display name. Null when the account is unavailable, has been deleted, or has no name set.

user_id: String

Tagged ID of the user.

class SpendLimitUserScope { type: :user, user_id }

Scope selecting a single member of the organization.

type: :user

Scope type. Always user for this scope.

user_id: String

Tagged ID of the member the spend limit applies to.

class SpendLimitWorkspaceScope { type: :workspace, workspace_id }

Scope selecting one workspace of a Claude Console organization.

type: :workspace

Scope type. Always workspace for this scope.

workspace_id: String

Tagged ID of the workspace the spend limit applies to.

class SpendSummary { actor, amount, currency, 5 more }

Per-member effective-limit report row (GET /spend_limits/effective).

Limiti di spesaEffettivi

Elenca limiti di spesa effettivi
organization.spend_limits.effective.list(**kwargs) -> PageCursor<SpendSummary>
GET/v1/organizations/spend_limits/effective

Elenca il limite di spesa effettivo e la spesa dall'inizio del periodo di ciascun membro.

Limiti di spesaRichieste di aumento

Elenca richieste di aumento del limite di spesa
organization.spend_limits.increase_requests.list(**kwargs) -> PageCursor<SpendLimitIncreaseRequest>
GET/v1/organizations/spend_limit_increase_requests

Elenca le richieste di aumento del limite di spesa, dalla più recente.

Ottieni richiesta di aumento del limite di spesa
organization.spend_limits.increase_requests.retrieve(spend_limit_increase_request_id) -> SpendLimitIncreaseRequest
GET/v1/organizations/spend_limit_increase_requests/{spend_limit_increase_request_id}

Recupera una richiesta di aumento del limite di spesa.

Approva richiesta di aumento del limite di spesa
organization.spend_limits.increase_requests.approve(spend_limit_increase_request_id, **kwargs) -> IncreaseRequestApproveResponse
POST/v1/organizations/spend_limit_increase_requests/{spend_limit_increase_request_id}/approve

Approva una richiesta di aumento del limite di spesa in sospeso.

Rifiuta richiesta di aumento del limite di spesa
organization.spend_limits.increase_requests.deny(spend_limit_increase_request_id, **kwargs) -> SpendLimitIncreaseRequest
POST/v1/organizations/spend_limit_increase_requests/{spend_limit_increase_request_id}/deny

Rifiuta una richiesta di aumento del limite di spesa in sospeso.