Follow Discord
Sweep 03 Dec 2026 · 19:13Z Build v2.1.336 553 read Stable v2.1.332 Latest v2.1.336 Next v2.1.336 Feeds RSS JSON llms.txt llms-full.txt Unofficial
One change · api

spend-limits-api changedmanage-claude/spend-limits-api

Nearest release: v2.1.333, published 4 hours after this site recorded the change. Shown because the two are within 24 hours of each other. Nothing here says the release caused the edit.

Recorded here
Lines+16added
Lines−10removed
From line 9 where the diff opens
First seen 14 Aug 2026 this site's first read of the page
Recorded edits23to this page, all time

### What happens when you delete a per-user override? ### Can you set a seat-tier or organization-wide default through this API? ### What happens when I delete a per-user override? ### Can I set a seat-tier or organization-wide default through this API?

The whole hunk

from line 9, old and new numbered
/
lines
from line 9
99For per-user and time-bucketed usage and cost *reporting*, see [Analytics APIs](https://platform.claude.com/docs/en/manage-claude/analytics-api) or the [Usage and Cost Analytics API](https://platform.claude.com/docs/en/manage-claude/usage-cost-analytics-api).
1010 
1111<Check>
12 **Scoped Admin API key required**
12 **Enterprise Admin API key required**
1313 
14 These endpoints require an Admin API key with the `read:spend_limits` scope (for `GET` endpoints) or the `write:spend_limits` scope (for `POST` and `DELETE` endpoints). See [Create an Admin API key](https://platform.claude.com/docs/en/manage-claude/admin-api-keys#create-a-key-for-a-claude-enterprise-organization) for where your primary owner creates one and which scopes to select. Pass the key in the `x-api-key` header on every request, together with the [`anthropic-version`](https://platform.claude.com/docs/en/api/versioning) header.
14 These endpoints require an Enterprise Admin API key. `GET` endpoints need the `read:spend_limits` scope, and `POST` and `DELETE` endpoints need the `write:spend_limits` scope.
1515</Check>
1616 
17Your primary owner creates the key in claude.ai and selects its scopes. See [Create a key for a Claude Enterprise organization](https://platform.claude.com/docs/en/manage-claude/admin-api-keys#create-a-key-for-a-claude-enterprise-organization) on the Admin API keys and tokens page. In a cURL request, pass the key in the `x-api-key` header, together with the `anthropic-version` header ([API versions](https://platform.claude.com/docs/en/api/versioning)).
18 
1719<Note>
1820 The Spend Limits API is available to Claude Enterprise organizations only. It is not available to Claude Platform (Claude Console) organizations.
1921</Note>
from line 1187
11851187 
11861188## Example workflows
11871189 
1188Some of these workflows combine the Spend Limits API with the cost endpoint of the [Usage and Cost Analytics API](https://platform.claude.com/docs/en/manage-claude/usage-cost-analytics-api). The cost endpoint is designed for organization-wide spend reporting across a date range. `GET /spend_limits/effective` returns the cap that currently applies to each member. Start a sweep with the cost endpoint to discover which members to look at, then read their current caps with `/effective`.
1190Some of these workflows combine the Spend Limits API with the cost endpoint of the [Usage and Cost Analytics API](https://platform.claude.com/docs/en/manage-claude/usage-cost-analytics-api). The cost endpoint reports your organization’s spend across a date range and can group it by member. Start there to find which members to look at. Then, read the spend limit that applies to each of them with `GET /v1/organizations/spend_limits/effective`.
11891191 
1190Spend Limits endpoints require the `spend_limits` scopes and the cost endpoint requires `read:analytics`. The examples use one Admin API key that has the scopes of every API they call. A primary owner [selects these scopes when creating the key](https://platform.claude.com/docs/en/manage-claude/admin-api-keys#choose-scopes-for-a-claude-enterprise-key). All monetary values on both are decimal strings in minor units (cents). Both APIs paginate with an opaque cursor. Set an explicit `limit` and page through `next_page` until it’s `null` to cover the whole organization.
1192The cost endpoint also requires `read:analytics`. The examples use one Admin API key that has the scopes of every API they call. The primary owner [selects these scopes when creating the key](https://platform.claude.com/docs/en/manage-claude/enterprise-admin-api-key-scopes#choose-scopes-for-a-claude-enterprise-key).
11911193 
1194All monetary values on both APIs are decimal strings in minor units, such as cents. See [Amounts and currency](https://platform.claude.com/docs/en/manage-claude/spend-limits-api#amounts-and-currency).
1195 
1196Both APIs paginate with an opaque cursor. Set an explicit `limit` and go through every page to cover the whole organization. For the Spend Limits endpoints, see [Pagination](https://platform.claude.com/docs/en/manage-claude/spend-limits-api#pagination).
1197 
11921198### Automate the increase-request review flow
11931199 
11941200Run a scheduled job that fetches pending requests, applies your organization’s approval policy, and resolves each one.
from line 1610
16041610 ```
16051611 </CodeGroup>
16061612 
1607 Each row contains `group.actor.user_id`, `group.actor.email_address`, and `cost.amount` (the member’s spend in cents). Page through `next_page` to cover the whole organization.
1613 Each row contains `group.actor.user_id`, `group.actor.email_address`, and `cost.amount` (the member’s spend in minor units of the row’s `cost.currency`, such as cents).
16081614 
160916152. For the top spenders (or everyone above a dollar threshold), fetch effective caps in batches:
16101616 
from line 1956
19501956 ```
19511957 </CodeGroup>
19521958 
1953 With `time_bucket_width` set, each member spans one row for each day with usage. Page through `next_page` to collect every member’s full series.
1959 With `time_bucket_width` set, each member has one row for each day with usage. Go through every page to collect every member’s full series.
19541960 
195519612. Group rows by `group.actor.user_id`. For each member, sum the most recent 7 days and the prior 7 days. Flag members whose recent week exceeds the prior week by your chosen multiple (for example, three). Cost for recent days can still change. For repeatable comparisons, set `ending_at` at or before a `data_refreshed_at` you have already seen (see [Data freshness](https://platform.claude.com/docs/en/manage-claude/usage-cost-analytics-api#data-freshness)).
19561962 
from line 2371
23652371 
23662372No. `POST /v1/organizations/spend_limits` writes the override but leaves the pending request untouched. Use `POST /v1/organizations/spend_limit_increase_requests/{id}/approve` to resolve the request and write the override in one call.
23672373 
2368### What happens when I delete a per-user override?
2374### What happens when you delete a per-user override?
23692375 
23702376The member falls back to whatever they’d inherit from the hierarchy: their group, seat-tier, or organization default. If no default exists at any level, the member is unlimited.
23712377 
2372### Can I set a seat-tier or organization-wide default through this API?
2378### Can you set a seat-tier or organization-wide default through this API?
23732379 
23742380No. Only per-user overrides can be written through this API. Seat-tier, group, and organization-level defaults are configured in claude.ai Organization settings.
23752381 
Feedback