Spend Limits
Set Spend Limit
$client->beta->organization->spendLimits->set(?string amount, Scope scope, ?SpendLimitPeriod period, ?list<AnthropicBeta> betas): SpendLimitPOST/v1/organizations/spend_limits
Set a spend limit.
Get Spend Limit
$client->beta->organization->spendLimits->retrieve(string spendLimitID): SpendLimitGET/v1/organizations/spend_limits/{spend_limit_id}
Retrieve a spend limit by ID.
Delete Spend Limit
$client->beta->organization->spendLimits->delete(string spendLimitID): SpendLimitDeleteResponseDELETE/v1/organizations/spend_limits/{spend_limit_id}
Delete a spend limit.
List Spend Limits
$client->beta->organization->spendLimits->list(?int limit, ?string page, ?list<ScopeType> scopeType, ?string workspaceID, ?list<AnthropicBeta> betas): PageCursor<SpendLimit>GET/v1/organizations/spend_limits
List the organization's spend limits.
Models
Spend LimitsEffective
List Effective Spend Limits
$client->beta->organization->spendLimits->effective->list(?int limit, ?string page, ?list<Period> period, ?list<string> userIDs): PageCursor<SpendSummary>GET/v1/organizations/spend_limits/effective
List each member's effective spend limit and period-to-date spend.
Spend LimitsIncrease Requests
List Spend Limit Increase Requests
$client->beta->organization->spendLimits->increaseRequests->list(?list<string> actorIDs, ?int limit, ?string page, ?list<BetaSpendLimitIncreaseRequestStatus> status): PageCursor<BetaSpendLimitIncreaseRequest>GET/v1/organizations/spend_limit_increase_requests
List spend limit increase requests, most recent first.
Get Spend Limit Increase Request
$client->beta->organization->spendLimits->increaseRequests->retrieve(string spendLimitIncreaseRequestID): BetaSpendLimitIncreaseRequestGET/v1/organizations/spend_limit_increase_requests/{spend_limit_increase_request_id}
Retrieve a spend limit increase request.
Approve Spend Limit Increase Request
$client->beta->organization->spendLimits->increaseRequests->approve(string spendLimitIncreaseRequestID, string amount, ?SpendLimitPeriod period, ?bool suppressNotification): IncreaseRequestApproveResponsePOST/v1/organizations/spend_limit_increase_requests/{spend_limit_increase_request_id}/approve
Approve a pending spend limit increase request.
Deny Spend Limit Increase Request
$client->beta->organization->spendLimits->increaseRequests->deny(string spendLimitIncreaseRequestID, ?bool suppressNotification): BetaSpendLimitIncreaseRequestPOST/v1/organizations/spend_limit_increase_requests/{spend_limit_increase_request_id}/deny
Deny a pending spend limit increase request.