Список лимитов расходов
GET/v1/organizations/spend_limits
Requires
anthropic-beta: spend-limit-reads-2026-09-26. Learn how to send beta headers.Возвращает список лимитов расходов организации.
Лимиты организации Claude Console, включая любой доступный только для чтения лимит usage_tier, возвращаются от новых к старым. Получение их списка доступно в рамках предварительной версии с ранним доступом. Чтобы запросить доступ, обратитесь к своей команде по работе с клиентами в Anthropic. Лимиты организации Claude Enterprise сгруппированы по типу области действия в порядке organization, seat_tier, rbac_group, organization_service, user; внутри типа они идут в фиксированном порядке, который не совпадает с порядком создания.
Список лимитов расходов
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_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"
}