Skip to main content
The Risk Assessment Agents API lets approved applications create and manage beta agent-driven risk assessments programmatically.
Beta API: Risk assessment agent endpoints require beta enablement and application access. Contact your Minerva representative or support@gominerva.com before building against these endpoints.

Base URL

Use the central Minerva API domain:
Your Minerva contact will confirm when this public base URL is enabled for your application and environment. Internally, these endpoints route to Minerva’s risk assessment service customer API.

Authentication

Use a Minerva application API key.
The legacy X-Api-Key header is also accepted by the service, but new integrations should use the Authorization: Api-Key ... header. The application key determines the tenant, workspace, and actor context. Do not send tenant or workspace identifiers in the request body unless Minerva has explicitly documented a field for that endpoint. For method-level endpoint reference, use Agent Risk Assessments - Endpoints in the API Reference sidebar.

API Usage Guide

The most common integration flow is:
  1. fetch available workflows
  2. create a draft assessment
  3. start the agent run
  4. poll the assessment summary until it is ready for review, blocked, or terminal
  5. add user input or steering when the agent needs more context
  6. read tasks and risks
  7. conclude the assessment after reviewer validation
Minerva responses use the standard envelope:
Read response data from result.assessment, result.summary, result.tasks, and similar result fields.

Create An Assessment

The exact workflow, scorecard, and subject fields available to your application depend on your beta configuration. Fetch workflows and scorecards first, then create an assessment using the selected IDs.
The response includes the assessment_id. Save it for subsequent lifecycle, upload, run, review, and report steps.

Create And Start In JavaScript

Start The Agent Run

Starting an assessment creates an agent run owned by the risk assessment service. Use the run and trajectory endpoints to inspect progress.

Poll Status And Completion

Use GET /assessments/{assessmentId}/summary for polling. It returns compact state, task status counts, client risk rating counts, timestamps, and the latest run reference.
Interpret assessment status as:
ready_for_review means the agent work is complete. It is not the same as a final compliance decision. Use concluded only after your reviewer or integration has validated tasks, risks, evidence, and comments.

Polling Example

Use a polling interval appropriate to your workflow. For most integrations, 10 to 30 seconds is enough. Avoid tight polling loops.

Track Run Progress

Use the trajectory endpoint when you need a detailed activity stream, tool calls, intermediate messages, or evidence of why the agent is waiting.
For incremental polling, store the highest returned sequence and pass it as after_sequence on the next call.

Check Task Completion

Use GET /assessments/{assessmentId}/tasks to inspect task status, notes, questions, confirmations, and client risk rating state.
Task statuses are: Use task_status_counts for queue and completion checks, but read individual tasks before concluding.
To find work needing review across many assessments, use the list endpoint filters:

Get Risks

Use GET /assessments/{assessmentId} to read the full assessment document. Risk findings are returned on result.assessment.risks.
Each risk finding can include: There is not currently a separate customer endpoint that lists risks independently from the assessment document. Filter risks client-side from the assessment payload.

Filter Risks By Topic, Tag, Status, Or Severity

Risk tags are configured by the workflow and generated during the assessment. Do not assume every tenant uses the same tag vocabulary. Use your workflow’s task tags and returned risk tags as the source of truth. Common topic groups might include:

Filter With jq

To filter by several related tags:

Filter In JavaScript

Filter Risks By Task Tags

Task tags and risk tags should align with your workflow taxonomy. When you want “risks related to tasks tagged ownership,” read tasks and risks together:

Provide Steering

Use steering when the run should adjust direction without creating a new assessment.
Good steering is specific, short, and tied to the current assessment. Do not use steering to bypass required review or evidence requirements. Use /steer when you want to change how the agent proceeds. Use /input when you are answering a question, providing missing facts, or adding more instructions as user-provided context.
Both /steer and /input accept:

Update Task Status

Use status changes to reflect actual review state. Include comments when the reason will matter for audit or handoff.

Add A Comment

Comments should name the review question, the evidence or task involved, and the action needed.

Conclude An Assessment

Conclude only after required tasks, evidence, risk findings, comments, and client risk rating criteria have been reviewed according to your policy.

Operational Guidance

  • Create separate application keys for test and Live use.
  • Confirm beta enablement before using the public route.
  • Fetch workflows and scorecards instead of hard-coding IDs where possible.
  • Store assessment IDs in your internal case system.
  • Use descriptive assessment titles so dashboard users can identify API-created cases.
  • Upload or register source documents before starting the run when they are material to the task.
  • Review trajectory and evidence IDs before concluding assessments.
  • Retry idempotent reads safely, but avoid repeated start or conclude calls without checking current status.
  • Contact Minerva if the same endpoint returns repeated failures for one tenant, workspace, or workflow.