지출 한도 목록 조회
GET/v1/organizations/spend_limits
조직의 지출 한도를 나열합니다.
한도는 범위 유형별로 organization, seat_tier, rbac_group, organization_service, user 순서로 그룹화되며, 각 유형 내에서는 생성 순서가 아닌 고정된 순서로 반환됩니다. Claude Console 조직이 아닌 Claude Enterprise 조직에서만 지원됩니다.
Parameters
Returns
지출 한도 목록 조회
package com.anthropic.example;
import com.anthropic.client.AnthropicClient;
import com.anthropic.client.okhttp.AnthropicOkHttpClient;
import com.anthropic.models.beta.organization.spendlimits.SpendLimitListPage;
import com.anthropic.models.beta.organization.spendlimits.SpendLimitListParams;
public final class Main {
private Main() {}
public static void main(String[] args) {
AnthropicClient client = AnthropicOkHttpClient.fromEnv();
SpendLimitListPage page = client.beta().organization().spendLimits().list();
}
}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_01WCz1FkmYMm4gnmykNKUu3Q"
},
"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_01WCz1FkmYMm4gnmykNKUu3Q"
},
"type": "spend_limit",
"updated_at": "2019-12-27T18:11:19.117Z"
}
],
"next_page": "next_page"
}