Claude Platform Docs

Limiti di spesa

Imposta limite di spesa
beta.organization.spend_limits.set(**kwargs) -> BetaSpendLimit
POST/v1/organizations/spend_limits

Imposta un limite di spesa.

Ottieni limite di spesa
beta.organization.spend_limits.retrieve(spend_limit_id) -> BetaSpendLimit
GET/v1/organizations/spend_limits/{spend_limit_id}

Recupera un limite di spesa tramite ID.

Elimina limite di spesa
beta.organization.spend_limits.delete(spend_limit_id) -> SpendLimitDeleteResponse
DELETE/v1/organizations/spend_limits/{spend_limit_id}

Elimina un limite di spesa.

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

Elenca i limiti di spesa dell'organizzazione.

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

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

class BetaSpendLimitOrganizationScope { type: :organization }
type: :organization
class BetaSpendLimitOrganizationServiceScope { type: :organization_service, service }
type: :organization_service
service: String
type BetaSpendLimitPeriod = :daily | :monthly | :weekly
One of the following:
:daily
:monthly
:weekly
class BetaSpendLimitRBACGroupScope { type: :rbac_group, rbac_group_id }
type: :rbac_group
rbac_group_id: String
class BetaSpendLimitScopedAPIKeyActor { 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 BetaSpendLimitSeatTierScope { type: :seat_tier, seat_tier }
type: :seat_tier
seat_tier: String
class BetaSpendLimitUsageTierScope { 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 BetaSpendLimitUserActor { 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

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

name: String

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 BetaSpendLimitUserScope { 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 BetaSpendLimitWorkspaceScope { 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 BetaSpendSummary { actor, amount, currency, 5 more }

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

class SpendLimitDeleteResponse { type: :spend_limit_deleted, id }
type: :spend_limit_deleted
id: String

Limiti di spesaEffettivi

Elenca limiti di spesa effettivi
beta.organization.spend_limits.effective.list(**kwargs) -> PageCursor<BetaSpendSummary>
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
beta.organization.spend_limits.increase_requests.list(**kwargs) -> PageCursor<BetaSpendLimitIncreaseRequest>
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
beta.organization.spend_limits.increase_requests.retrieve(spend_limit_increase_request_id) -> BetaSpendLimitIncreaseRequest
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
beta.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
beta.organization.spend_limits.increase_requests.deny(spend_limit_increase_request_id, **kwargs) -> BetaSpendLimitIncreaseRequest
POST/v1/organizations/spend_limit_increase_requests/{spend_limit_increase_request_id}/deny

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