Claude Platform Docs

Get Compliance Settings

client.beta.organization.complianceSettings.retrieve(options?): BetaComplianceSettings
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.

Returns
interface BetaComplianceSettings { type: "compliance_settings"; state }
type: "compliance_settings"
defaultcompliance_settings

Whether the Compliance API is enabled for this organization.

One of the following:
interface BetaComplianceSettingsStateEnabled { type: "enabled" }
type: "enabled"
defaultenabled
interface BetaComplianceSettingsStateDisabled { type: "disabled" }
type: "disabled"
defaultdisabled
Get Compliance Settings
import Anthropic from "@anthropic-ai/sdk";

const client = new Anthropic({
  apiKey: process.env["ANTHROPIC_API_KEY"] // This is the default and can be omitted
});

const betaComplianceSettings = await client.beta.organization.complianceSettings.retrieve();

console.log(betaComplianceSettings.state);
Returns Examples
Response 200
{
  "state": {
    "type": "enabled"
  },
  "type": "compliance_settings"
}