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 1
1---
2title: Spend Limits
3url: https://platform.claude.com/docs/en/api/admin/spend_limits
4---
5
61# Spend Limits
72
83## Set Spend Limit
94
10**post** `/v1/organizations/spend_limits`
5**POST** `/v1/organizations/spend_limits`
116
127Set a per-user spend limit override.
138
from line 10
1510overwrites it in place. Only `scope.type: "user"` is accepted; seat-tier,
1611group, and organization-level defaults are configured in claude.ai.
1712
18### Body Parameters
13### Body parameters
1914
2015- `amount: string or null`
2116
2217 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.
2318
24- `scope: object { type, user_id }`
19- `scope: object`
2520
2621 - `type: "user"`
2722
28 - `"user"`
23 default: user
2924
3025 - `user_id: string`
3126
from line 34
3934
4035### Returns
4136
42- `SpendLimit object { id, amount, created_at, 5 more }`
37- `SpendLimit object`
4338
4439 - `id: string`
4540
from line 44
4944
5045 - `created_at: string`
5146
47 format: date-time
48
5249 - `currency: string`
5350
5451 ISO 4217 code of the organization's billing currency; the unit for `amount`.
from line 58
6158
6259 - `"weekly"`
6360
64 - `scope: object { type, user_id } or object { seat_tier, type } or object { rbac_group_id, type } or 2 more`
65
66 - `User object { type, user_id }`
61 - `scope: object or object or object or 2 more`
62
63 - `User object`
6764
6865 - `type: "user"`
6966
70 - `"user"`
67 default: user
7168
7269 - `user_id: string`
7370
74 - `SeatTier object { seat_tier, type }`
71 - `SeatTier object`
7572
7673 - `seat_tier: string`
7774
7875 - `type: "seat_tier"`
7976
80 - `"seat_tier"`
81
82 - `RbacGroup object { rbac_group_id, type }`
77 default: seat_tier
78
79 - `RbacGroup object`
8380
8481 - `rbac_group_id: string`
8582
8683 - `type: "rbac_group"`
8784
88 - `"rbac_group"`
89
90 - `OrganizationService object { service, type }`
85 default: rbac_group
86
87 - `OrganizationService object`
9188
9289 - `service: string`
9390
9491 - `type: "organization_service"`
9592
96 - `"organization_service"`
97
98 - `Organization object { type }`
93 default: organization_service
94
95 - `Organization object`
9996
10097 - `type: "organization"`
10198
102 - `"organization"`
99 default: organization
103100
104101 - `type: "spend_limit"`
105102
106 - `"spend_limit"`
103 default: spend_limit
107104
108105 - `updated_at: string`
109106
107 format: date-time
108
110109### Example
111110
112```http
111```bash
113112curl https://api.anthropic.com/v1/organizations/spend_limits \
114113 -H 'Content-Type: application/json' \
115114 -H 'anthropic-version: 2023-06-01' \
from line 123
124123 }'
125124```
126125
127#### Response
126#### Response (200)
128127
129128```json
130129{
from line 143
144143
145144## Get Spend Limit
146145
147**get** `/v1/organizations/spend_limits/{spend_limit_id}`
146**GET** `/v1/organizations/spend_limits/{spend_limit_id}`
148147
149148Retrieve a spend limit by ID.
150149
151### Path Parameters
150### Path parameters
152151
153152- `spend_limit_id: string`
154153
from line 155
156155
157156### Returns
158157
159- `SpendLimit object { id, amount, created_at, 5 more }`
158- `SpendLimit object`
160159
161160 - `id: string`
162161
from line 165
166165
167166 - `created_at: string`
168167
168 format: date-time
169
169170 - `currency: string`
170171
171172 ISO 4217 code of the organization's billing currency; the unit for `amount`.
from line 179
178179
179180 - `"weekly"`
180181
181 - `scope: object { type, user_id } or object { seat_tier, type } or object { rbac_group_id, type } or 2 more`
182
183 - `User object { type, user_id }`
182 - `scope: object or object or object or 2 more`
183
184 - `User object`
184185
185186 - `type: "user"`
186187
187 - `"user"`
188 default: user
188189
189190 - `user_id: string`
190191
191 - `SeatTier object { seat_tier, type }`
192 - `SeatTier object`
192193
193194 - `seat_tier: string`
194195
195196 - `type: "seat_tier"`
196197
197 - `"seat_tier"`
198
199 - `RbacGroup object { rbac_group_id, type }`
198 default: seat_tier
199
200 - `RbacGroup object`
200201
201202 - `rbac_group_id: string`
202203
203204 - `type: "rbac_group"`
204205
205 - `"rbac_group"`
206
207 - `OrganizationService object { service, type }`
206 default: rbac_group
207
208 - `OrganizationService object`
208209
209210 - `service: string`
210211
211212 - `type: "organization_service"`
212213
213 - `"organization_service"`
214
215 - `Organization object { type }`
214 default: organization_service
215
216 - `Organization object`
216217
217218 - `type: "organization"`
218219
219 - `"organization"`
220 default: organization
220221
221222 - `type: "spend_limit"`
222223
223 - `"spend_limit"`
224 default: spend_limit
224225
225226 - `updated_at: string`
226227
228 format: date-time
229
227230### Example
228231
229```http
232```bash
230233curl https://api.anthropic.com/v1/organizations/spend_limits/$SPEND_LIMIT_ID \
231234 -H 'anthropic-version: 2023-06-01' \
232235 -H "Authorization: Bearer $ANTHROPIC_OAUTH_TOKEN"
233236```
234237
235#### Response
238#### Response (200)
236239
237240```json
238241{
from line 255
252255
253256## Delete Spend Limit
254257
255**delete** `/v1/organizations/spend_limits/{spend_limit_id}`
258**DELETE** `/v1/organizations/spend_limits/{spend_limit_id}`
256259
257260Delete a per-user spend limit override.
258261
from line 263
260263Seat-tier, group, and organization-level rows cannot be deleted via
261264this endpoint.
262265
263### Path Parameters
266### Path parameters
264267
265268- `spend_limit_id: string`
266269
from line 275
272275
273276- `type: "spend_limit_deleted"`
274277
275 - `"spend_limit_deleted"`
278 default: spend_limit_deleted
276279
277280### Example
278281
279```http
282```bash
280283curl https://api.anthropic.com/v1/organizations/spend_limits/$SPEND_LIMIT_ID \
281284 -X DELETE \
282285 -H 'anthropic-version: 2023-06-01' \
283286 -H "Authorization: Bearer $ANTHROPIC_OAUTH_TOKEN"
284287```
285288
286#### Response
289#### Response (200)
287290
288291```json
289292{
from line 297
294297
295298## List Effective Spend Limits
296299
297**get** `/v1/organizations/spend_limits/effective`
300**GET** `/v1/organizations/spend_limits/effective`
298301
299302List each member's effective spend limit and period-to-date spend.
300303
from line 305
302305for, with the `source` scope the spend limit was inherited from.
303306Paginates by member, so a member's periods never split across pages.
304307
305### Query Parameters
308### Query parameters
306309
307310- `limit: optional number`
308311
312 default: 20, maximum: 1000, minimum: 1
313
309314- `page: optional string`
310315
311316- `period: optional array of string`
312317
318 maxItems: 3
319
313320- `user_ids: optional array of string`
314321
322 maxItems: 100
323
315324### Returns
316325
317326- `data: array of SpendSummary`
318327
319 - `actor: object { deleted, email_address, name, 2 more }`
328 - `actor: object`
320329
321330 A user within the organization. `name` and `email_address` are
322331 null when the underlying account is unavailable or has been deleted;
from line 333
324333
325334 - `deleted: boolean`
326335
336 default: false
337
327338 - `email_address: string or null`
328339
329340 - `name: string or null`
330341
331342 - `type: "user_actor"`
332343
333 - `"user_actor"`
344 default: user_actor
334345
335346 - `user_id: string`
336347
from line 365
354365
355366 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.
356367
357 - `scope: object { type, user_id }`
368 - `scope: object`
358369
359370 - `type: "user"`
360371
361 - `"user"`
372 default: user
362373
363374 - `user_id: string`
364375
365 - `source: object { type, user_id } or object { seat_tier, type } or object { rbac_group_id, type } or 2 more`
366
367 - `User object { type, user_id }`
376 - `source: object or object or object or 2 more`
377
378 - `User object`
368379
369380 - `type: "user"`
370381
371 - `"user"`
382 default: user
372383
373384 - `user_id: string`
374385
375 - `SeatTier object { seat_tier, type }`
386 - `SeatTier object`
376387
377388 - `seat_tier: string`
378389
379390 - `type: "seat_tier"`
380391
381 - `"seat_tier"`
382
383 - `RbacGroup object { rbac_group_id, type }`
392 default: seat_tier
393
394 - `RbacGroup object`
384395
385396 - `rbac_group_id: string`
386397
387398 - `type: "rbac_group"`
388399
389 - `"rbac_group"`
390
391 - `OrganizationService object { service, type }`
400 default: rbac_group
401
402 - `OrganizationService object`
392403
393404 - `service: string`
394405
395406 - `type: "organization_service"`
396407
397 - `"organization_service"`
398
399 - `Organization object { type }`
408 default: organization_service
409
410 - `Organization object`
400411
401412 - `type: "organization"`
402413
403 - `"organization"`
414 default: organization
404415
405416 - `spend_limit_id: string`
406417
from line 419
408419
409420### Example
410421
411```http
422```bash
412423curl https://api.anthropic.com/v1/organizations/spend_limits/effective \
413424 -H 'anthropic-version: 2023-06-01' \
414425 -H "Authorization: Bearer $ANTHROPIC_OAUTH_TOKEN"
415426```
416427
417#### Response
428#### Response (200)
418429
419430```json
420431{
from line 457
446457}
447458```
448459
449## Domain Types
460## Domain types
450461
451462### Spend Limit
452463
453- `SpendLimit object { id, amount, created_at, 5 more }`
464- `SpendLimit object`
454465
455466 - `id: string`
456467
from line 471
460471
461472 - `created_at: string`
462473
474 format: date-time
475
463476 - `currency: string`
464477
465478 ISO 4217 code of the organization's billing currency; the unit for `amount`.
from line 485
472485
473486 - `"weekly"`
474487
475 - `scope: object { type, user_id } or object { seat_tier, type } or object { rbac_group_id, type } or 2 more`
476
477 - `User object { type, user_id }`
488 - `scope: object or object or object or 2 more`
489
490 - `User object`
478491
479492 - `type: "user"`
480493
481 - `"user"`
494 default: user
482495
483496 - `user_id: string`
484497
485 - `SeatTier object { seat_tier, type }`
498 - `SeatTier object`
486499
487500 - `seat_tier: string`
488501
489502 - `type: "seat_tier"`
490503
491 - `"seat_tier"`
492
493 - `RbacGroup object { rbac_group_id, type }`
504 default: seat_tier
505
506 - `RbacGroup object`
494507
495508 - `rbac_group_id: string`
496509
497510 - `type: "rbac_group"`
498511
499 - `"rbac_group"`
500
501 - `OrganizationService object { service, type }`
512 default: rbac_group
513
514 - `OrganizationService object`
502515
503516 - `service: string`
504517
505518 - `type: "organization_service"`
506519
507 - `"organization_service"`
508
509 - `Organization object { type }`
520 default: organization_service
521
522 - `Organization object`
510523
511524 - `type: "organization"`
512525
513 - `"organization"`
526 default: organization
514527
515528 - `type: "spend_limit"`
516529
517 - `"spend_limit"`
530 default: spend_limit
518531
519532 - `updated_at: string`
520533
534 format: date-time
535
521536### Spend Summary
522537
523- `SpendSummary object { actor, amount, currency, 5 more }`
538- `SpendSummary object`
524539
525540 Per-member effective-limit report row (GET /spend_limits/effective).
526541
527 - `actor: object { deleted, email_address, name, 2 more }`
542 - `actor: object`
528543
529544 A user within the organization. `name` and `email_address` are
530545 null when the underlying account is unavailable or has been deleted;
from line 547
532547
533548 - `deleted: boolean`
534549
550 default: false
551
535552 - `email_address: string or null`
536553
537554 - `name: string or null`
538555
539556 - `type: "user_actor"`
540557
541 - `"user_actor"`
558 default: user_actor
542559
543560 - `user_id: string`
544561
from line 579
562579
563580 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.
564581
565 - `scope: object { type, user_id }`
582 - `scope: object`
566583
567584 - `type: "user"`
568585
569 - `"user"`
586 default: user
570587
571588 - `user_id: string`
572589
573 - `source: object { type, user_id } or object { seat_tier, type } or object { rbac_group_id, type } or 2 more`
574
575 - `User object { type, user_id }`
590 - `source: object or object or object or 2 more`
591
592 - `User object`
576593
577594 - `type: "user"`
578595
579 - `"user"`
596 default: user
580597
581598 - `user_id: string`
582599
583 - `SeatTier object { seat_tier, type }`
600 - `SeatTier object`
584601
585602 - `seat_tier: string`
586603
587604 - `type: "seat_tier"`
588605
589 - `"seat_tier"`
590
591 - `RbacGroup object { rbac_group_id, type }`
606 default: seat_tier
607
608 - `RbacGroup object`
592609
593610 - `rbac_group_id: string`
594611
595612 - `type: "rbac_group"`
596613
597 - `"rbac_group"`
598
599 - `OrganizationService object { service, type }`
614 default: rbac_group
615
616 - `OrganizationService object`
600617
601618 - `service: string`
602619
603620 - `type: "organization_service"`
604621
605 - `"organization_service"`
606
607 - `Organization object { type }`
622 default: organization_service
623
624 - `Organization object`
608625
609626 - `type: "organization"`
610627
611 - `"organization"`
628 default: organization
612629
613630 - `spend_limit_id: string`
614631
615632### Spend Limit Delete Response
616633
617- `SpendLimitDeleteResponse object { id, type }`
634- `SpendLimitDeleteResponse object`
618635
619636 - `id: string`
620637
621638 - `type: "spend_limit_deleted"`
622639
623 - `"spend_limit_deleted"`
624
625# Increase Requests
626
627## List Spend Limit Increase Requests
628
629**get** `/v1/organizations/spend_limit_increase_requests`
640 default: spend_limit_deleted
641
642## Spend Limits › Increase Requests
643
644### List Spend Limit Increase Requests
645
646**GET** `/v1/organizations/spend_limit_increase_requests`
630647
631648List spend limit increase requests, most recent first.
632649
633650Pending requests include a live `spend_summary` for the requester.
634651Requests whose requester is no longer a member are excluded.
635652
636### Query Parameters
653#### Query parameters
637654
638655- `actor_ids: optional array of string`
639656
from line 658
641658
642659- `limit: optional number`
643660
661 default: 20, maximum: 1000, minimum: 1
662
644663- `page: optional string`
645664
646665 Opaque cursor from a previous response's `next_page`.
from line 674
655674
656675 - `"pending"`
657676
658### Returns
677#### Returns
659678
660679- `data: array of SpendLimitIncreaseRequest`
661680
662681 - `id: string`
663682
664 - `actor: object { deleted, email_address, name, 2 more }`
683 - `actor: object`
665684
666685 A user within the organization. `name` and `email_address` are
667686 null when the underlying account is unavailable or has been deleted;
from line 688
669688
670689 - `deleted: boolean`
671690
691 default: false
692
672693 - `email_address: string or null`
673694
674695 - `name: string or null`
675696
676697 - `type: "user_actor"`
677698
678 - `"user_actor"`
699 default: user_actor
679700
680701 - `user_id: string`
681702
682703 - `created_at: string`
683704
705 format: date-time
706
684707 - `period: "daily" or "monthly" or "weekly"`
685708
686709 - `"daily"`
from line 714
691714
692715 - `resolved_at: string or null`
693716
694 - `resolved_by: object { deleted, email_address, name, 2 more } or object { scoped_api_key_id, type } or null`
717 format: date-time
718
719 - `resolved_by: object or object or null`
695720
696721 A user within the organization. `name` and `email_address` are
697722 null when the underlying account is unavailable or has been deleted;
698723 `deleted` is true only for deleted accounts.
699724
700 - `UserActor object { deleted, email_address, name, 2 more }`
725 - `UserActor object`
701726
702727 A user within the organization. `name` and `email_address` are
703728 null when the underlying account is unavailable or has been deleted;
from line 730
705730
706731 - `deleted: boolean`
707732
733 default: false
734
708735 - `email_address: string or null`
709736
710737 - `name: string or null`
711738
712739 - `type: "user_actor"`
713740
714 - `"user_actor"`
741 default: user_actor
715742
716743 - `user_id: string`
717744
718 - `ScopedAPIKeyActor object { scoped_api_key_id, type }`
745 - `ScopedAPIKeyActor object`
719746
720747 A scoped Admin API key acting on behalf of the organization.
721748
from line 750
723750
724751 - `type: "scoped_api_key_actor"`
725752
726 - `"scoped_api_key_actor"`
753 default: scoped_api_key_actor
727754
728755 - `spend_summary: SpendSummary or null`
729756
730757 Per-member effective-limit report row (GET /spend_limits/effective).
731758
732 - `actor: object { deleted, email_address, name, 2 more }`
759 - `actor: object`
733760
734761 A user within the organization. `name` and `email_address` are
735762 null when the underlying account is unavailable or has been deleted;
from line 764
737764
738765 - `deleted: boolean`
739766
767 default: false
768
740769 - `email_address: string or null`
741770
742771 - `name: string or null`
743772
744773 - `type: "user_actor"`
745774
746 - `"user_actor"`
775 default: user_actor
747776
748777 - `user_id: string`
749778
from line 796
767796
768797 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.
769798
770 - `scope: object { type, user_id }`
799 - `scope: object`
771800
772801 - `type: "user"`
773802
774 - `"user"`
803 default: user
775804
776805 - `user_id: string`
777806
778 - `source: object { type, user_id } or object { seat_tier, type } or object { rbac_group_id, type } or 2 more`
779
780 - `User object { type, user_id }`
807 - `source: object or object or object or 2 more`
808
809 - `User object`
781810
782811 - `type: "user"`
783812
784 - `"user"`
813 default: user
785814
786815 - `user_id: string`
787816
788 - `SeatTier object { seat_tier, type }`
817 - `SeatTier object`
789818
790819 - `seat_tier: string`
791820
792821 - `type: "seat_tier"`
793822
794 - `"seat_tier"`
795
796 - `RbacGroup object { rbac_group_id, type }`
823 default: seat_tier
824
825 - `RbacGroup object`
797826
798827 - `rbac_group_id: string`
799828
800829 - `type: "rbac_group"`
801830
802 - `"rbac_group"`
803
804 - `OrganizationService object { service, type }`
831 default: rbac_group
832
833 - `OrganizationService object`
805834
806835 - `service: string`
807836
808837 - `type: "organization_service"`
809838
810 - `"organization_service"`
811
812 - `Organization object { type }`
839 default: organization_service
840
841 - `Organization object`
813842
814843 - `type: "organization"`
815844
816 - `"organization"`
845 default: organization
817846
818847 - `spend_limit_id: string`
819848
from line 856
827856
828857 - `type: "spend_limit_increase_request"`
829858
830 - `"spend_limit_increase_request"`
859 default: spend_limit_increase_request
831860
832861- `next_page: string or null`
833862
834### Example
835
836```http
863#### Example
864
865```bash
837866curl https://api.anthropic.com/v1/organizations/spend_limit_increase_requests \
838867 -H 'anthropic-version: 2023-06-01' \
839868 -H "Authorization: Bearer $ANTHROPIC_OAUTH_TOKEN"
840869```
841870
842#### Response
871##### Response (200)
843872
844873```json
845874{
from line 922
893922}
894923```
895924
896## Get Spend Limit Increase Request
897
898**get** `/v1/organizations/spend_limit_increase_requests/{spend_limit_increase_request_id}`
925### Get Spend Limit Increase Request
926
927**GET** `/v1/organizations/spend_limit_increase_requests/{spend_limit_increase_request_id}`
899928
900929Retrieve a spend limit increase request.
901930
902931While `pending`, the response includes a live `spend_summary` for the
903932requester at the request's period.
904933
905### Path Parameters
934#### Path parameters
906935
907936- `spend_limit_increase_request_id: string`
908937
909938 ID of the spend limit increase request.
910939
911### Returns
912
913- `SpendLimitIncreaseRequest object { id, actor, created_at, 6 more }`
940#### Returns
941
942- `SpendLimitIncreaseRequest object`
914943
915944 - `id: string`
916945
917 - `actor: object { deleted, email_address, name, 2 more }`
946 - `actor: object`
918947
919948 A user within the organization. `name` and `email_address` are
920949 null when the underlying account is unavailable or has been deleted;
from line 951
922951
923952 - `deleted: boolean`
924953
954 default: false
955
925956 - `email_address: string or null`
926957
927958 - `name: string or null`
928959
929960 - `type: "user_actor"`
930961
931 - `"user_actor"`
962 default: user_actor
932963
933964 - `user_id: string`
934965
935966 - `created_at: string`
936967
968 format: date-time
969
937970 - `period: "daily" or "monthly" or "weekly"`
938971
939972 - `"daily"`
from line 977
944977
945978 - `resolved_at: string or null`
946979
947 - `resolved_by: object { deleted, email_address, name, 2 more } or object { scoped_api_key_id, type } or null`
980 format: date-time
981
982 - `resolved_by: object or object or null`
948983
949984 A user within the organization. `name` and `email_address` are
950985 null when the underlying account is unavailable or has been deleted;
951986 `deleted` is true only for deleted accounts.
952987
953 - `UserActor object { deleted, email_address, name, 2 more }`
988 - `UserActor object`
954989
955990 A user within the organization. `name` and `email_address` are
956991 null when the underlying account is unavailable or has been deleted;
from line 993
958993
959994 - `deleted: boolean`
960995
996 default: false
997
961998 - `email_address: string or null`
962999
9631000 - `name: string or null`
9641001
9651002 - `type: "user_actor"`
9661003
967 - `"user_actor"`
1004 default: user_actor
9681005
9691006 - `user_id: string`
9701007
971 - `ScopedAPIKeyActor object { scoped_api_key_id, type }`
1008 - `ScopedAPIKeyActor object`
9721009
9731010 A scoped Admin API key acting on behalf of the organization.
9741011
from line 1013
9761013
9771014 - `type: "scoped_api_key_actor"`
9781015
979 - `"scoped_api_key_actor"`
1016 default: scoped_api_key_actor
9801017
9811018 - `spend_summary: SpendSummary or null`
9821019
9831020 Per-member effective-limit report row (GET /spend_limits/effective).
9841021
985 - `actor: object { deleted, email_address, name, 2 more }`
1022 - `actor: object`
9861023
9871024 A user within the organization. `name` and `email_address` are
9881025 null when the underlying account is unavailable or has been deleted;
from line 1027
9901027
9911028 - `deleted: boolean`
9921029
1030 default: false
1031
9931032 - `email_address: string or null`
9941033
9951034 - `name: string or null`
9961035
9971036 - `type: "user_actor"`
9981037
999 - `"user_actor"`
1038 default: user_actor
10001039
10011040 - `user_id: string`
10021041
from line 1059
10201059
10211060 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.
10221061
1023 - `scope: object { type, user_id }`
1062 - `scope: object`
10241063
10251064 - `type: "user"`
10261065
1027 - `"user"`
1066 default: user
10281067
10291068 - `user_id: string`
10301069
1031 - `source: object { type, user_id } or object { seat_tier, type } or object { rbac_group_id, type } or 2 more`
1032
1033 - `User object { type, user_id }`
1070 - `source: object or object or object or 2 more`
1071
1072 - `User object`
10341073
10351074 - `type: "user"`
10361075
1037 - `"user"`
1076 default: user
10381077
10391078 - `user_id: string`
10401079
1041 - `SeatTier object { seat_tier, type }`
1080 - `SeatTier object`
10421081
10431082 - `seat_tier: string`
10441083
10451084 - `type: "seat_tier"`
10461085
1047 - `"seat_tier"`
1048
1049 - `RbacGroup object { rbac_group_id, type }`
1086 default: seat_tier
1087
1088 - `RbacGroup object`
10501089
10511090 - `rbac_group_id: string`
10521091
10531092 - `type: "rbac_group"`
10541093
1055 - `"rbac_group"`
1056
1057 - `OrganizationService object { service, type }`
1094 default: rbac_group
1095
1096 - `OrganizationService object`
10581097
10591098 - `service: string`
10601099
10611100 - `type: "organization_service"`
10621101
1063 - `"organization_service"`
1064
1065 - `Organization object { type }`
1102 default: organization_service
1103
1104 - `Organization object`
10661105
10671106 - `type: "organization"`
10681107
1069 - `"organization"`
1108 default: organization
10701109
10711110 - `spend_limit_id: string`
10721111
from line 1119
10801119
10811120 - `type: "spend_limit_increase_request"`
10821121
1083 - `"spend_limit_increase_request"`
1084
1085### Example
1086
1087```http
1122 default: spend_limit_increase_request
1123
1124#### Example
1125
1126```bash
10881127curl https://api.anthropic.com/v1/organizations/spend_limit_increase_requests/$SPEND_LIMIT_INCREASE_REQUEST_ID \
10891128 -H 'anthropic-version: 2023-06-01' \
10901129 -H "Authorization: Bearer $ANTHROPIC_OAUTH_TOKEN"
10911130```
10921131
1093#### Response
1132##### Response (200)
10941133
10951134```json
10961135{
from line 1178
11391178}
11401179```
11411180
1142## Approve Spend Limit Increase Request
1143
1144**post** `/v1/organizations/spend_limit_increase_requests/{spend_limit_increase_request_id}/approve`
1181### Approve Spend Limit Increase Request
1182
1183**POST** `/v1/organizations/spend_limit_increase_requests/{spend_limit_increase_request_id}/approve`
11451184
11461185Approve a pending spend limit increase request.
11471186
from line 1189
11501189the member was blocked on. Anthropic emails the requester unless
11511190`suppress_notification` is set.
11521191
1153### Path Parameters
1192#### Path parameters
11541193
11551194- `spend_limit_increase_request_id: string`
11561195
11571196 ID of the spend limit increase request.
11581197
1159### Body Parameters
1198#### Body parameters
11601199
11611200- `amount: string`
11621201
from line 1211
11721211
11731212- `suppress_notification: optional boolean`
11741213
1175### Returns
1214#### Returns
11761215
11771216- `id: string`
11781217
1179- `actor: object { deleted, email_address, name, 2 more }`
1218- `actor: object`
11801219
11811220 A user within the organization. `name` and `email_address` are
11821221 null when the underlying account is unavailable or has been deleted;
from line 1223
11841223
11851224 - `deleted: boolean`
11861225
1226 default: false
1227
11871228 - `email_address: string or null`
11881229
11891230 - `name: string or null`
11901231
11911232 - `type: "user_actor"`
11921233
1193 - `"user_actor"`
1234 default: user_actor
11941235
11951236 - `user_id: string`
11961237
11971238- `created_at: string`
11981239
1240 format: date-time
1241
11991242- `period: "daily" or "monthly" or "weekly"`
12001243
12011244 - `"daily"`
from line 1249
12061249
12071250- `resolved_at: string or null`
12081251
1209- `resolved_by: object { deleted, email_address, name, 2 more } or object { scoped_api_key_id, type } or null`
1252 format: date-time
1253
1254- `resolved_by: object or object or null`
12101255
12111256 A user within the organization. `name` and `email_address` are
12121257 null when the underlying account is unavailable or has been deleted;
12131258 `deleted` is true only for deleted accounts.
12141259
1215 - `UserActor object { deleted, email_address, name, 2 more }`
1260 - `UserActor object`
12161261
12171262 A user within the organization. `name` and `email_address` are
12181263 null when the underlying account is unavailable or has been deleted;
from line 1265
12201265
12211266 - `deleted: boolean`
12221267
1268 default: false
1269
12231270 - `email_address: string or null`
12241271
12251272 - `name: string or null`
12261273
12271274 - `type: "user_actor"`
12281275
1229 - `"user_actor"`
1276 default: user_actor
12301277
12311278 - `user_id: string`
12321279
1233 - `ScopedAPIKeyActor object { scoped_api_key_id, type }`
1280 - `ScopedAPIKeyActor object`
12341281
12351282 A scoped Admin API key acting on behalf of the organization.
12361283
from line 1285
12381285
12391286 - `type: "scoped_api_key_actor"`
12401287
1241 - `"scoped_api_key_actor"`
1288 default: scoped_api_key_actor
12421289
12431290- `spend_limit: SpendLimit`
12441291
from line 1297
12501297
12511298 - `created_at: string`
12521299
1300 format: date-time
1301
12531302 - `currency: string`
12541303
12551304 ISO 4217 code of the organization's billing currency; the unit for `amount`.
from line 1311
12621311
12631312 - `"weekly"`
12641313
1265 - `scope: object { type, user_id } or object { seat_tier, type } or object { rbac_group_id, type } or 2 more`
1266
1267 - `User object { type, user_id }`
1314 - `scope: object or object or object or 2 more`
1315
1316 - `User object`
12681317
12691318 - `type: "user"`
12701319
1271 - `"user"`
1320 default: user
12721321
12731322 - `user_id: string`
12741323
1275 - `SeatTier object { seat_tier, type }`
1324 - `SeatTier object`
12761325
12771326 - `seat_tier: string`
12781327
12791328 - `type: "seat_tier"`
12801329
1281 - `"seat_tier"`
1282
1283 - `RbacGroup object { rbac_group_id, type }`
1330 default: seat_tier
1331
1332 - `RbacGroup object`
12841333
12851334 - `rbac_group_id: string`
12861335
12871336 - `type: "rbac_group"`
12881337
1289 - `"rbac_group"`
1290
1291 - `OrganizationService object { service, type }`
1338 default: rbac_group
1339
1340 - `OrganizationService object`
12921341
12931342 - `service: string`
12941343
12951344 - `type: "organization_service"`
12961345
1297 - `"organization_service"`
1298
1299 - `Organization object { type }`
1346 default: organization_service
1347
1348 - `Organization object`
13001349
13011350 - `type: "organization"`
13021351
1303 - `"organization"`
1352 default: organization
13041353
13051354 - `type: "spend_limit"`
13061355
1307 - `"spend_limit"`
1356 default: spend_limit
13081357
13091358 - `updated_at: string`
13101359
1360 format: date-time
1361
13111362- `spend_summary: SpendSummary or null`
13121363
13131364 Per-member effective-limit report row (GET /spend_limits/effective).
13141365
1315 - `actor: object { deleted, email_address, name, 2 more }`
1366 - `actor: object`
13161367
13171368 A user within the organization. `name` and `email_address` are
13181369 null when the underlying account is unavailable or has been deleted;
from line 1371
13201371
13211372 - `deleted: boolean`
13221373
1374 default: false
1375
13231376 - `email_address: string or null`
13241377
13251378 - `name: string or null`
13261379
13271380 - `type: "user_actor"`
13281381
1329 - `"user_actor"`
1382 default: user_actor
13301383
13311384 - `user_id: string`
13321385
from line 1403
13501403
13511404 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.
13521405
1353 - `scope: object { type, user_id }`
1406 - `scope: object`
13541407
13551408 - `type: "user"`
13561409
1357 - `"user"`
1410 default: user
13581411
13591412 - `user_id: string`
13601413
1361 - `source: object { type, user_id } or object { seat_tier, type } or object { rbac_group_id, type } or 2 more`
1362
1363 - `User object { type, user_id }`
1414 - `source: object or object or object or 2 more`
1415
1416 - `User object`
13641417
13651418 - `type: "user"`
13661419
1367 - `"user"`
1420 default: user
13681421
13691422 - `user_id: string`
13701423
1371 - `SeatTier object { seat_tier, type }`
1424 - `SeatTier object`
13721425
13731426 - `seat_tier: string`
13741427
13751428 - `type: "seat_tier"`
13761429
1377 - `"seat_tier"`
1378
1379 - `RbacGroup object { rbac_group_id, type }`
1430 default: seat_tier
1431
1432 - `RbacGroup object`
13801433
13811434 - `rbac_group_id: string`
13821435
13831436 - `type: "rbac_group"`
13841437
1385 - `"rbac_group"`
1386
1387 - `OrganizationService object { service, type }`
1438 default: rbac_group
1439
1440 - `OrganizationService object`
13881441
13891442 - `service: string`
13901443
13911444 - `type: "organization_service"`
13921445
1393 - `"organization_service"`
1394
1395 - `Organization object { type }`
1446 default: organization_service
1447
1448 - `Organization object`
13961449
13971450 - `type: "organization"`
13981451
1399 - `"organization"`
1452 default: organization
14001453
14011454 - `spend_limit_id: string`
14021455
from line 1463
14101463
14111464- `type: "spend_limit_increase_request"`
14121465
1413 - `"spend_limit_increase_request"`
1414
1415### Example
1416
1417```http
1466 default: spend_limit_increase_request
1467
1468#### Example
1469
1470```bash
14181471curl https://api.anthropic.com/v1/organizations/spend_limit_increase_requests/$SPEND_LIMIT_INCREASE_REQUEST_ID/approve \
14191472 -H 'Content-Type: application/json' \
14201473 -H 'anthropic-version: 2023-06-01' \
from line 1478
14251478 }'
14261479```
14271480
1428#### Response
1481##### Response (200)
14291482
14301483```json
14311484{
from line 1540
14871540}
14881541```
14891542
1490## Deny Spend Limit Increase Request
1491
1492**post** `/v1/organizations/spend_limit_increase_requests/{spend_limit_increase_request_id}/deny`
1543### Deny Spend Limit Increase Request
1544
1545**POST** `/v1/organizations/spend_limit_increase_requests/{spend_limit_increase_request_id}/deny`
14931546
14941547Deny a pending spend limit increase request.
14951548
14961549Idempotent on `denied`; denying an already-`approved` request returns
14971550400. Anthropic emails the requester unless `suppress_notification` is set.
14981551
1499### Path Parameters
1552#### Path parameters
15001553
15011554- `spend_limit_increase_request_id: string`
15021555
15031556 ID of the spend limit increase request.
15041557
1505### Body Parameters
1558#### Body parameters
15061559
15071560- `suppress_notification: optional boolean`
15081561
1509### Returns
1510
1511- `SpendLimitIncreaseRequest object { id, actor, created_at, 6 more }`
1562#### Returns
1563
1564- `SpendLimitIncreaseRequest object`
15121565
15131566 - `id: string`
15141567
1515 - `actor: object { deleted, email_address, name, 2 more }`
1568 - `actor: object`
15161569
15171570 A user within the organization. `name` and `email_address` are
15181571 null when the underlying account is unavailable or has been deleted;
from line 1573
15201573
15211574 - `deleted: boolean`
15221575
1576 default: false
1577
15231578 - `email_address: string or null`
15241579
15251580 - `name: string or null`
15261581
15271582 - `type: "user_actor"`
15281583
1529 - `"user_actor"`
1584 default: user_actor
15301585
15311586 - `user_id: string`
15321587
15331588 - `created_at: string`
15341589
1590 format: date-time
1591
15351592 - `period: "daily" or "monthly" or "weekly"`
15361593
15371594 - `"daily"`
from line 1599
15421599
15431600 - `resolved_at: string or null`
15441601
1545 - `resolved_by: object { deleted, email_address, name, 2 more } or object { scoped_api_key_id, type } or null`
1602 format: date-time
1603
1604 - `resolved_by: object or object or null`
15461605
15471606 A user within the organization. `name` and `email_address` are
15481607 null when the underlying account is unavailable or has been deleted;
15491608 `deleted` is true only for deleted accounts.
15501609
1551 - `UserActor object { deleted, email_address, name, 2 more }`
1610 - `UserActor object`
15521611
15531612 A user within the organization. `name` and `email_address` are
15541613 null when the underlying account is unavailable or has been deleted;
from line 1615
15561615
15571616 - `deleted: boolean`
15581617
1618 default: false
1619
15591620 - `email_address: string or null`
15601621
15611622 - `name: string or null`
15621623
15631624 - `type: "user_actor"`
15641625
1565 - `"user_actor"`
1626 default: user_actor
15661627
15671628 - `user_id: string`
15681629
1569 - `ScopedAPIKeyActor object { scoped_api_key_id, type }`
1630 - `ScopedAPIKeyActor object`
15701631
15711632 A scoped Admin API key acting on behalf of the organization.
15721633
from line 1635
15741635
15751636 - `type: "scoped_api_key_actor"`
15761637
1577 - `"scoped_api_key_actor"`
1638 default: scoped_api_key_actor
15781639
15791640 - `spend_summary: SpendSummary or null`
15801641
15811642 Per-member effective-limit report row (GET /spend_limits/effective).
15821643
1583 - `actor: object { deleted, email_address, name, 2 more }`
1644 - `actor: object`
15841645
15851646 A user within the organization. `name` and `email_address` are
15861647 null when the underlying account is unavailable or has been deleted;
from line 1649
15881649
15891650 - `deleted: boolean`
15901651
1652 default: false
1653
15911654 - `email_address: string or null`
15921655
15931656 - `name: string or null`
15941657
15951658 - `type: "user_actor"`
15961659
1597 - `"user_actor"`
1660 default: user_actor
15981661
15991662 - `user_id: string`
16001663
from line 1681
16181681
16191682 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.
16201683
1621 - `scope: object { type, user_id }`
1684 - `scope: object`
16221685
16231686 - `type: "user"`
16241687
1625 - `"user"`
1688 default: user
16261689
16271690 - `user_id: string`
16281691
1629 - `source: object { type, user_id } or object { seat_tier, type } or object { rbac_group_id, type } or 2 more`
1630
1631 - `User object { type, user_id }`
1692 - `source: object or object or object or 2 more`
1693
1694 - `User object`
16321695
16331696 - `type: "user"`
16341697
1635 - `"user"`
1698 default: user
16361699
16371700 - `user_id: string`
16381701
1639 - `SeatTier object { seat_tier, type }`
1702 - `SeatTier object`
16401703
16411704 - `seat_tier: string`
16421705
16431706 - `type: "seat_tier"`
16441707
1645 - `"seat_tier"`
1646
1647 - `RbacGroup object { rbac_group_id, type }`
1708 default: seat_tier
1709
1710 - `RbacGroup object`
16481711
16491712 - `rbac_group_id: string`
16501713
16511714 - `type: "rbac_group"`
16521715
1653 - `"rbac_group"`
1654
1655 - `OrganizationService object { service, type }`
1716 default: rbac_group
1717
1718 - `OrganizationService object`
16561719
16571720 - `service: string`
16581721
16591722 - `type: "organization_service"`
16601723
1661 - `"organization_service"`
1662
1663 - `Organization object { type }`
1724 default: organization_service
1725
1726 - `Organization object`
16641727
16651728 - `type: "organization"`
16661729
1667 - `"organization"`
1730 default: organization
16681731
16691732 - `spend_limit_id: string`
16701733
from line 1741
16781741
16791742 - `type: "spend_limit_increase_request"`
16801743
1681 - `"spend_limit_increase_request"`
1682
1683### Example
1684
1685```http
1744 default: spend_limit_increase_request
1745
1746#### Example
1747
1748```bash
16861749curl https://api.anthropic.com/v1/organizations/spend_limit_increase_requests/$SPEND_LIMIT_INCREASE_REQUEST_ID/deny \
16871750 -H 'Content-Type: application/json' \
16881751 -H 'anthropic-version: 2023-06-01' \
from line 1753
16901753 -d '{}'
16911754```
16921755
1693#### Response
1756##### Response (200)
16941757
16951758```json
16961759{
from line 1801
17381801 "type": "spend_limit_increase_request"
17391802}
17401803```
1741
1742## Domain Types
1743
1744### Spend Limit Increase Request
1745
1746- `SpendLimitIncreaseRequest object { id, actor, created_at, 6 more }`
1747
1748 - `id: string`
1749
1750 - `actor: object { deleted, email_address, name, 2 more }`
1751
1752 A user within the organization. `name` and `email_address` are
1753 null when the underlying account is unavailable or has been deleted;
1754 `deleted` is true only for deleted accounts.
1755
1756 - `deleted: boolean`
1757
1758 - `email_address: string or null`
1759
1760 - `name: string or null`
1761
1762 - `type: "user_actor"`
1763
1764 - `"user_actor"`
1765
1766 - `user_id: string`
1767
1768 - `created_at: string`
1769
1770 - `period: "daily" or "monthly" or "weekly"`
1771
1772 - `"daily"`
1773
1774 - `"monthly"`
1775
1776 - `"weekly"`
1777
1778 - `resolved_at: string or null`
1779
1780 - `resolved_by: object { deleted, email_address, name, 2 more } or object { scoped_api_key_id, type } or null`
1781
1782 A user within the organization. `name` and `email_address` are
1783 null when the underlying account is unavailable or has been deleted;
1784 `deleted` is true only for deleted accounts.
1785
1786 - `UserActor object { deleted, email_address, name, 2 more }`
1787
1788 A user within the organization. `name` and `email_address` are
1789 null when the underlying account is unavailable or has been deleted;
1790 `deleted` is true only for deleted accounts.
1791
1792 - `deleted: boolean`
1793
1794 - `email_address: string or null`
1795
1796 - `name: string or null`
1797
1798 - `type: "user_actor"`
1799
1800 - `"user_actor"`
1801
1802 - `user_id: string`
1803
1804 - `ScopedAPIKeyActor object { scoped_api_key_id, type }`
1805
1806 A scoped Admin API key acting on behalf of the organization.
1807
1808 - `scoped_api_key_id: string`
1809
1810 - `type: "scoped_api_key_actor"`
1811
1812 - `"scoped_api_key_actor"`
1813
1814 - `spend_summary: SpendSummary or null`
1815
1816 Per-member effective-limit report row (GET /spend_limits/effective).
1817
1818 - `actor: object { deleted, email_address, name, 2 more }`
1819
1820 A user within the organization. `name` and `email_address` are
1821 null when the underlying account is unavailable or has been deleted;
1822 `deleted` is true only for deleted accounts.
1823
1824 - `deleted: boolean`
1825
1826 - `email_address: string or null`
1827
1828 - `name: string or null`
1829
1830 - `type: "user_actor"`
1831
1832 - `"user_actor"`
1833
1834 - `user_id: string`
1835
1836 - `amount: string or null`
1837
1838 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.
1839
1840 - `currency: string`
1841
1842 ISO 4217 code of the organization's billing currency; the unit for `amount` and `period_to_date_spend`.
1843
1844 - `period: "daily" or "monthly" or "weekly"`
1845
1846 - `"daily"`
1847
1848 - `"monthly"`
1849
1850 - `"weekly"`
1851
1852 - `period_to_date_spend: string`
1853
1854 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.
1855
1856 - `scope: object { type, user_id }`
1857
1858 - `type: "user"`
1859
1860 - `"user"`
1861
1862 - `user_id: string`
1863
1864 - `source: object { type, user_id } or object { seat_tier, type } or object { rbac_group_id, type } or 2 more`
1865
1866 - `User object { type, user_id }`
1867
1868 - `type: "user"`
1869
1870 - `"user"`
1871
1872 - `user_id: string`
1873
1874 - `SeatTier object { seat_tier, type }`
1875
1876 - `seat_tier: string`
1877
1878 - `type: "seat_tier"`
1879
1880 - `"seat_tier"`
1881
1882 - `RbacGroup object { rbac_group_id, type }`
1883
1884 - `rbac_group_id: string`
1885
1886 - `type: "rbac_group"`
1887
1888 - `"rbac_group"`
1889
1890 - `OrganizationService object { service, type }`
1891
1892 - `service: string`
1893
1894 - `type: "organization_service"`
1895
1896 - `"organization_service"`
1897
1898 - `Organization object { type }`
1899
1900 - `type: "organization"`
1901
1902 - `"organization"`
1903
1904 - `spend_limit_id: string`
1905
1906 - `status: "approved" or "denied" or "pending"`
1907
1908 - `"approved"`
1909
1910 - `"denied"`
1911
1912 - `"pending"`
1913
1914 - `type: "spend_limit_increase_request"`
1915
1916 - `"spend_limit_increase_request"`
1917
1918### Increase Request Approve Response
1919
1920- `IncreaseRequestApproveResponse object { id, actor, created_at, 7 more }`
1921
1922 - `id: string`
1923
1924 - `actor: object { deleted, email_address, name, 2 more }`
1925
1926 A user within the organization. `name` and `email_address` are
1927 null when the underlying account is unavailable or has been deleted;
1928 `deleted` is true only for deleted accounts.
1929
1930 - `deleted: boolean`
1931
1932 - `email_address: string or null`
1933
1934 - `name: string or null`
1935
1936 - `type: "user_actor"`
1937
1938 - `"user_actor"`
1939
1940 - `user_id: string`
1941
1942 - `created_at: string`
1943
1944 - `period: "daily" or "monthly" or "weekly"`
1945
1946 - `"daily"`
1947
1948 - `"monthly"`
1949
1950 - `"weekly"`
1951
1952 - `resolved_at: string or null`
1953
1954 - `resolved_by: object { deleted, email_address, name, 2 more } or object { scoped_api_key_id, type } or null`
1955
1956 A user within the organization. `name` and `email_address` are
1957 null when the underlying account is unavailable or has been deleted;
1958 `deleted` is true only for deleted accounts.
1959
1960 - `UserActor object { deleted, email_address, name, 2 more }`
1961
1962 A user within the organization. `name` and `email_address` are
1963 null when the underlying account is unavailable or has been deleted;
1964 `deleted` is true only for deleted accounts.
1965
1966 - `deleted: boolean`
1967
1968 - `email_address: string or null`
1969
1970 - `name: string or null`
1971
1972 - `type: "user_actor"`
1973
1974 - `"user_actor"`
1975
1976 - `user_id: string`
1977
1978 - `ScopedAPIKeyActor object { scoped_api_key_id, type }`
1979
1980 A scoped Admin API key acting on behalf of the organization.
1981
1982 - `scoped_api_key_id: string`
1983
1984 - `type: "scoped_api_key_actor"`
1985
1986 - `"scoped_api_key_actor"`
1987
1988 - `spend_limit: SpendLimit`
1989
1990 - `id: string`
1991
1992 - `amount: string or null`
1993
1994 Limit amount as a non-negative integer decimal string in the minor unit of `currency` (cents for USD): "50000" is $500.00. `null` means no numeric cap is configured at this scope — see the effective report for whether a limit applies.
1995
1996 - `created_at: string`
1997
1998 - `currency: string`
1999
2000 ISO 4217 code of the organization's billing currency; the unit for `amount`.
2001
2002 - `period: "daily" or "monthly" or "weekly"`
2003
2004 - `"daily"`
2005
2006 - `"monthly"`
2007
2008 - `"weekly"`
2009
2010 - `scope: object { type, user_id } or object { seat_tier, type } or object { rbac_group_id, type } or 2 more`
2011
2012 - `User object { type, user_id }`
2013
2014 - `type: "user"`
2015
2016 - `"user"`
2017
2018 - `user_id: string`
2019
2020 - `SeatTier object { seat_tier, type }`
2021
2022 - `seat_tier: string`
2023
2024 - `type: "seat_tier"`
2025
2026 - `"seat_tier"`
2027
2028 - `RbacGroup object { rbac_group_id, type }`
2029
2030 - `rbac_group_id: string`
2031
2032 - `type: "rbac_group"`
2033
2034 - `"rbac_group"`
2035
2036 - `OrganizationService object { service, type }`
2037
2038 - `service: string`
2039
2040 - `type: "organization_service"`
2041
2042 - `"organization_service"`
2043
2044 - `Organization object { type }`
2045
2046 - `type: "organization"`
2047
2048 - `"organization"`
2049
2050 - `type: "spend_limit"`
2051
2052 - `"spend_limit"`
2053
2054 - `updated_at: string`
2055
2056 - `spend_summary: SpendSummary or null`
2057
2058 Per-member effective-limit report row (GET /spend_limits/effective).
2059
2060 - `actor: object { deleted, email_address, name, 2 more }`
2061
2062 A user within the organization. `name` and `email_address` are
2063 null when the underlying account is unavailable or has been deleted;
2064 `deleted` is true only for deleted accounts.
2065
2066 - `deleted: boolean`
2067
2068 - `email_address: string or null`
2069
2070 - `name: string or null`
2071
2072 - `type: "user_actor"`
2073
2074 - `"user_actor"`
2075
2076 - `user_id: string`
2077
2078 - `amount: string or null`
2079
2080 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.
2081
2082 - `currency: string`
2083
2084 ISO 4217 code of the organization's billing currency; the unit for `amount` and `period_to_date_spend`.
2085
2086 - `period: "daily" or "monthly" or "weekly"`
2087
2088 - `"daily"`
2089
2090 - `"monthly"`
2091
2092 - `"weekly"`
2093
2094 - `period_to_date_spend: string`
2095
2096 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.
2097
2098 - `scope: object { type, user_id }`
2099
2100 - `type: "user"`
2101
2102 - `"user"`
2103
2104 - `user_id: string`
2105
2106 - `source: object { type, user_id } or object { seat_tier, type } or object { rbac_group_id, type } or 2 more`
2107
2108 - `User object { type, user_id }`
2109
2110 - `type: "user"`
2111
2112 - `"user"`
2113
2114 - `user_id: string`
2115
2116 - `SeatTier object { seat_tier, type }`
2117
2118 - `seat_tier: string`
2119
2120 - `type: "seat_tier"`
2121
2122 - `"seat_tier"`
2123
2124 - `RbacGroup object { rbac_group_id, type }`
2125
2126 - `rbac_group_id: string`
2127
2128 - `type: "rbac_group"`
2129
2130 - `"rbac_group"`
2131
2132 - `OrganizationService object { service, type }`
2133
2134 - `service: string`
2135
2136 - `type: "organization_service"`
2137
2138 - `"organization_service"`
2139
2140 - `Organization object { type }`
2141
2142 - `type: "organization"`
2143
2144 - `"organization"`
2145
2146 - `spend_limit_id: string`
2147
2148 - `status: "approved" or "denied" or "pending"`
2149
2150 - `"approved"`
2151
2152 - `"denied"`
2153
2154 - `"pending"`
2155
2156 - `type: "spend_limit_increase_request"`
2157
2158 - `"spend_limit_increase_request"`
21591804
No line in this hunk matches that.