Launch Week 02 wrapped — explore all five launches

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.

POST/v1/governance/assess
curl -X POST "https://api.confident-ai.com/v1/governance/assess" \
  -H "CONFIDENT_API_KEY: <PROJECT-API-KEY>"
200
{
  "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_KEYstringRequired

    The API key of your Confident AI project.

Response

  • successboolean

    This is true if the governance controls were successfully assessed.

  • dataobject

    Show 3 propertiesHide 3 properties
    • passedboolean

      This 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.

    • governancePolicyobject

      The governance policy the project was assessed against.

      Show 2 propertiesHide 2 properties
      • idstring

        The unique identifier of the governance policy.

      • namestring

        The name of the governance policy.

    • governanceControlslist of objects

      Every control in the policy, with the status it resolved to in this assessment.

      Show 5 propertiesHide 5 properties
      • idstring

        The unique identifier of the control.

      • namestring

        The name of the control.

      • typeenum

        The control type.

        Show 4 enum valuesHide 4 enum values
        • RUNTIME
        • PRE_DEPLOYMENT_EVALS
        • PRE_DEPLOYMENT_RED_TEAMING
        • OPERATIONAL
      • severityenum

        The importance assigned to the control, or null if it has not been set.

        Show 4 enum valuesHide 4 enum values
        • CRITICAL
        • HIGH
        • MEDIUM
        • LOW
      • statusenum

        The status the control resolved to in this assessment.

        Show 4 enum valuesHide 4 enum values
        • PASS
        • FAIL
        • ERROR
        • NO_DATA
  • deprecatedboolean

    This is true if this endpoint is deprecated.

Built byConfident AI