The whole hunk
from line 9, old and new numbered
/
lines
The two sides of this change are more than 400 edits apart, too far apart to line up, so this is the differ's own diff of it and the words inside a line are not marked.
from line 9
99
1010**POST** `/v1/organizations/spend_limits`
1111
12Set a per-user spend limit override.
12Set a spend limit.
1313
1414Upsert keyed on (scope, period): setting a limit that already exists
15overwrites it in place. Only `scope.type: "user"` is accepted; seat-tier,
16group, and organization-level defaults are configured in claude.ai.
15overwrites it in place. A Claude Enterprise organization sets `user`
16limits. Its seat-tier, group, and organization-level defaults are configured
17in claude.ai. A Claude Console organization sets `organization` and
18`workspace` limits, which are monthly and always carry an amount. Setting those
19limits is in an early access preview. To request access, contact your
20Anthropic account team.
1721
1822### Body parameters
1923
from line 25
2125
2226 Limit amount as a non-negative integer decimal string in the minor unit of the organization's billing currency (cents for USD): "50000" is $500.00. `null` sets an explicit no-limit override for this scope and `period` only — each period resolves independently, so caps for other periods still apply.
2327
24- `scope: object`
25
26 Scope selecting a single member of the organization.
27
28 - `type: "user"`
29
30 Scope type. Always `user` for this scope.
31
32 default: user
33
34 - `user_id: string`
35
36 Tagged ID of the member the spend limit applies to.
28- `scope: User or Organization or Workspace`
29
30 What the limit applies to. Claude Enterprise organizations set `user` limits. Claude Console organizations set `organization` and `workspace` limits. Any other combination returns 400. Setting `organization` and `workspace` limits through the API is in an early access preview. To request access, contact your Anthropic account team.
31
32 - `User object`
33
34 Scope selecting a single member of the organization.
35
36 - `type: "user"`
37
38 Scope type. Always `user` for this scope.
39
40 default: user
41
42 - `user_id: string`
43
44 Tagged ID of the member the spend limit applies to.
45
46 - `Organization object`
47
48 - `type: "organization"`
49
50 default: organization
51
52 - `Workspace object`
53
54 Scope selecting one workspace of a Claude Console organization.
55
56 - `type: "workspace"`
57
58 Scope type. Always `workspace` for this scope.
59
60 default: workspace
61
62 - `workspace_id: string`
63
64 Tagged ID of the workspace the spend limit applies to.
3765
3866- `period: optional "daily" or "monthly" or "weekly"`
3967
from line 111
83111
84112 - `"weekly"`
85113
86 - `scope: User or SeatTier or RBACGroup or 2 more`
114 - `scope: User or SeatTier or RBACGroup or 3 more`
87115
88116 What the limit applies to. A tagged union on `type`; each variant carries the identifier for its scope.
89117
from line 158
130158 - `type: "organization"`
131159
132160 default: organization
161
162 - `Workspace object`
163
164 Scope selecting one workspace of a Claude Console organization.
165
166 - `type: "workspace"`
167
168 Scope type. Always `workspace` for this scope.
169
170 default: workspace
171
172 - `workspace_id: string`
173
174 Tagged ID of the workspace the spend limit applies to.
133175
134176 - `updated_at: string`
135177
from line 266
224266
225267 - `"weekly"`
226268
227 - `scope: User or SeatTier or RBACGroup or 2 more`
269 - `scope: User or SeatTier or RBACGroup or 3 more`
228270
229271 What the limit applies to. A tagged union on `type`; each variant carries the identifier for its scope.
230272
from line 313
271313 - `type: "organization"`
272314
273315 default: organization
316
317 - `Workspace object`
318
319 Scope selecting one workspace of a Claude Console organization.
320
321 - `type: "workspace"`
322
323 Scope type. Always `workspace` for this scope.
324
325 default: workspace
326
327 - `workspace_id: string`
328
329 Tagged ID of the workspace the spend limit applies to.
274330
275331 - `updated_at: string`
276332
from line 364
308364
309365**DELETE** `/v1/organizations/spend_limits/{spend_limit_id}`
310366
311Delete a per-user spend limit override.
312
313The member falls back to any inherited spend limit at that period.
314Seat-tier, group, and organization-level rows cannot be deleted via
315this endpoint.
367Delete a spend limit.
368
369For a Claude Enterprise organization, this deletes a per-user override, and
370the member falls back to any inherited spend limit at that period. Its
371seat-tier, group, and organization-level rows cannot be deleted via this
372endpoint. A Claude Console organization deletes its organization and
373workspace limits. Deleting them through the API is in an early access preview.
316374
317375### Path parameters
318376
from line 448
390448
391449- `data: array of BetaSpendSummary`
392450
393 - `actor: object`
394
395 A user within the organization. `name` and `email_address` are
396 null when the underlying account is unavailable or has been deleted;
397 `deleted` is true only for deleted accounts.
398
399 - `type: "user_actor"`
400
401 Actor type. Always `user_actor`.
402
403 default: user_actor
404
405 - `deleted: boolean`
406
407 True only when the underlying account has been deleted.
408
409 default: false
410
411 - `email_address: string or null`
412
413 The user's email address. Null when the account is unavailable or has been deleted.
414
415 - `name: string or null`
416
417 The user's current display name. Null when the account is unavailable, has been deleted, or has no name set.
418
419 - `user_id: string`
420
421 Tagged ID of the user.
451 - `actor: UserActor or ScopedAPIKeyActor`
452
453 - `UserActor object`
454
455 A user within the organization. `name` and `email_address` are
456 null when the underlying account is unavailable or has been deleted;
457 `deleted` is true only for deleted accounts.
458
459 - `type: "user_actor"`
460
461 Actor type. Always `user_actor`.
462
463 default: user_actor
464
465 - `deleted: boolean`
466
467 True only when the underlying account has been deleted.
468
469 default: false
470
471 - `email_address: string or null`
472
473 The user's email address. Null when the account is unavailable or has been deleted.
474
475 - `name: string or null`
476
477 The user's current display name. Null when the account is unavailable, has been deleted, or has no name set.
478
479 - `user_id: string`
480
481 Tagged ID of the user.
482
483 - `ScopedAPIKeyActor object`
484
485 A scoped Admin API key acting on behalf of the organization.
486
487 - `type: "scoped_api_key_actor"`
488
489 default: scoped_api_key_actor
490
491 - `scoped_api_key_id: string`
422492
423493 - `amount: string or null`
424494
from line 512
442512
443513 The member's spend so far in the current period, as a non-negative decimal string in the minor unit of `currency` (cents for USD). May carry fractional minor units up to three decimal places (e.g. `"12050.5"`) — metered usage is not rounded to whole cents. Reads as `"0"` when the spend reading is temporarily unavailable.
444514
445 - `scope: object`
446
447 Scope selecting a single member of the organization.
448
449 - `type: "user"`
450
451 Scope type. Always `user` for this scope.
452
453 default: user
454
455 - `user_id: string`
456
457 Tagged ID of the member the spend limit applies to.
458
459 - `source: User or SeatTier or RBACGroup or 2 more`
515 - `scope: User or SeatTier or RBACGroup or 3 more`
460516
461517 - `User object`
462518
from line 557
501557 - `type: "organization"`
502558
503559 default: organization
560
561 - `Workspace object`
562
563 Scope selecting one workspace of a Claude Console organization.
564
565 - `type: "workspace"`
566
567 Scope type. Always `workspace` for this scope.
568
569 default: workspace
570
571 - `workspace_id: string`
572
573 Tagged ID of the workspace the spend limit applies to.
574
575 - `source: User or SeatTier or RBACGroup or 3 more`
576
577 - `User object`
578
579 Scope selecting a single member of the organization.
580
581 - `type: "user"`
582
583 Scope type. Always `user` for this scope.
584
585 default: user
586
587 - `user_id: string`
588
589 Tagged ID of the member the spend limit applies to.
590
591 - `SeatTier object`
592
593 - `type: "seat_tier"`
594
595 default: seat_tier
596
597 - `seat_tier: string`
598
599 - `RBACGroup object`
600
601 - `type: "rbac_group"`
602
603 default: rbac_group
604
605 - `rbac_group_id: string`
606
607 - `OrganizationService object`
608
609 - `type: "organization_service"`
610
611 default: organization_service
612
613 - `service: string`
614
615 - `Organization object`
616
617 - `type: "organization"`
618
619 default: organization
620
621 - `Workspace object`
622
623 Scope selecting one workspace of a Claude Console organization.
624
625 - `type: "workspace"`
626
627 Scope type. Always `workspace` for this scope.
628
629 default: workspace
630
631 - `workspace_id: string`
632
633 Tagged ID of the workspace the spend limit applies to.
504634
505635 - `spend_limit_id: string`
506636
from line 718
588718
589719 - `"weekly"`
590720
591 - `scope: User or SeatTier or RBACGroup or 2 more`
721 - `scope: User or SeatTier or RBACGroup or 3 more`
592722
593723 What the limit applies to. A tagged union on `type`; each variant carries the identifier for its scope.
594724
from line 766
636766
637767 default: organization
638768
769 - `Workspace object`
770
771 Scope selecting one workspace of a Claude Console organization.
772
773 - `type: "workspace"`
774
775 Scope type. Always `workspace` for this scope.
776
777 default: workspace
778
779 - `workspace_id: string`
780
781 Tagged ID of the workspace the spend limit applies to.
782
639783 - `updated_at: string`
640784
641785 RFC 3339 datetime at which the spend limit was last modified.
from line 791
647791- `BetaSpendSummary object`
648792
649793 Per-member effective-limit report row (`GET /spend_limits/effective`).
794
795 - `actor: UserActor or ScopedAPIKeyActor`
796
797 - `UserActor object`
798
799 A user within the organization. `name` and `email_address` are
800 null when the underlying account is unavailable or has been deleted;
801 `deleted` is true only for deleted accounts.
802
803 - `type: "user_actor"`
804
805 Actor type. Always `user_actor`.
806
807 default: user_actor
808
809 - `deleted: boolean`
810
811 True only when the underlying account has been deleted.
812
813 default: false
814
815 - `email_address: string or null`
816
817 The user's email address. Null when the account is unavailable or has been deleted.
818
819 - `name: string or null`
820
821 The user's current display name. Null when the account is unavailable, has been deleted, or has no name set.
822
823 - `user_id: string`
824
825 Tagged ID of the user.
826
827 - `ScopedAPIKeyActor object`
828
829 A scoped Admin API key acting on behalf of the organization.
830
831 - `type: "scoped_api_key_actor"`
832
833 default: scoped_api_key_actor
834
835 - `scoped_api_key_id: string`
836
837 - `amount: string or null`
838
839 Effective limit amount as a non-negative integer decimal string in the minor unit of `currency` (cents for USD). `null` means no limit applies for this row's `period` — each period resolves independently, so another period may still cap this member.
840
841 - `currency: string`
842
843 ISO 4217 code of the organization's billing currency; the unit for `amount` and `period_to_date_spend`.
844
845 - `period: "daily" or "monthly" or "weekly"`
846
847 Period this row's effective limit and spend are reported for.
848
849 - `"daily"`
850
851 - `"monthly"`
852
853 - `"weekly"`
854
855 - `period_to_date_spend: string`
856
857 The member's spend so far in the current period, as a non-negative decimal string in the minor unit of `currency` (cents for USD). May carry fractional minor units up to three decimal places (e.g. `"12050.5"`) — metered usage is not rounded to whole cents. Reads as `"0"` when the spend reading is temporarily unavailable.
858
859 - `scope: User or SeatTier or RBACGroup or 3 more`
860
861 - `User object`
862
863 Scope selecting a single member of the organization.
864
865 - `type: "user"`
866
867 Scope type. Always `user` for this scope.
868
869 default: user
870
871 - `user_id: string`
872
873 Tagged ID of the member the spend limit applies to.
874
875 - `SeatTier object`
876
877 - `type: "seat_tier"`
878
879 default: seat_tier
880
881 - `seat_tier: string`
882
883 - `RBACGroup object`
884
885 - `type: "rbac_group"`
886
887 default: rbac_group
888
889 - `rbac_group_id: string`
890
891 - `OrganizationService object`
892
893 - `type: "organization_service"`
894
895 default: organization_service
896
897 - `service: string`
898
899 - `Organization object`
900
901 - `type: "organization"`
902
903 default: organization
904
905 - `Workspace object`
906
907 Scope selecting one workspace of a Claude Console organization.
908
909 - `type: "workspace"`
910
911 Scope type. Always `workspace` for this scope.
912
913 default: workspace
914
915 - `workspace_id: string`
916
917 Tagged ID of the workspace the spend limit applies to.
918
919 - `source: User or SeatTier or RBACGroup or 3 more`
920
921 - `User object`
922
923 Scope selecting a single member of the organization.
924
925 - `type: "user"`
926
927 Scope type. Always `user` for this scope.
928
929 default: user
930
931 - `user_id: string`
932
933 Tagged ID of the member the spend limit applies to.
934
935 - `SeatTier object`
936
937 - `type: "seat_tier"`
938
939 default: seat_tier
940
941 - `seat_tier: string`
942
943 - `RBACGroup object`
944
945 - `type: "rbac_group"`
946
947 default: rbac_group
948
949 - `rbac_group_id: string`
950
951 - `OrganizationService object`
952
953 - `type: "organization_service"`
954
955 default: organization_service
956
957 - `service: string`
958
959 - `Organization object`
960
961 - `type: "organization"`
962
963 default: organization
964
965 - `Workspace object`
966
967 Scope selecting one workspace of a Claude Console organization.
968
969 - `type: "workspace"`
970
971 Scope type. Always `workspace` for this scope.
972
973 default: workspace
974
975 - `workspace_id: string`
976
977 Tagged ID of the workspace the spend limit applies to.
978
979 - `spend_limit_id: string`
980
981### Spend Limit Delete Response
982
983- `SpendLimitDeleteResponse object`
984
985 - `type: "spend_limit_deleted"`
986
987 default: spend_limit_deleted
988
989 - `id: string`
990
991## Spend Limits › Increase Requests
992
993### List Spend Limit Increase Requests
994
995**GET** `/v1/organizations/spend_limit_increase_requests`
996
997List spend limit increase requests, most recent first.
998
999Pending requests include a live `spend_summary` for the requester.
1000Requests whose requester is no longer a member are excluded.
1001
1002#### Query parameters
1003
1004- `actor_ids: optional array of string`
1005
1006 Filter by requester, as `user_...` tagged IDs.
1007
1008- `limit: optional number`
1009
1010 default: 20, maximum: 1000, minimum: 1
1011
1012- `page: optional string`
1013
1014 Opaque cursor from a previous response's `next_page`.
1015
1016- `status: optional array of "approved" or "denied" or "pending"`
1017
1018 Filter by status. Omit to return all.
1019
1020 - `"approved"`
1021
1022 - `"denied"`
1023
1024 - `"pending"`
1025
1026#### Returns
1027
1028- `data: array of BetaSpendLimitIncreaseRequest`
1029
1030 - `type: "spend_limit_increase_request"`
1031
1032 default: spend_limit_increase_request
1033
1034 - `id: string`
6501035
6511036 - `actor: object`
6521037
from line 1063
6781063
6791064 Tagged ID of the user.
6801065
681 - `amount: string or null`
682
683 Effective limit amount as a non-negative integer decimal string in the minor unit of `currency` (cents for USD). `null` means no limit applies for this row's `period` — each period resolves independently, so another period may still cap this member.
684
685 - `currency: string`
686
687 ISO 4217 code of the organization's billing currency; the unit for `amount` and `period_to_date_spend`.
688
689 - `period: "daily" or "monthly" or "weekly"`
690
691 Period this row's effective limit and spend are reported for.
692
693 - `"daily"`
694
695 - `"monthly"`
696
697 - `"weekly"`
698
699 - `period_to_date_spend: string`
700
701 The member's spend so far in the current period, as a non-negative decimal string in the minor unit of `currency` (cents for USD). May carry fractional minor units up to three decimal places (e.g. `"12050.5"`) — metered usage is not rounded to whole cents. Reads as `"0"` when the spend reading is temporarily unavailable.
702
703 - `scope: object`
704
705 Scope selecting a single member of the organization.
706
707 - `type: "user"`
708
709 Scope type. Always `user` for this scope.
710
711 default: user
712
713 - `user_id: string`
714
715 Tagged ID of the member the spend limit applies to.
716
717 - `source: User or SeatTier or RBACGroup or 2 more`
718
719 - `User object`
720
721 Scope selecting a single member of the organization.
722
723 - `type: "user"`
724
725 Scope type. Always `user` for this scope.
726
727 default: user
728
729 - `user_id: string`
730
731 Tagged ID of the member the spend limit applies to.
732
733 - `SeatTier object`
734
735 - `type: "seat_tier"`
736
737 default: seat_tier
738
739 - `seat_tier: string`
740
741 - `RBACGroup object`
742
743 - `type: "rbac_group"`
744
745 default: rbac_group
746
747 - `rbac_group_id: string`
748
749 - `OrganizationService object`
750
751 - `type: "organization_service"`
752
753 default: organization_service
754
755 - `service: string`
756
757 - `Organization object`
758
759 - `type: "organization"`
760
761 default: organization
762
763 - `spend_limit_id: string`
764
765### Spend Limit Delete Response
766
767- `SpendLimitDeleteResponse object`
768
769 - `type: "spend_limit_deleted"`
770
771 default: spend_limit_deleted
772
773 - `id: string`
774
775## Spend Limits › Increase Requests
776
777### List Spend Limit Increase Requests
778
779**GET** `/v1/organizations/spend_limit_increase_requests`
780
781List spend limit increase requests, most recent first.
782
783Pending requests include a live `spend_summary` for the requester.
784Requests whose requester is no longer a member are excluded.
785
786#### Query parameters
787
788- `actor_ids: optional array of string`
789
790 Filter by requester, as `user_...` tagged IDs.
791
792- `limit: optional number`
793
794 default: 20, maximum: 1000, minimum: 1
795
796- `page: optional string`
797
798 Opaque cursor from a previous response's `next_page`.
799
800- `status: optional array of "approved" or "denied" or "pending"`
801
802 Filter by status. Omit to return all.
803
804 - `"approved"`
805
806 - `"denied"`
807
808 - `"pending"`
809
810#### Returns
811
812- `data: array of BetaSpendLimitIncreaseRequest`
813
814 - `type: "spend_limit_increase_request"`
815
816 default: spend_limit_increase_request
817
818 - `id: string`
819
820 - `actor: object`
821
822 A user within the organization. `name` and `email_address` are
823 null when the underlying account is unavailable or has been deleted;
824 `deleted` is true only for deleted accounts.
825
826 - `type: "user_actor"`
827
828 Actor type. Always `user_actor`.
829
830 default: user_actor
831
832 - `deleted: boolean`
833
834 True only when the underlying account has been deleted.
835
836 default: false
837
838 - `email_address: string or null`
839
840 The user's email address. Null when the account is unavailable or has been deleted.
841
842 - `name: string or null`
843
844 The user's current display name. Null when the account is unavailable, has been deleted, or has no name set.
845
846 - `user_id: string`
847
848 Tagged ID of the user.
849
8501066 - `created_at: string`
8511067
8521068 format: date-time
from line 1125
9091125
9101126 Per-member effective-limit report row (`GET /spend_limits/effective`).
9111127
912 - `actor: object`
913
914 A user within the organization. `name` and `email_address` are
915 null when the underlying account is unavailable or has been deleted;
916 `deleted` is true only for deleted accounts.
917
918 - `type: "user_actor"`
919
920 Actor type. Always `user_actor`.
921
922 default: user_actor
923
924 - `deleted: boolean`
925
926 True only when the underlying account has been deleted.
927
928 default: false
929
930 - `email_address: string or null`
931
932 The user's email address. Null when the account is unavailable or has been deleted.
933
934 - `name: string or null`
935
936 The user's current display name. Null when the account is unavailable, has been deleted, or has no name set.
937
938 - `user_id: string`
939
940 Tagged ID of the user.
1128 - `actor: UserActor or ScopedAPIKeyActor`
1129
1130 - `UserActor object`
1131
1132 A user within the organization. `name` and `email_address` are
1133 null when the underlying account is unavailable or has been deleted;
1134 `deleted` is true only for deleted accounts.
1135
1136 - `type: "user_actor"`
1137
1138 Actor type. Always `user_actor`.
1139
1140 default: user_actor
1141
1142 - `deleted: boolean`
1143
1144 True only when the underlying account has been deleted.
1145
1146 default: false
1147
1148 - `email_address: string or null`
1149
1150 The user's email address. Null when the account is unavailable or has been deleted.
1151
1152 - `name: string or null`
1153
1154 The user's current display name. Null when the account is unavailable, has been deleted, or has no name set.
1155
1156 - `user_id: string`
1157
1158 Tagged ID of the user.
1159
1160 - `ScopedAPIKeyActor object`
1161
1162 A scoped Admin API key acting on behalf of the organization.
1163
1164 - `type: "scoped_api_key_actor"`
1165
1166 default: scoped_api_key_actor
1167
1168 - `scoped_api_key_id: string`
9411169
9421170 - `amount: string or null`
9431171
from line 1189
9611189
9621190 The member's spend so far in the current period, as a non-negative decimal string in the minor unit of `currency` (cents for USD). May carry fractional minor units up to three decimal places (e.g. `"12050.5"`) — metered usage is not rounded to whole cents. Reads as `"0"` when the spend reading is temporarily unavailable.
9631191
964 - `scope: object`
965
966 Scope selecting a single member of the organization.
967
968 - `type: "user"`
969
970 Scope type. Always `user` for this scope.
971
972 default: user
973
974 - `user_id: string`
975
976 Tagged ID of the member the spend limit applies to.
977
978 - `source: User or SeatTier or RBACGroup or 2 more`
1192 - `scope: User or SeatTier or RBACGroup or 3 more`
9791193
9801194 - `User object`
9811195
from line 1234
10201234 - `type: "organization"`
10211235
10221236 default: organization
1237
1238 - `Workspace object`
1239
1240 Scope selecting one workspace of a Claude Console organization.
1241
1242 - `type: "workspace"`
1243
1244 Scope type. Always `workspace` for this scope.
1245
1246 default: workspace
1247
1248 - `workspace_id: string`
1249
1250 Tagged ID of the workspace the spend limit applies to.
1251
1252 - `source: User or SeatTier or RBACGroup or 3 more`
1253
1254 - `User object`
1255
1256 Scope selecting a single member of the organization.
1257
1258 - `type: "user"`
1259
1260 Scope type. Always `user` for this scope.
1261
1262 default: user
1263
1264 - `user_id: string`
1265
1266 Tagged ID of the member the spend limit applies to.
1267
1268 - `SeatTier object`
1269
1270 - `type: "seat_tier"`
1271
1272 default: seat_tier
1273
1274 - `seat_tier: string`
1275
1276 - `RBACGroup object`
1277
1278 - `type: "rbac_group"`
1279
1280 default: rbac_group
1281
1282 - `rbac_group_id: string`
1283
1284 - `OrganizationService object`
1285
1286 - `type: "organization_service"`
1287
1288 default: organization_service
1289
1290 - `service: string`
1291
1292 - `Organization object`
1293
1294 - `type: "organization"`
1295
1296 default: organization
1297
1298 - `Workspace object`
1299
1300 Scope selecting one workspace of a Claude Console organization.
1301
1302 - `type: "workspace"`
1303
1304 Scope type. Always `workspace` for this scope.
1305
1306 default: workspace
1307
1308 - `workspace_id: string`
1309
1310 Tagged ID of the workspace the spend limit applies to.
10231311
10241312 - `spend_limit_id: string`
10251313
from line 1500
12121500
12131501 Per-member effective-limit report row (`GET /spend_limits/effective`).
12141502
1215 - `actor: object`
1216
1217 A user within the organization. `name` and `email_address` are
1218 null when the underlying account is unavailable or has been deleted;
1219 `deleted` is true only for deleted accounts.
1220
1221 - `type: "user_actor"`
1222
1223 Actor type. Always `user_actor`.
1224
1225 default: user_actor
1226
1227 - `deleted: boolean`
1228
1229 True only when the underlying account has been deleted.
1230
1231 default: false
1232
1233 - `email_address: string or null`
1234
1235 The user's email address. Null when the account is unavailable or has been deleted.
1236
1237 - `name: string or null`
1238
1239 The user's current display name. Null when the account is unavailable, has been deleted, or has no name set.
1240
1241 - `user_id: string`
1242
1243 Tagged ID of the user.
1503 - `actor: UserActor or ScopedAPIKeyActor`
1504
1505 - `UserActor object`
1506
1507 A user within the organization. `name` and `email_address` are
1508 null when the underlying account is unavailable or has been deleted;
1509 `deleted` is true only for deleted accounts.
1510
1511 - `type: "user_actor"`
1512
1513 Actor type. Always `user_actor`.
1514
1515 default: user_actor
1516
1517 - `deleted: boolean`
1518
1519 True only when the underlying account has been deleted.
1520
1521 default: false
1522
1523 - `email_address: string or null`
1524
1525 The user's email address. Null when the account is unavailable or has been deleted.
1526
1527 - `name: string or null`
1528
1529 The user's current display name. Null when the account is unavailable, has been deleted, or has no name set.
1530
1531 - `user_id: string`
1532
1533 Tagged ID of the user.
1534
1535 - `ScopedAPIKeyActor object`
1536
1537 A scoped Admin API key acting on behalf of the organization.
1538
1539 - `type: "scoped_api_key_actor"`
1540
1541 default: scoped_api_key_actor
1542
1543 - `scoped_api_key_id: string`
12441544
12451545 - `amount: string or null`
12461546
from line 1564
12641564
12651565 The member's spend so far in the current period, as a non-negative decimal string in the minor unit of `currency` (cents for USD). May carry fractional minor units up to three decimal places (e.g. `"12050.5"`) — metered usage is not rounded to whole cents. Reads as `"0"` when the spend reading is temporarily unavailable.
12661566
1267 - `scope: object`
1268
1269 Scope selecting a single member of the organization.
1270
1271 - `type: "user"`
1272
1273 Scope type. Always `user` for this scope.
1274
1275 default: user
1276
1277 - `user_id: string`
1278
1279 Tagged ID of the member the spend limit applies to.
1280
1281 - `source: User or SeatTier or RBACGroup or 2 more`
1567 - `scope: User or SeatTier or RBACGroup or 3 more`
12821568
12831569 - `User object`
12841570
from line 1609
13231609 - `type: "organization"`
13241610
13251611 default: organization
1612
1613 - `Workspace object`
1614
1615 Scope selecting one workspace of a Claude Console organization.
1616
1617 - `type: "workspace"`
1618
1619 Scope type. Always `workspace` for this scope.
1620
1621 default: workspace
1622
1623 - `workspace_id: string`
1624
1625 Tagged ID of the workspace the spend limit applies to.
1626
1627 - `source: User or SeatTier or RBACGroup or 3 more`
1628
1629 - `User object`
1630
1631 Scope selecting a single member of the organization.
1632
1633 - `type: "user"`
1634
1635 Scope type. Always `user` for this scope.
1636
1637 default: user
1638
1639 - `user_id: string`
1640
1641 Tagged ID of the member the spend limit applies to.
1642
1643 - `SeatTier object`
1644
1645 - `type: "seat_tier"`
1646
1647 default: seat_tier
1648
1649 - `seat_tier: string`
1650
1651 - `RBACGroup object`
1652
1653 - `type: "rbac_group"`
1654
1655 default: rbac_group
1656
1657 - `rbac_group_id: string`
1658
1659 - `OrganizationService object`
1660
1661 - `type: "organization_service"`
1662
1663 default: organization_service
1664
1665 - `service: string`
1666
1667 - `Organization object`
1668
1669 - `type: "organization"`
1670
1671 default: organization
1672
1673 - `Workspace object`
1674
1675 Scope selecting one workspace of a Claude Console organization.
1676
1677 - `type: "workspace"`
1678
1679 Scope type. Always `workspace` for this scope.
1680
1681 default: workspace
1682
1683 - `workspace_id: string`
1684
1685 Tagged ID of the workspace the spend limit applies to.
13261686
13271687 - `spend_limit_id: string`
13281688
from line 1918
15581918
15591919 - `"weekly"`
15601920
1561 - `scope: User or SeatTier or RBACGroup or 2 more`
1921 - `scope: User or SeatTier or RBACGroup or 3 more`
15621922
15631923 What the limit applies to. A tagged union on `type`; each variant carries the identifier for its scope.
15641924
from line 1966
16061966
16071967 default: organization
16081968
1969 - `Workspace object`
1970
1971 Scope selecting one workspace of a Claude Console organization.
1972
1973 - `type: "workspace"`
1974
1975 Scope type. Always `workspace` for this scope.
1976
1977 default: workspace
1978
1979 - `workspace_id: string`
1980
1981 Tagged ID of the workspace the spend limit applies to.
1982
16091983 - `updated_at: string`
16101984
16111985 RFC 3339 datetime at which the spend limit was last modified.
from line 1990
16161990
16171991 Per-member effective-limit report row (`GET /spend_limits/effective`).
16181992
1619 - `actor: object`
1620
1621 A user within the organization. `name` and `email_address` are
1622 null when the underlying account is unavailable or has been deleted;
1623 `deleted` is true only for deleted accounts.
1624
1625 - `type: "user_actor"`
1626
1627 Actor type. Always `user_actor`.
1628
1629 default: user_actor
1630
1631 - `deleted: boolean`
1632
1633 True only when the underlying account has been deleted.
1634
1635 default: false
1636
1637 - `email_address: string or null`
1638
1639 The user's email address. Null when the account is unavailable or has been deleted.
1640
1641 - `name: string or null`
1642
1643 The user's current display name. Null when the account is unavailable, has been deleted, or has no name set.
1644
1645 - `user_id: string`
1646
1647 Tagged ID of the user.
1993 - `actor: UserActor or ScopedAPIKeyActor`
1994
1995 - `UserActor object`
1996
1997 A user within the organization. `name` and `email_address` are
1998 null when the underlying account is unavailable or has been deleted;
1999 `deleted` is true only for deleted accounts.
2000
2001 - `type: "user_actor"`
2002
2003 Actor type. Always `user_actor`.
2004
2005 default: user_actor
2006
2007 - `deleted: boolean`
2008
2009 True only when the underlying account has been deleted.
2010
2011 default: false
2012
2013 - `email_address: string or null`
2014
2015 The user's email address. Null when the account is unavailable or has been deleted.
2016
2017 - `name: string or null`
2018
2019 The user's current display name. Null when the account is unavailable, has been deleted, or has no name set.
2020
2021 - `user_id: string`
2022
2023 Tagged ID of the user.
2024
2025 - `ScopedAPIKeyActor object`
2026
2027 A scoped Admin API key acting on behalf of the organization.
2028
2029 - `type: "scoped_api_key_actor"`
2030
2031 default: scoped_api_key_actor
2032
2033 - `scoped_api_key_id: string`
16482034
16492035 - `amount: string or null`
16502036
from line 2054
16682054
16692055 The member's spend so far in the current period, as a non-negative decimal string in the minor unit of `currency` (cents for USD). May carry fractional minor units up to three decimal places (e.g. `"12050.5"`) — metered usage is not rounded to whole cents. Reads as `"0"` when the spend reading is temporarily unavailable.
16702056
1671 - `scope: object`
1672
1673 Scope selecting a single member of the organization.
1674
1675 - `type: "user"`
1676
1677 Scope type. Always `user` for this scope.
1678
1679 default: user
1680
1681 - `user_id: string`
1682
1683 Tagged ID of the member the spend limit applies to.
1684
1685 - `source: User or SeatTier or RBACGroup or 2 more`
2057 - `scope: User or SeatTier or RBACGroup or 3 more`
16862058
16872059 - `User object`
16882060
from line 2099
17272099 - `type: "organization"`
17282100
17292101 default: organization
2102
2103 - `Workspace object`
2104
2105 Scope selecting one workspace of a Claude Console organization.
2106
2107 - `type: "workspace"`
2108
2109 Scope type. Always `workspace` for this scope.
2110
2111 default: workspace
2112
2113 - `workspace_id: string`
2114
2115 Tagged ID of the workspace the spend limit applies to.
2116
2117 - `source: User or SeatTier or RBACGroup or 3 more`
2118
2119 - `User object`
2120
2121 Scope selecting a single member of the organization.
2122
2123 - `type: "user"`
2124
2125 Scope type. Always `user` for this scope.
2126
2127 default: user
2128
2129 - `user_id: string`
2130
2131 Tagged ID of the member the spend limit applies to.
2132
2133 - `SeatTier object`
2134
2135 - `type: "seat_tier"`
2136
2137 default: seat_tier
2138
2139 - `seat_tier: string`
2140
2141 - `RBACGroup object`
2142
2143 - `type: "rbac_group"`
2144
2145 default: rbac_group
2146
2147 - `rbac_group_id: string`
2148
2149 - `OrganizationService object`
2150
2151 - `type: "organization_service"`
2152
2153 default: organization_service
2154
2155 - `service: string`
2156
2157 - `Organization object`
2158
2159 - `type: "organization"`
2160
2161 default: organization
2162
2163 - `Workspace object`
2164
2165 Scope selecting one workspace of a Claude Console organization.
2166
2167 - `type: "workspace"`
2168
2169 Scope type. Always `workspace` for this scope.
2170
2171 default: workspace
2172
2173 - `workspace_id: string`
2174
2175 Tagged ID of the workspace the spend limit applies to.
17302176
17312177 - `spend_limit_id: string`
17322178
from line 2380
19342380
19352381 Per-member effective-limit report row (`GET /spend_limits/effective`).
19362382
1937 - `actor: object`
1938
1939 A user within the organization. `name` and `email_address` are
1940 null when the underlying account is unavailable or has been deleted;
1941 `deleted` is true only for deleted accounts.
1942
1943 - `type: "user_actor"`
1944
1945 Actor type. Always `user_actor`.
1946
1947 default: user_actor
1948
1949 - `deleted: boolean`
1950
1951 True only when the underlying account has been deleted.
1952
1953 default: false
1954
1955 - `email_address: string or null`
1956
1957 The user's email address. Null when the account is unavailable or has been deleted.
1958
1959 - `name: string or null`
1960
1961 The user's current display name. Null when the account is unavailable, has been deleted, or has no name set.
1962
1963 - `user_id: string`
1964
1965 Tagged ID of the user.
2383 - `actor: UserActor or ScopedAPIKeyActor`
2384
2385 - `UserActor object`
2386
2387 A user within the organization. `name` and `email_address` are
2388 null when the underlying account is unavailable or has been deleted;
2389 `deleted` is true only for deleted accounts.
2390
2391 - `type: "user_actor"`
2392
2393 Actor type. Always `user_actor`.
2394
2395 default: user_actor
2396
2397 - `deleted: boolean`
2398
2399 True only when the underlying account has been deleted.
2400
2401 default: false
2402
2403 - `email_address: string or null`
2404
2405 The user's email address. Null when the account is unavailable or has been deleted.
2406
2407 - `name: string or null`
2408
2409 The user's current display name. Null when the account is unavailable, has been deleted, or has no name set.
2410
2411 - `user_id: string`
2412
2413 Tagged ID of the user.
2414
2415 - `ScopedAPIKeyActor object`
2416
2417 A scoped Admin API key acting on behalf of the organization.
2418
2419 - `type: "scoped_api_key_actor"`
2420
2421 default: scoped_api_key_actor
2422
2423 - `scoped_api_key_id: string`
19662424
19672425 - `amount: string or null`
19682426
from line 2444
19862444
19872445 The member's spend so far in the current period, as a non-negative decimal string in the minor unit of `currency` (cents for USD). May carry fractional minor units up to three decimal places (e.g. `"12050.5"`) — metered usage is not rounded to whole cents. Reads as `"0"` when the spend reading is temporarily unavailable.
19882446
1989 - `scope: object`
1990
1991 Scope selecting a single member of the organization.
1992
1993 - `type: "user"`
1994
1995 Scope type. Always `user` for this scope.
1996
1997 default: user
1998
1999 - `user_id: string`
2000
2001 Tagged ID of the member the spend limit applies to.
2002
2003 - `source: User or SeatTier or RBACGroup or 2 more`
2447 - `scope: User or SeatTier or RBACGroup or 3 more`
20042448
20052449 - `User object`
20062450
from line 2489
20452489 - `type: "organization"`
20462490
20472491 default: organization
2492
2493 - `Workspace object`
2494
2495 Scope selecting one workspace of a Claude Console organization.
2496
2497 - `type: "workspace"`
2498
2499 Scope type. Always `workspace` for this scope.
2500
2501 default: workspace
2502
2503 - `workspace_id: string`
2504
2505 Tagged ID of the workspace the spend limit applies to.
2506
2507 - `source: User or SeatTier or RBACGroup or 3 more`
2508
2509 - `User object`
2510
2511 Scope selecting a single member of the organization.
2512
2513 - `type: "user"`
2514
2515 Scope type. Always `user` for this scope.
2516
2517 default: user
2518
2519 - `user_id: string`
2520
2521 Tagged ID of the member the spend limit applies to.
2522
2523 - `SeatTier object`
2524
2525 - `type: "seat_tier"`
2526
2527 default: seat_tier
2528
2529 - `seat_tier: string`
2530
2531 - `RBACGroup object`
2532
2533 - `type: "rbac_group"`
2534
2535 default: rbac_group
2536
2537 - `rbac_group_id: string`
2538
2539 - `OrganizationService object`
2540
2541 - `type: "organization_service"`
2542
2543 default: organization_service
2544
2545 - `service: string`
2546
2547 - `Organization object`
2548
2549 - `type: "organization"`
2550
2551 default: organization
2552
2553 - `Workspace object`
2554
2555 Scope selecting one workspace of a Claude Console organization.
2556
2557 - `type: "workspace"`
2558
2559 Scope type. Always `workspace` for this scope.
2560
2561 default: workspace
2562
2563 - `workspace_id: string`
2564
2565 Tagged ID of the workspace the spend limit applies to.
20482566
20492567 - `spend_limit_id: string`
20502568
20512569