Claude Platform Docs

List Effective Spend Limits

client.beta.organization.spendLimits.effective.list(query?, options?): PageCursor<BetaSpendSummary>
GET/v1/organizations/spend_limits/effective

List each member's effective spend limit and period-to-date spend.

Returns one row per (member, period) the member resolves a spend limit for, with the source scope the spend limit was inherited from. Paginates by member, so a member's periods never split across pages. Supported for Claude Enterprise organizations only, not for Claude Console organizations.

Parameters
query: EffectiveListParams { limit; page; period; user_ids }
limit?: number⁠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
page?: string | null⁠Query parameter

Opaque cursor from a previous response's next_page field.

period?: Array<BetaSpendLimitPeriod> | null⁠Query parameter

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

maxItems3
One of the following:
"daily"
"monthly"
"weekly"
user_ids?: Array<string> | null⁠Query parameter

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

maxItems100
Returns
interface BetaSpendSummary { actor; amount; currency; /* 5 more */ }

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

Errors

Any method can also return the general HTTP errors.

OrganizationTypeNotSupportedErrorHTTP status 400error code organization_type_not_supported

The endpoint does not support the organization's type. Each endpoint's description says which organization types it supports.

List Effective Spend Limits
import Anthropic from "@anthropic-ai/sdk";

const client = new Anthropic({
  apiKey: process.env["ANTHROPIC_API_KEY"] // This is the default and can be omitted
});

// Automatically fetches more pages as needed.
for await (const betaSpendSummary of client.beta.organization.spendLimits.effective.list()) {
  console.log(betaSpendSummary.spend_limit_id);
}
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"
}