Claude Platform Docs

支出上限

支出上限の設定
BetaSpendLimit beta().organization().spendLimits().set(params, requestOptions = RequestOptions.none())
POST/v1/organizations/spend_limits

支出上限を設定します。

支出上限を取得
BetaSpendLimit beta().organization().spendLimits().retrieve(params = SpendLimitRetrieveParams.none(), requestOptions = RequestOptions.none())
GET/v1/organizations/spend_limits/{spend_limit_id}

IDを指定して支出上限を取得します。

支出上限を削除
SpendLimitDeleteResponse beta().organization().spendLimits().delete(params = SpendLimitDeleteParams.none(), requestOptions = RequestOptions.none())
DELETE/v1/organizations/spend_limits/{spend_limit_id}

支出上限を削除します。

支出上限の一覧取得
SpendLimitListPage beta().organization().spendLimits().list(params = SpendLimitListParams.none(), requestOptions = RequestOptions.none())
GET/v1/organizations/spend_limits

組織の支出上限を一覧表示します。

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"; }
JsonValue type = "organization"
class BetaSpendLimitOrganizationServiceScope { type = "organization_service"; service; }
JsonValue type = "organization_service"
String service
enum BetaSpendLimitPeriod
DAILY("daily")
MONTHLY("monthly")
WEEKLY("weekly")
class BetaSpendLimitRbacGroupScope { type = "rbac_group"; rbacGroupId; }
JsonValue type = "rbac_group"
String rbacGroupId
class BetaSpendLimitScopedApiKeyActor { type = "scoped_api_key_actor"; scopedApiKeyId; }

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

JsonValue type = "scoped_api_key_actor"
String scopedApiKeyId
class BetaSpendLimitSeatTierScope { type = "seat_tier"; seatTier; }
JsonValue type = "seat_tier"
String seatTier
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.

JsonValue type = "usage_tier"

Scope type. Always usage_tier for this scope.

class BetaSpendLimitUserActor { type = "user_actor"; deleted; emailAddress; /* 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.

JsonValue type = "user_actor"

Actor type. Always user_actor.

boolean deleted

True only when the underlying account has been deleted.

Optional<String> emailAddress

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

Optional<String> name

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

String userId

Tagged ID of the user.

class BetaSpendLimitUserScope { type = "user"; userId; }

Scope selecting a single member of the organization.

JsonValue type = "user"

Scope type. Always user for this scope.

String userId

Tagged ID of the member the spend limit applies to.

class BetaSpendLimitWorkspaceScope { type = "workspace"; workspaceId; }

Scope selecting one workspace of a Claude Console organization.

JsonValue type = "workspace"

Scope type. Always workspace for this scope.

String workspaceId

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).

支出上限有効

有効な支出上限の一覧取得
EffectiveListPage beta().organization().spendLimits().effective().list(params = EffectiveListParams.none(), requestOptions = RequestOptions.none())
GET/v1/organizations/spend_limits/effective

各メンバーの実効支出上限と期間累計の支出を一覧表示します。

支出上限引き上げリクエストの一覧を取得
IncreaseRequestListPage beta().organization().spendLimits().increaseRequests().list(params = IncreaseRequestListParams.none(), requestOptions = RequestOptions.none())
GET/v1/organizations/spend_limit_increase_requests

支出上限引き上げリクエストの一覧を、新しい順に取得します。

支出上限引き上げリクエストを取得
BetaSpendLimitIncreaseRequest beta().organization().spendLimits().increaseRequests().retrieve(params = IncreaseRequestRetrieveParams.none(), requestOptions = RequestOptions.none())
GET/v1/organizations/spend_limit_increase_requests/{spend_limit_increase_request_id}

支出上限引き上げリクエストを取得します。

支出上限引き上げリクエストを承認
IncreaseRequestApproveResponse beta().organization().spendLimits().increaseRequests().approve(params, requestOptions = RequestOptions.none())
POST/v1/organizations/spend_limit_increase_requests/{spend_limit_increase_request_id}/approve

保留中の支出上限引き上げリクエストを承認します。

支出上限引き上げリクエストを拒否
BetaSpendLimitIncreaseRequest beta().organization().spendLimits().increaseRequests().deny(params = IncreaseRequestDenyParams.none(), requestOptions = RequestOptions.none())
POST/v1/organizations/spend_limit_increase_requests/{spend_limit_increase_request_id}/deny

保留中の支出上限引き上げリクエストを拒否します。