支出上限の一覧取得
GET/v1/organizations/spend_limits
Requires
anthropic-beta: spend-limit-reads-2026-09-26. How to send beta headers組織の支出上限を一覧表示します。
Claude Console 組織の上限は、読み取り専用の usage_tier 上限を含め、新しい順に返されます。この一覧表示は早期アクセスプレビューの段階です。アクセスをリクエストするには、Anthropicのアカウントチームにお問い合わせください。Claude Enterprise 組織の上限はスコープタイプごとにグループ化され、organization、seat_tier、rbac_group、organization_service、user の順に並びます。各タイプ内では固定の順序で返されますが、作成順ではありません。
Parameters
Returns
支出上限の一覧取得
<?php
require_once dirname(__DIR__) . '/vendor/autoload.php';
use Anthropic\Client;
use Anthropic\Beta\AnthropicBeta;
$client = new Client(apiKey: 'my-anthropic-api-key');
$page = $client->beta->organization->spendLimits->list(
limit: 1,
page: 'page',
scopeType: ['organization'],
workspaceID: 'workspace_id',
betas: [AnthropicBeta::MESSAGE_BATCHES_2024_09_24],
);
var_dump($page);Response 200
{
"data": [
{
"id": "id",
"amount": "50000",
"created_at": "2019-12-27T18:11:19.117Z",
"currency": "USD",
"is_enabled": true,
"period": "daily",
"scope": {
"type": "user",
"user_id": "user_01WxYzAbCdEfGhJkMnPqRsTu"
},
"type": "spend_limit",
"updated_at": "2019-12-27T18:11:19.117Z"
}
],
"next_page": "next_page"
}Returns Examples
Response 200
{
"data": [
{
"id": "id",
"amount": "50000",
"created_at": "2019-12-27T18:11:19.117Z",
"currency": "USD",
"is_enabled": true,
"period": "daily",
"scope": {
"type": "user",
"user_id": "user_01WxYzAbCdEfGhJkMnPqRsTu"
},
"type": "spend_limit",
"updated_at": "2019-12-27T18:11:19.117Z"
}
],
"next_page": "next_page"
}