To enable the Compliance API, see the setup guide.
Set up the Compliance API有効な組織設定の取得
GET/v1/compliance/organizations/{organization_id}/settings
組織の有効な設定を取得します。
指定された組織に現在適用されている設定、つまりすべてのポリシーが適用された後の強制状態を返します。これは管理コンソールで構成されている内容と異なる場合があります。組織の管理者が変更できない設定(たとえば、Anthropic のポリシーによって制御されている設定や、その組織で利用できない設定)はリストから除外されます。ただし、Anthropic とのコンプライアンス上の取り決めを報告する設定は例外です。HIPAA および Access Transparency の設定は常に含まれます。API のゼロデータ保持設定は Claude Console の組織について、Claude Code のゼロデータ保持設定と顧客管理の暗号化キー(CMEK)設定は Claude Enterprise の組織について報告されます。各設定は、その取り決めが組織レベルで有効になっているかどうかを報告します。個々のワークスペースの保持設定は反映されません。
組織は APIキーの組織階層に属している必要があります。不明な組織や階層外の組織に対しては 404 が返されます。
Path parameters
Headers
Returns
有効な組織設定の取得
cURL
curl https://api.anthropic.com/v1/compliance/organizations/$ORGANIZATION_ID/settings \
-H 'anthropic-version: 2023-06-01' \
-H "Authorization: Bearer $ANTHROPIC_COMPLIANCE_API_KEY"Response 200
{
"api_keys": [
{
"id": "id",
"created_at": "2019-12-27T18:11:19.117Z",
"created_by_id": "created_by_id",
"is_active": true,
"name": "name",
"scopes": [
"string"
],
"expires_at": "2019-12-27T18:11:19.117Z",
"type": "compliance_api_key"
}
],
"organization_id": "organization_id",
"settings": [
{
"name": "access_transparency_enabled",
"value": true,
"type": "boolean"
}
],
"type": "effective_organization_settings"
}Returns Examples
Response 200
{
"api_keys": [
{
"id": "id",
"created_at": "2019-12-27T18:11:19.117Z",
"created_by_id": "created_by_id",
"is_active": true,
"name": "name",
"scopes": [
"string"
],
"expires_at": "2019-12-27T18:11:19.117Z",
"type": "compliance_api_key"
}
],
"organization_id": "organization_id",
"settings": [
{
"name": "access_transparency_enabled",
"value": true,
"type": "boolean"
}
],
"type": "effective_organization_settings"
}