Claude Platform Docs

取得合規設定

GET/v1/organizations/compliance_settings

擷取您組織的合規設定。

合規設定是單例資源:每個組織恰好有一個,無需識別碼即可存取。state 欄位反映 Compliance API 是否已啟用。具有上層組織的組織會讀取從上層組織設定繼承的狀態。

Returns
BetaComplianceSettings object{ state, type }

Whether the Compliance API is enabled for this organization.

One of the following:
BetaComplianceSettingsStateEnabled object{ type }
type: "enabled"
defaultenabled
BetaComplianceSettingsStateDisabled object{ type }
type: "disabled"
defaultdisabled
type: "compliance_settings"
defaultcompliance_settings
取得合規設定
curl https://api.anthropic.com/v1/organizations/compliance_settings \
    -H 'anthropic-version: 2023-06-01' \
    -H "X-Api-Key: $ANTHROPIC_API_KEY"
Returns Examples
Response 200
{
  "state": {
    "type": "enabled"
  },
  "type": "compliance_settings"
}