Claude Platform Docs

Get Compliance Settings

BetaComplianceSettings beta().organization().complianceSettings().retrieve(params = ComplianceSettingRetrieveParams.none(), requestOptions = RequestOptions.none())
GET/v1/organizations/compliance_settings

Retrieve your organization's Compliance Settings.

Compliance Settings is a singleton resource: there is exactly one per organization, addressed without an identifier. The state field reflects whether the Compliance API is enabled. An organization with a parent organization reads the state inherited from the parent's configuration.

Parameters
ComplianceSettingRetrieveParams params
Returns
class BetaComplianceSettings { type = "compliance_settings"; state; }
JsonValue type = "compliance_settings"

Whether the Compliance API is enabled for this organization.

One of the following:
class BetaComplianceSettingsStateEnabled { type = "enabled"; }
JsonValue type = "enabled"
class BetaComplianceSettingsStateDisabled { type = "disabled"; }
JsonValue type = "disabled"
Get Compliance Settings
package com.anthropic.example;

import com.anthropic.client.AnthropicClient;
import com.anthropic.client.okhttp.AnthropicOkHttpClient;
import com.anthropic.models.beta.organization.compliancesettings.BetaComplianceSettings;
import com.anthropic.models.beta.organization.compliancesettings.ComplianceSettingRetrieveParams;

public final class Main {
    private Main() {}

    public static void main(String[] args) {
        AnthropicClient client = AnthropicOkHttpClient.fromEnv();

        BetaComplianceSettings betaComplianceSettings = client.beta().organization().complianceSettings().retrieve();
    }
}
Returns Examples
Response 200
{
  "state": {
    "type": "enabled"
  },
  "type": "compliance_settings"
}