Base URL
Use the central Minerva API domain:Authentication
Use a Minerva application API key.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:- fetch available workflows
- create a draft assessment
- start the agent run
- poll the assessment summary until it is ready for review, blocked, or terminal
- add user input or steering when the agent needs more context
- read tasks and risks
- conclude the assessment after reviewer validation
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.assessment_id. Save it for subsequent lifecycle, upload, run, review, and report steps.
Create And Start In JavaScript
Start The Agent Run
Poll Status And Completion
UseGET /assessments/{assessmentId}/summary for polling. It returns compact state, task status counts, client risk rating counts, timestamps, and the latest run reference.
Polling Example
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.after_sequence on the next call.
Check Task Completion
UseGET /assessments/{assessmentId}/tasks to inspect task status, notes, questions, confirmations, and client risk rating state.
Use
task_status_counts for queue and completion checks, but read individual tasks before concluding.
Get Risks
UseGET /assessments/{assessmentId} to read the full assessment document. Risk findings are returned on result.assessment.risks.
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
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./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.
/steer and /input accept:
Update Task Status
Add A Comment
Conclude An Assessment
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.