Claude Platform Docs

Listar límites de gasto efectivos

EffectiveListPage beta().organization().spendLimits().effective().list(params = EffectiveListParams.none(), requestOptions = RequestOptions.none())
GET/v1/organizations/spend_limits/effective

Lista el límite de gasto efectivo de cada miembro y el gasto acumulado en el período.

Devuelve una fila por cada (miembro, período) para el que el miembro resuelve un límite de gasto, con el ámbito source del que se heredó el límite de gasto. Pagina por miembro, por lo que los períodos de un miembro nunca se dividen entre páginas. Compatible solo con organizaciones de Claude Enterprise, no con organizaciones de Claude Console.

Parameters
EffectiveListParams params
Optional<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
Optional<String> page⁠Query parameter

Opaque cursor from a previous response's next_page field.

Optional<List<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")
Optional<List<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).

Listar límites de gasto efectivos
package com.anthropic.example;

import com.anthropic.client.AnthropicClient;
import com.anthropic.client.okhttp.AnthropicOkHttpClient;
import com.anthropic.models.beta.organization.spendlimits.effective.EffectiveListPage;
import com.anthropic.models.beta.organization.spendlimits.effective.EffectiveListParams;

public final class Main {
    private Main() {}

    public static void main(String[] args) {
        AnthropicClient client = AnthropicOkHttpClient.fromEnv();

        EffectiveListPage page = client.beta().organization().spendLimits().effective().list();
    }
}
Returns Examples
Response 200
{
  "data": [
    {
      "actor": {
        "deleted": true,
        "email_address": "email_address",
        "name": "name",
        "type": "user_actor",
        "user_id": "user_01WCz1FkmYMm4gnmykNKUu3Q"
      },
      "amount": "50000",
      "currency": "USD",
      "period": "daily",
      "period_to_date_spend": "12050.5",
      "scope": {
        "type": "user",
        "user_id": "user_01WCz1FkmYMm4gnmykNKUu3Q"
      },
      "source": {
        "type": "user",
        "user_id": "user_01WCz1FkmYMm4gnmykNKUu3Q"
      },
      "spend_limit_id": "spend_limit_id"
    }
  ],
  "next_page": "next_page"
}