Claude Platform Docs

Dapatkan Pengaturan Kepatuhan

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

Ambil Pengaturan Kepatuhan (Compliance Settings) organisasi Anda.

Compliance Settings adalah resource singleton: hanya ada tepat satu per organisasi, yang diakses tanpa pengidentifikasi. Field state mencerminkan apakah Compliance API diaktifkan. Organisasi yang memiliki organisasi induk membaca status yang diwarisi dari konfigurasi induknya.

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

Whether the Compliance API is enabled for this organization.

One of the following:
class BetaComplianceSettingsStateEnabled: type: "enabled"
type: Literal["enabled"]
defaultenabled
class BetaComplianceSettingsStateDisabled: type: "disabled"
type: Literal["disabled"]
defaultdisabled
Dapatkan Pengaturan Kepatuhan
import os
from anthropic import Anthropic

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