Get a risk assessment
A risk assessment is the immutable, point-in-time record of one Risk analysis. Each completed Risk order produces an assessment, and the business’s risk.latest_assessment_id always points at the newest one.
Retrieving assessments
Three endpoints return risk assessments:
The endpoints return 403 when your account is not enabled for risk, and 404 when the business has no risk assessment.
Anatomy of a risk assessment
| Field | Type | Description |
|---|---|---|
object | string | Always risk_assessment |
id | string | Unique identifier for the assessment |
created_at | timestamp | When Middesk produced the assessment |
order_id | string, nullable | The order the assessment was produced against |
business_snapshot_url | string, nullable | Resolves to GET /businesses/{id}?order_id={order_id}, the business as of that order |
title | string, nullable | One-sentence analyst headline summarizing the verdict |
description_markdown | string, nullable | CommonMark summary: a lead sentence plus short bullets, with links only to evidence URLs. Render it with a Markdown renderer that does not execute embedded HTML |
level | string | One of low, moderate, high, or not_available |
score | integer | 0 to 100, the model’s 0 to 1 score rounded. level is banded from score, so the two always agree |
dimensions | array | Business-level scored risk dimensions |
identifier_assessments | array | Per-resource assessments for email addresses, phone numbers, and the website URL. See identifier risk |
Investigating an assessment
Assessments are immutable and tied to the order that produced them. The live business record is not: later orders can refresh names, contacts, and other sub-resources, so the business you fetch today may differ from the business the assessment scored.
To see exactly the data the assessment was scored against, fetch the business as of that order. Follow business_snapshot_url, or request GET /businesses/{id}?order_id={order_id} with the assessment’s order_id.
Next steps
Map each identifier assessment back to the resource it scored.
Interpret dimension scores, levels, and top factors.