Spend Limits changedapi/beta/organization/spend_limits
Nearest release: v2.1.328, published under an hour before 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+92added
Lines−2removed
From line
345
where the diff opens
First seen
10 Sep 2026
this site's first read of the page
Recorded edits24to this page, all time
### Errors ### Errors ### Errors ### Errors ## Errors ### spend_limits_admin_api_writes_not_enabled #### Errors #### Errors #### Errors
The whole hunk
from line 345, old and new numbered
/
from line 345
345345
346346 format: date-time
347347
348### Errors
349
350Any method can also return the general [HTTP errors](https://platform.claude.com/docs/en/api/errors?sdk_languages=http).
351
352Each code below is the value of `error.details.error_code` in the response body.
353
354- `sandbox_egress_restricted` (HTTP status 403)
355
356 The request came from a Claude sandbox with restricted network access, which is not allowed to make this change. Send it from outside the sandbox, or from a sandbox with unrestricted network access.
357
358- `spend_limits_admin_api_writes_not_enabled` (HTTP status 403)
359
360 The organization cannot retrieve, set or delete spend limits with an Admin API credential.
361
348362### Example
349363
350364```bash
from line 541
527541
528542 format: date-time
529543
544### Errors
545
546Any method can also return the general [HTTP errors](https://platform.claude.com/docs/en/api/errors?sdk_languages=http).
547
548Each code below is the value of `error.details.error_code` in the response body.
549
550- `spend_limits_admin_api_writes_not_enabled` (HTTP status 403)
551
552 The organization cannot retrieve, set or delete spend limits with an Admin API credential.
553
530554### Example
531555
532556```bash
from line 613
589613
590614- `id: string`
591615
616### Errors
617
618Any method can also return the general [HTTP errors](https://platform.claude.com/docs/en/api/errors?sdk_languages=http).
619
620Each code below is the value of `error.details.error_code` in the response body.
621
622- `sandbox_egress_restricted` (HTTP status 403)
623
624 The request came from a Claude sandbox with restricted network access, which is not allowed to make this change. Send it from outside the sandbox, or from a sandbox with unrestricted network access.
625
626- `spend_limits_admin_api_writes_not_enabled` (HTTP status 403)
627
628 The organization cannot retrieve, set or delete spend limits with an Admin API credential.
629
592630### Example
593631
594632```bash
from line 968
930968
931969- `next_page: string or null`
932970
971### Errors
972
973Any method can also return the general [HTTP errors](https://platform.claude.com/docs/en/api/errors?sdk_languages=http).
974
975Each code below is the value of `error.details.error_code` in the response body.
976
977- `organization_type_not_supported` (HTTP status 400)
978
979 The endpoint does not support the organization's type. Each endpoint's description says which organization types it supports.
980
933981### Example
934982
935983```bash
from line 1283
12351283
12361284- `BetaSpendLimitsAdminAPIWritesNotEnabledErrorDetails object`
12371285
1238 The organization cannot retrieve, set or delete spend limits with an Admin API credential.
1239
12401286 - `error_code: "spend_limits_admin_api_writes_not_enabled"`
12411287
12421288### Beta Spend Summary
from line 1467
14211467
14221468 - `id: string`
14231469
1470## Errors
1471
1472### spend_limits_admin_api_writes_not_enabled
1473
1474HTTP status 403
1475
1476- `"spend_limits_admin_api_writes_not_enabled"`
1477
1478 The organization cannot retrieve, set or delete spend limits with an Admin API credential.
1479
1480 - `details: BetaSpendLimitsAdminAPIWritesNotEnabledErrorDetails`
1481
1482 - `error_code: "spend_limits_admin_api_writes_not_enabled"`
1483
14241484## Spend Limits › Effective
14251485
14261486### List Effective Spend Limits
from line 1705
16451705
16461706- `next_page: string or null`
16471707
1708#### Errors
1709
1710Any method can also return the general [HTTP errors](https://platform.claude.com/docs/en/api/errors?sdk_languages=http).
1711
1712Each code below is the value of `error.details.error_code` in the response body.
1713
1714- `organization_type_not_supported` (HTTP status 400)
1715
1716 The endpoint does not support the organization's type. Each endpoint's description says which organization types it supports.
1717
16481718#### Example
16491719
16501720```bash
from line 2729
26592729
26602730 - `"pending"`
26612731
2732#### Errors
2733
2734Any method can also return the general [HTTP errors](https://platform.claude.com/docs/en/api/errors?sdk_languages=http).
2735
2736Each code below is the value of `error.details.error_code` in the response body.
2737
2738- `sandbox_egress_restricted` (HTTP status 403)
2739
2740 The request came from a Claude sandbox with restricted network access, which is not allowed to make this change. Send it from outside the sandbox, or from a sandbox with unrestricted network access.
2741
26622742#### Example
26632743
26642744```bash
from line 3067
29873067 - `"denied"`
29883068
29893069 - `"pending"`
3070
3071#### Errors
3072
3073Any method can also return the general [HTTP errors](https://platform.claude.com/docs/en/api/errors?sdk_languages=http).
3074
3075Each code below is the value of `error.details.error_code` in the response body.
3076
3077- `sandbox_egress_restricted` (HTTP status 403)
3078
3079 The request came from a Claude sandbox with restricted network access, which is not allowed to make this change. Send it from outside the sandbox, or from a sandbox with unrestricted network access.
29903080
29913081#### Example
29923082
No line in this hunk matches that.