Claude Platform Docs

Список действующих лимитов расходов

EffectiveListPage Beta.Organization.SpendLimits.Effective.List(parameters, cancellationToken = default)
GET/v1/organizations/spend_limits/effective

Возвращает действующий лимит расходов и расходы с начала периода для каждого участника.

Возвращает по одной строке на каждую пару (участник, период), для которой у участника определяется лимит расходов, с областью source, от которой этот лимит унаследован. Пагинация выполняется по участникам, поэтому периоды одного участника никогда не разделяются между страницами. Поддерживается только для организаций Claude Enterprise, но не для организаций Claude Console.

Parameters
EffectiveListParams parameters
long limit⁠Query parameter

Maximum number of members per page. A member's period rows never split across pages, so a page may carry more rows than this. Defaults to 20.

minimum1
maximum1000
string? page⁠Query parameter

Opaque cursor from a previous response's next_page field.

IReadOnlyList<Period>? period⁠Query parameter

Restrict the report to these limit periods. Omit to return one row per period each member resolves a spend limit for.

maxItems3
Daily("daily")
Monthly("monthly")
Weekly("weekly")
IReadOnlyList<string>? userIds⁠Query parameter

Restrict the report to these members, by tagged user ID (user_...). At most 100 entries.

maxItems100
Returns
class BetaSpendSummary { Actor; Amount; Currency; /* 5 more */ }

Per-member effective-limit report row (GET /spend_limits/effective).

Список действующих лимитов расходов
using System;
using Anthropic.Models.Beta.Organization.SpendLimits.Effective;

EffectiveListParams parameters = new();

var page = await client.Beta.Organization.SpendLimits.Effective.List(parameters);
await foreach (var item in page.Paginate())
{
    Console.WriteLine(item);
}
Returns Examples
Response 200
{
  "data": [
    {
      "actor": {
        "deleted": true,
        "email_address": "email_address",
        "name": "name",
        "type": "user_actor",
        "user_id": "user_01WxYzAbCdEfGhJkMnPqRsTu"
      },
      "amount": "50000",
      "currency": "USD",
      "period": "daily",
      "period_to_date_spend": "12050.5",
      "scope": {
        "type": "user",
        "user_id": "user_01WxYzAbCdEfGhJkMnPqRsTu"
      },
      "source": {
        "type": "user",
        "user_id": "user_01WxYzAbCdEfGhJkMnPqRsTu"
      },
      "spend_limit_id": "spend_limit_id"
    }
  ],
  "next_page": "next_page"
}