Claude Platform Docs

To enable the Compliance API, see the setup guide.

Set up the Compliance API

Obtenir les paramètres effectifs de l'organisation

GET/v1/compliance/organizations/{organization_id}/settings

Récupère les paramètres effectifs d'une organisation.

Renvoie les paramètres actuellement en vigueur pour l'organisation donnée, c'est-à-dire l'état appliqué une fois toutes les politiques prises en compte, qui peut différer de ce qui est configuré dans la console d'administration. Les paramètres que les administrateurs d'une organisation ne peuvent pas modifier (par exemple, ceux contrôlés par la politique d'Anthropic ou non disponibles pour l'organisation) sont omis de la liste. Les paramètres qui signalent un accord de conformité avec Anthropic font exception : les paramètres HIPAA et Access Transparency sont toujours inclus ; le paramètre de zero data retention (conservation zéro des données) de l'API est indiqué pour les organisations Claude Console, et les paramètres de conservation zéro des données de Claude Code et de « customer-managed encryption keys » (clés de chiffrement gérées par le client), ou CMEK, pour les organisations Claude Enterprise. Chacun indique si l'accord est en place au niveau de l'organisation ; un paramètre de conservation défini sur un espace de travail individuel n'est pas pris en compte.

L'organisation doit appartenir à la hiérarchie d'organisations de la clé API ; les organisations inconnues et celles situées hors de la hiérarchie renvoient 404. Les paramètres verified_domains et identity_providers décrivent l'ensemble de l'organisation parente et ne sont renvoyés qu'aux clés API qui ne sont pas restreintes à une seule organisation.

Path parameters
organization_id: string

The organization's UUID

Headers
"anthropic-version": string

The version of the Claude API to use. Send an available version on every request. A request that sends any other value, including an empty one, returns a 400 error. This endpoint treats a request that omits this header as version 2023-06-01; some other Compliance API endpoints return a 400 error instead.

See API versions for the available versions.

"x-api-key": optional string
Returns
type: optional "effective_organization_settings"
defaulteffective_organization_settings
api_keys: array of object{ type: "compliance_api_key", id, created_at, 5 more }

Compliance API keys configured for the organization hierarchy, ordered by creation time ascending. Key secret values are never included.

type: optional "compliance_api_key"
defaultcompliance_api_key
id: string

Unique identifier for the API key.

created_at: string

When the key was created.

formatdate-time
created_by_id: string or null

Identifier of the user who created the key, or null when the key was created by automation or its creator's account no longer exists.

is_active: boolean

Whether the key is currently active. A deactivated key is listed for audit visibility but cannot authenticate requests.

name: string

The name given to the API key when it was created.

scopes: array of string

The permission scopes granted to the key.

expires_at: optional string or null

When the key will stop authenticating, or null when the key does not expire.

formatdate-time
organization_id: string
settings: array of Boolean or Integer or String or 5 more
One of the following:
Boolean object{ type: "boolean", name, value }

A setting whose enforced value is a single true/false flag.

type: optional "boolean"
defaultboolean
name: "access_transparency_enabled" or "ai_powered_artifacts_enabled" or "api_workbench_feedback_collection_enabled" or 64 more
One of the following:
"access_transparency_enabled"
"ai_powered_artifacts_enabled"
"api_workbench_feedback_collection_enabled"
"api_zero_data_retention_enabled"
"artifact_connectors_enabled"
"ask_your_org_enabled"
"chat_cowork_unified_enabled"
"chat_enabled"
"claude_academy_inference_enabled"
"claude_ai_ccr_support_sharing_enabled"
"claude_ai_chat_external_sharing_enabled"
"claude_ai_chat_org_sharing_enabled"
"claude_ai_chat_sharing_enabled"
"claude_ai_feedback_collection_enabled"
"claude_ai_integration_sharing_enabled"
"claude_ai_skill_plugins_scanning_enabled"
"claude_code_desktop_bypass_permissions_enabled"
"claude_code_desktop_enabled"
"claude_code_fast_mode_enabled"
"claude_code_metrics_logging_enabled"
"claude_code_remote_control_enabled"
"claude_code_review_enabled"
"claude_code_routines_enabled"
"claude_code_security_enabled"
"claude_code_trusted_devices_required"
"claude_code_web_enabled"
"claude_code_workflows_enabled"
"claude_design_enabled"
"claude_enterprise_claude_code_zero_data_retention_enabled"
"claude_in_slack_enabled"
"claude_science_auto_mode_enabled"
"claude_science_custom_connectors_enabled"
"claude_science_custom_skills_enabled"
"claude_science_enabled"
"claude_science_local_work_import_enabled"
"claude_science_managed_network_allowlist_enabled"
"claude_science_memory_enabled"
"claude_science_modal_enabled"
"claude_science_scientific_model_endpoints_enabled"
"claude_science_ssh_hosts_enabled"
"cmek_enabled"
"code_execution_enabled"
"code_execution_network_egress_enabled"
"connector_tools_default_always_allow"
"content_redaction_enabled"
"desktop_extension_allowlist_enabled"
"directory_sync_enabled"
"frontier_data_use_enabled"
"group_skill_sharing_enabled"
"hipaa_compliance_enabled"
"inline_visualizations_enabled"
"ip_allowlist_enabled"
"location_metadata_enabled"
"member_usage_dashboard_visible"
"memory_enabled"
"org_wide_skill_sharing_enabled"
"project_sharing_enabled"
"public_projects_enabled"
"skill_sharing_enabled"
"skills_enabled"
"sso_claude_ai_enforced"
"sso_console_enforced"
"sso_enabled"
"third_party_interactive_content_enabled"
"user_skill_creation_enabled"
"web_search_enabled"
"work_across_apps_enabled"
value: boolean
Integer object{ type: "integer", name, value }

A setting whose enforced value is a whole number; null means no limit is in force.

type: optional "integer"
defaultinteger
name: "account_session_duration_seconds"
value: number or null
String object{ type: "string", name, value }

A setting whose enforced value is a single string; null means no value is configured.

type: optional "string"
defaultstring
name: "claude_code_default_worker_environment_id" or "claude_code_default_worker_pool_id"
One of the following:
"claude_code_default_worker_environment_id"
"claude_code_default_worker_pool_id"
value: string or null
StringList object{ type: "string_list", name, value }

A setting whose enforced value is a list of strings.

type: optional "string_list"
defaultstring_list
name: "allowed_invite_domains" or "disabled_admin_request_types" or "ip_allowlist_ip_ranges"
One of the following:
"allowed_invite_domains"
"disabled_admin_request_types"
"ip_allowlist_ip_ranges"
value: array of string
ProvisioningMode object{ type: "provisioning_mode", value, name }

How organization members are provisioned, resolved to the enforced mode.

A configured mode is reported only while the mechanism that enforces it is active: just-in-time modes require single sign-on to be enabled, and SCIM modes require directory sync to be enabled. Otherwise login_only is reported, regardless of any stored configuration.

type: optional "provisioning_mode"
defaultprovisioning_mode
value: "jit_advanced" or "jit_permissive" or "login_only" or 2 more

How organization members are provisioned under SSO.

One of the following:
"jit_advanced"
"jit_permissive"
"login_only"
"scim_advanced"
"scim_permissive"
name: optional "sso_provisioning_mode"
defaultsso_provisioning_mode
DataRetention object{ type: "data_retention", value, name }

The data retention periods in force, keyed by the type of data they apply to.

A key of all covers every data type and is exclusive: when present it is the only key. A missing key means no organization-level administrator-configured retention period is in force for that data type; Anthropic's service defaults may still apply.

type: optional "data_retention"
defaultdata_retention
value: map[Fixed or Indefinite]
One of the following:
Fixed object{ type: "fixed", duration, timescale }

A fixed retention window measured from each item's last activity.

type: optional "fixed"
defaultfixed
duration: number
timescale: "day" or "month"
One of the following:
"day"
"month"
Indefinite object{ type: "indefinite" }

An indefinite retention period: data is kept with no time limit.

type: optional "indefinite"
defaultindefinite
name: optional "data_retention_periods"
defaultdata_retention_periods
VerifiedDomains object{ type: "verified_domains", value, name }

The domains verified for the organization's parent organization. The same for every organization under that parent, and returned only to API keys that are not restricted to a single organization.

type: optional "verified_domains"
defaultverified_domains
value: array of object{ domain, sso_claude_ai_enforced, sso_console_enforced }
domain: string

The verified domain name.

sso_claude_ai_enforced: boolean

Whether single sign-on is required to sign in to Claude.ai with an email address on this domain.

sso_console_enforced: boolean

Whether single sign-on is required to sign in to the Claude Console with an email address on this domain.

name: optional "verified_domains"
defaultverified_domains
IdentityProviders object{ type: "identity_providers", value, name }

The IdP connections of the organization's parent organization, oldest first. The same for every organization under that parent, and returned only to API keys that are not restricted to a single organization.

type: optional "identity_providers"
defaultidentity_providers
value: array of object{ id, directory_sync_enabled, sso_enabled }
id: string

Unique identifier for the IdP connection.

directory_sync_enabled: boolean

Whether directory sync through this IdP connection is enabled.

sso_enabled: boolean

Whether single sign-on through this IdP connection is enabled.

name: optional "identity_providers"
defaultidentity_providers
Obtenir les paramètres effectifs de l'organisation
cURL
curl https://api.anthropic.com/v1/compliance/organizations/$ORGANIZATION_ID/settings \
    -H 'anthropic-version: 2026-10-21' \
    -H "Authorization: Bearer $ANTHROPIC_COMPLIANCE_API_KEY"
Returns Examples
Response 200
{
  "api_keys": [
    {
      "id": "id",
      "created_at": "2019-12-27T18:11:19.117Z",
      "created_by_id": "created_by_id",
      "is_active": true,
      "name": "name",
      "scopes": [
        "string"
      ],
      "expires_at": "2019-12-27T18:11:19.117Z",
      "type": "compliance_api_key"
    }
  ],
  "organization_id": "organization_id",
  "settings": [
    {
      "name": "access_transparency_enabled",
      "value": true,
      "type": "boolean"
    }
  ],
  "type": "effective_organization_settings"
}