Assess Governance
POSThttps://api.confident-ai.com/v1/governance/assess
Assesses all governance controls for the project against the governance policy it belongs to, and returns the status of every control along with whether the policy passed.
curl -X POST "https://api.confident-ai.com/v1/governance/assess" \
-H "CONFIDENT_API_KEY: <PROJECT-API-KEY>"{
"success": true,
"data": {
"passed": false,
"governancePolicy": {
"id": "GOVERNANCE-POLICY-ID",
"name": "EU AI Act"
},
"governanceControls": [
{
"id": "GOVERNANCE-CONTROL-ID",
"name": "No user data vulnerabilities",
"type": "PRE_DEPLOYMENT_RED_TEAMING",
"severity": "HIGH",
"status": "FAIL"
},
{
"id": "GOVERNANCE-CONTROL-ID",
"name": "Nightly evals pass rate",
"type": "PRE_DEPLOYMENT_EVALS",
"severity": "LOW",
"status": "NO_DATA"
}
]
},
"deprecated": false
}Headers
CONFIDENT_API_KEYstringRequiredThe API key of your Confident AI project.
Response
successbooleanThis is true if the governance controls were successfully assessed.
dataobjectShow 3 propertiesHide 3 properties
passedbooleanThis is true if every blocking control passed the assessment. Controls whose severity is LOW are non-blocking, so their failures are reported without affecting this value.
governancePolicyobjectThe governance policy the project was assessed against.
Show 2 propertiesHide 2 properties
idstringThe unique identifier of the governance policy.
namestringThe name of the governance policy.
governanceControlslist of objectsEvery control in the policy, with the status it resolved to in this assessment.
Show 5 propertiesHide 5 properties
idstringThe unique identifier of the control.
namestringThe name of the control.
typeenumThe control type.
Show 4 enum valuesHide 4 enum values
RUNTIMEPRE_DEPLOYMENT_EVALSPRE_DEPLOYMENT_RED_TEAMINGOPERATIONAL
severityenumThe importance assigned to the control, or null if it has not been set.
Show 4 enum valuesHide 4 enum values
CRITICALHIGHMEDIUMLOW
statusenumThe status the control resolved to in this assessment.
Show 4 enum valuesHide 4 enum values
PASSFAILERRORNO_DATA
deprecatedbooleanThis is true if this endpoint is deprecated.