列出支出限额
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
列出支出限额
using System;
using Anthropic.Models.Beta.Organization.SpendLimits;
SpendLimitListParams parameters = new();
var page = await client.Beta.Organization.SpendLimits.List(parameters);
await foreach (var item in page.Paginate())
{
Console.WriteLine(item);
}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"
}