To enable the Compliance API, see the setup guide.
Set up the Compliance APIDapatkan pengaturan organisasi efektif
GET/v1/compliance/organizations/{organization_id}/settings
Mengambil pengaturan efektif untuk sebuah organisasi.
Mengembalikan pengaturan yang saat ini berlaku untuk organisasi yang diberikan — yaitu keadaan yang diberlakukan setelah semua kebijakan diterapkan, yang mungkin berbeda dari apa yang dikonfigurasi di konsol admin. Pengaturan yang tidak dapat diubah oleh administrator organisasi (misalnya, yang dikontrol oleh kebijakan Anthropic atau tidak tersedia untuk organisasi tersebut) dihilangkan dari daftar.
Organisasi harus termasuk dalam hierarki organisasi kunci API; organisasi yang tidak dikenal dan organisasi di luar hierarki mengembalikan 404.
Path parameters
Headers
Returns
Dapatkan pengaturan organisasi efektif
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"
}