To enable the Compliance API, see the setup guide.
Set up the Compliance API取得有效的組織設定
GET/v1/compliance/organizations/{organization_id}/settings
擷取組織的有效設定。
傳回指定組織目前生效的設定——即套用所有政策後的強制狀態,這可能與管理主控台中的設定不同。組織管理員無法變更的設定(例如由 Anthropic 政策控制或該組織無法使用的設定)會從清單中省略。
該組織必須屬於 API 金鑰的組織階層;未知的組織和階層外的組織會傳回 404。
Path parameters
Headers
Returns
取得有效的組織設定
cURL
curl https://api.anthropic.com/v1/compliance/organizations/$ORGANIZATION_ID/settings \
-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": "ai_powered_artifacts_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": "ai_powered_artifacts_enabled",
"value": true,
"type": "boolean"
}
],
"type": "effective_organization_settings"
}