To enable the Compliance API, see the setup guide.
Set up the Compliance APIEffektive Organisationseinstellungen abrufen
GET/v1/compliance/organizations/{organization_id}/settings
Ruft die effektiven Einstellungen für eine Organisation ab.
Gibt die Einstellungen zurück, die derzeit für die angegebene Organisation gelten – der durchgesetzte Zustand nach Anwendung aller Richtlinien, der von dem abweichen kann, was in der Admin-Konsole konfiguriert ist. Einstellungen, die die Administratoren einer Organisation nicht ändern können (zum Beispiel solche, die durch Anthropic-Richtlinien gesteuert werden oder der Organisation nicht zur Verfügung stehen), werden aus der Liste ausgelassen.
Die Organisation muss zur Organisationshierarchie des API-Keys gehören; unbekannte Organisationen und Organisationen außerhalb der Hierarchie geben 404 zurück.
Path parameters
Headers
Returns
Effektive Organisationseinstellungen abrufen
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"
}