The whole hunk
from line 1, old and new numbered
/
lines
from line 1
1---
2title: Organizations
3url: https://platform.claude.com/docs/en/api/compliance/organizations
4---
5
16# Organizations
27
38## List organizations
from line 29
2429
2530### Headers
2631
32- `"anthropic-version": optional string`
33
34 The version of the Claude API you want to use.
35
36 Read more about versioning and our version history [here](https://platform.claude.com/docs/en/api/versioning).
37
2738- `"x-api-key": optional string`
2839
2940### Returns
from line 134
123134
124135#### Headers
125136
137- `"anthropic-version": optional string`
138
139 The version of the Claude API you want to use.
140
141 Read more about versioning and our version history [here](https://platform.claude.com/docs/en/api/versioning).
142
126143- `"x-api-key": optional string`
127144
128145#### Returns
from line 249
232249
233250#### Headers
234251
252- `"anthropic-version": optional string`
253
254 The version of the Claude API you want to use.
255
256 Read more about versioning and our version history [here](https://platform.claude.com/docs/en/api/versioning).
257
235258- `"x-api-key": optional string`
236259
237260#### Returns
from line 269
246269
247270 - `created_at: string or null`
248271
249 Role creation timestamp (ISO 8601)
272 Role creation timestamp (RFC 3339)
250273
274 format: date-time
275
251276 - `description: string`
252277
253278 Role description
from line 283
258283
259284 - `updated_at: string or null`
260285
261 Role last-updated timestamp (ISO 8601)
286 Role last-updated timestamp (RFC 3339)
262287
288 format: date-time
289
263290- `has_more: boolean`
264291
265292 Whether more records exist beyond the current result set
from line 309
282309 "data": [
283310 {
284311 "id": "rbac_role_01SGBg3kEnZrdsVR2QmyJbvD",
285 "created_at": "2025-03-12T18:22:41.123456",
312 "created_at": "2025-03-12T18:22:41.123456Z",
286313 "description": "Full administrative access to organization settings and members",
287314 "name": "Organization Admin",
288 "updated_at": "2025-03-14T09:05:17.456789"
315 "updated_at": "2025-03-14T09:05:17.456789Z"
289316 }
290317 ],
291318 "has_more": true,
from line 338
311338
312339#### Headers
313340
341- `"anthropic-version": optional string`
342
343 The version of the Claude API you want to use.
344
345 Read more about versioning and our version history [here](https://platform.claude.com/docs/en/api/versioning).
346
314347- `"x-api-key": optional string`
315348
316349#### Returns
from line 354
321354
322355- `created_at: string or null`
323356
324 Role creation timestamp (ISO 8601)
357 Role creation timestamp (RFC 3339)
325358
359 format: date-time
360
326361- `description: string`
327362
328363 Role description
from line 368
333368
334369- `updated_at: string or null`
335370
336 Role last-updated timestamp (ISO 8601)
371 Role last-updated timestamp (RFC 3339)
337372
373 format: date-time
374
338375#### Example
339376
340377```bash
from line 384
347384```json
348385{
349386 "id": "rbac_role_01SGBg3kEnZrdsVR2QmyJbvD",
350 "created_at": "2025-03-12T18:22:41.123456",
387 "created_at": "2025-03-12T18:22:41.123456Z",
351388 "description": "Full administrative access to organization settings and members",
352389 "name": "Organization Admin",
353 "updated_at": "2025-03-14T09:05:17.456789"
390 "updated_at": "2025-03-14T09:05:17.456789Z"
354391}
355392```
356393
from line 423
386423
387424#### Headers
388425
426- `"anthropic-version": optional string`
427
428 The version of the Claude API you want to use.
429
430 Read more about versioning and our version history [here](https://platform.claude.com/docs/en/api/versioning).
431
389432- `"x-api-key": optional string`
390433
391434#### Returns
from line 505
462505
463506#### Headers
464507
508- `"anthropic-version": optional string`
509
510 The version of the Claude API you want to use.
511
512 Read more about versioning and our version history [here](https://platform.claude.com/docs/en/api/versioning).
513
465514- `"x-api-key": optional string`
466515
467516#### Returns
468517
518- `type: optional "effective_organization_settings"`
519
520 default: effective_organization_settings
521
469522- `api_keys: array of object`
470523
471524 Compliance API keys configured for the organization hierarchy, ordered by creation time ascending. Key secret values are never included.
472525
526 - `type: optional "compliance_api_key"`
527
528 default: compliance_api_key
529
473530 - `id: string`
474531
475532 Unique identifier for the API key.
from line 559
502559
503560 format: date-time
504561
505 - `type: optional "compliance_api_key"`
506
507 default: compliance_api_key
508
509562- `organization_id: string`
510563
511564- `settings: array of object or object or object or 3 more`
from line 567
514567
515568 A setting whose enforced value is a single true/false flag.
516569
517 - `name: "ai_powered_artifacts_enabled" or "api_workbench_feedback_collection_enabled" or "artifact_connectors_enabled" or 52 more`
570 - `type: optional "boolean"`
518571
572 default: boolean
573
574 - `name: "ai_powered_artifacts_enabled" or "api_workbench_feedback_collection_enabled" or "artifact_connectors_enabled" or 53 more`
575
519576 - `"ai_powered_artifacts_enabled"`
520577
521578 - `"api_workbench_feedback_collection_enabled"`
from line 589
532589
533590 - `"claude_ai_integration_sharing_enabled"`
534591
592 - `"claude_ai_skill_plugins_scanning_enabled"`
593
535594 - `"claude_code_desktop_bypass_permissions_enabled"`
536595
537596 - `"claude_code_desktop_enabled"`
from line 687
628687
629688 - `value: boolean`
630689
631 - `type: optional "boolean"`
632
633 default: boolean
634
635690 - `Integer object`
636691
637692 A setting whose enforced value is a whole number; null means no limit
638693 is in force.
639694
640 - `name: "account_session_duration_seconds"`
641
642 - `value: number or null`
643
644695 - `type: optional "integer"`
645696
646697 default: integer
647698
699 - `name: "account_session_duration_seconds"`
700
701 - `value: number or null`
702
648703 - `String object`
649704
650705 A setting whose enforced value is a single string; null means no value
651706 is configured.
652707
708 - `type: optional "string"`
709
710 default: string
711
653712 - `name: "claude_code_default_worker_environment_id" or "claude_code_default_worker_pool_id"`
654713
655714 - `"claude_code_default_worker_environment_id"`
from line 717
658717
659718 - `value: string or null`
660719
661 - `type: optional "string"`
662
663 default: string
664
665720 - `StringList object`
666721
667722 A setting whose enforced value is a list of strings.
668723
724 - `type: optional "string_list"`
725
726 default: string_list
727
669728 - `name: "allowed_invite_domains" or "disabled_admin_request_types" or "ip_allowlist_ip_ranges"`
670729
671730 - `"allowed_invite_domains"`
from line 735
676735
677736 - `value: array of string`
678737
679 - `type: optional "string_list"`
680
681 default: string_list
682
683738 - `ProvisioningMode object`
684739
685740 How organization members are provisioned, resolved to the enforced mode.
from line 744
689744 modes require directory sync to be enabled. Otherwise `login_only` is
690745 reported, regardless of any stored configuration.
691746
747 - `type: optional "provisioning_mode"`
748
749 default: provisioning_mode
750
692751 - `value: "jit_advanced" or "jit_permissive" or "login_only" or 2 more`
693752
694753 How organization members are provisioned under SSO.
from line 766
707766
708767 default: sso_provisioning_mode
709768
710 - `type: optional "provisioning_mode"`
711
712 default: provisioning_mode
713
714769 - `DataRetention object`
715770
716771 The data retention periods in force, keyed by the type of data they
from line 776
721776 administrator-configured retention period is in force for that data type;
722777 Anthropic's service defaults may still apply.
723778
779 - `type: optional "data_retention"`
780
781 default: data_retention
782
724783 - `value: map[object or object]`
725784
726785 - `Fixed object`
from line 786
727786
728787 A fixed retention window measured from each item's last activity.
729788
789 - `type: optional "fixed"`
790
791 default: fixed
792
730793 - `duration: number`
731794
732795 - `timescale: "day" or "month"`
from line 798
735798
736799 - `"month"`
737800
738 - `type: optional "fixed"`
739
740 default: fixed
741
742801 - `Indefinite object`
743802
744803 An indefinite retention period: data is kept with no time limit.
from line 809
750809 - `name: optional "data_retention_periods"`
751810
752811 default: data_retention_periods
753
754 - `type: optional "data_retention"`
755
756 default: data_retention
757
758- `type: optional "effective_organization_settings"`
759
760 default: effective_organization_settings
761812
762813#### Example
763814