Risks
Risks
The Risks endpoints allow you to list risks, create new risks, retrieve individual risks, and delete existing risks. Risks represent potential threats to your organization that need to be tracked, assessed, and mitigated.
Authentication
All endpoints require authentication using an API key. You can provide the API key in one of two ways:
- Bearer token in the
Authorization
header:
- Using the
X-API-Key
header:
Endpoints
GET /api/v1/risks
- List all risks with optional filteringPOST /api/v1/risks
- Create a new riskGET /api/v1/risks/:id
- Get a risk by IDDELETE /api/v1/risks/:id
- Delete a risk by ID
List Risks
Get all risks for the organization associated with the API key.
Query Parameters
Parameter | Type | Description |
---|---|---|
status | string | Filter by risk status. Possible values: open , pending , closed , archived |
category | string | Filter by risk category (e.g., technology , operations , regulatory , etc.) |
department | string | Filter by department. Possible values: none , admin , gov , hr , it , itsm , qms |
search | string | Search by title or description |
Response
Error Responses
Invalid API key (401):
Validation Error (400):
Internal Error (500):
Create Risk
Create a new risk for the organization associated with the API key.
Request Body
Field | Type | Description | Required |
---|---|---|---|
title | string | The title of the risk | Yes |
description | string | A detailed description of the risk | Yes |
category | string | The risk category (e.g., technology , operations , regulatory , etc.) | Yes |
department | string | The department associated with the risk | No |
status | string | The risk status. Default: open | No |
probability | number | The initial probability score (0-10). Default: 0 | No |
impact | number | The initial impact score (0-10). Default: 0 | No |
residual_probability | number | The residual probability score after mitigation (0-10). Default: 0 | No |
residual_impact | number | The residual impact score after mitigation (0-10). Default: 0 | No |
assigneeId | string | The ID of the user who owns the risk | No |
Example Request
Response
Error Responses
Invalid API key (401):
Validation Error (400):
Internal Error (500):
Get Risk
Get a single risk by ID for the organization associated with the API key.
Path Parameters
Parameter | Type | Description |
---|---|---|
id | string | The ID of the risk to get |
Response
Error Responses
Invalid API key (401):
Risk Not Found (404):
Internal Error (500):
Delete Risk
Delete a risk by ID for the organization associated with the API key.
Path Parameters
Parameter | Type | Description |
---|---|---|
id | string | The ID of the risk to delete |
Response
Error Responses
Invalid API key (401):
Risk Not Found (404):
Internal Error (500):
Was this page helpful?