Claude Platform Docs

Obtenir les paramètres de conformité

organization.compliance_settings.retrieve() -> OrganizationComplianceSettings
GET/v1/organizations/compliance_settings

Récupère les paramètres de conformité (Compliance Settings) de votre organisation.

Compliance Settings est une ressource singleton : il en existe exactement une par organisation, adressée sans identifiant. Le champ state indique si l'API Compliance est activée. Une organisation ayant une organisation parente lit l'état hérité de la configuration de l'organisation parente.

Returns
class OrganizationComplianceSettings: type: "compliance_settings"; state
type: Literal["compliance_settings"]
defaultcompliance_settings

Whether the Compliance API is enabled for this organization.

One of the following:
class ComplianceSettingsStateEnabled: type: "enabled"
type: Literal["enabled"]
defaultenabled
class ComplianceSettingsStateDisabled: type: "disabled"
type: Literal["disabled"]
defaultdisabled
Obtenir les paramètres de conformité
import os
from anthropic import Anthropic

client = Anthropic(
    api_key=os.environ.get(
        "ANTHROPIC_API_KEY"
    ),  # This is the default and can be omitted
)
organization_compliance_settings = client.organization.compliance_settings.retrieve()
print(organization_compliance_settings.state)
Returns Examples
Response 200
{
  "state": {
    "type": "enabled"
  },
  "type": "compliance_settings"
}