Run Risk Assessment
Starts a risk assessment run asynchronously against a framework’s risk categories, then returns a link to the assessment.
Target your application with either an AI connection (by name) or a prompt (by alias and commit). Provide exactly one, or set generationMode to disambiguate. Requires an Enterprise plan.
Path parameters
frameworkId
The unique identifier of the framework to run.
Headers
CONFIDENT_API_KEY
The API key of your Confident AI project.
Request
This endpoint expects an object.
riskCategories
The names of the risk categories to assess, exactly as returned by the list frameworks endpoint.
exposure
The exposure level of the application under test.
identifier
An optional label for the run.
aiConnectionId
The ID of the AI connection to target, you can find this in the Project Settings → AI Connections on the platform. Required for AI_CONNECTION mode.
promptAlias
The alias of the prompt to target. Required for PROMPT mode.
promptCommit
The prompt commit hash to target. Defaults to the latest commit on the prompt's main branch.
generationMode
The target type. Optional when exactly one of aiConnectionId or promptAlias is provided.
attackEngine
Optional attack generation settings.
Response
success
Indicates if the risk assessment run was started.
data
link
A link to view the risk assessment.