List organization risks
curl --request GET \
--url https://api.trycomp.ai/v1/risks \
--header 'X-API-Key: <api-key>'const options = {method: 'GET', headers: {'X-API-Key': '<api-key>'}};
fetch('https://api.trycomp.ai/v1/risks', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.trycomp.ai/v1/risks"
headers = {"X-API-Key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text){
"data": [
{
"id": "rsk_abc123def456",
"title": "Data breach vulnerability in user authentication system",
"description": "Weak password requirements could lead to unauthorized access to user accounts",
"category": "technology",
"status": "open",
"likelihood": "possible",
"impact": "major",
"treatmentStrategy": "mitigate",
"assigneeId": "mem_abc123def456",
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z"
}
],
"count": 15,
"authType": "api-key",
"authenticatedUser": {
"id": "usr_def456ghi789",
"email": "user@example.com"
}
}{
"message": "Invalid or expired API key"
}{
"message": "Organization with ID org_abc123def456 not found"
}{
"message": "Internal server error"
}Risks
List organization risks | Comp AI API
List organization risks with owners, departments, severity, mitigation status, and evidence for risk management reporting.
GET
/
v1
/
risks
List organization risks
curl --request GET \
--url https://api.trycomp.ai/v1/risks \
--header 'X-API-Key: <api-key>'const options = {method: 'GET', headers: {'X-API-Key': '<api-key>'}};
fetch('https://api.trycomp.ai/v1/risks', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.trycomp.ai/v1/risks"
headers = {"X-API-Key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text){
"data": [
{
"id": "rsk_abc123def456",
"title": "Data breach vulnerability in user authentication system",
"description": "Weak password requirements could lead to unauthorized access to user accounts",
"category": "technology",
"status": "open",
"likelihood": "possible",
"impact": "major",
"treatmentStrategy": "mitigate",
"assigneeId": "mem_abc123def456",
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z"
}
],
"count": 15,
"authType": "api-key",
"authenticatedUser": {
"id": "usr_def456ghi789",
"email": "user@example.com"
}
}{
"message": "Invalid or expired API key"
}{
"message": "Organization with ID org_abc123def456 not found"
}{
"message": "Internal server error"
}Authorizations
API key for authentication
Query Parameters
Search by title (case-insensitive contains)
Example:
"data breach"
Page number (1-indexed)
Required range:
x >= 1Example:
1
Number of items per page
Required range:
1 <= x <= 250Example:
50
Sort by field
Available options:
createdAt, updatedAt, title, status Sort direction
Available options:
asc, desc Filter by status
Available options:
open, pending, closed, archived Filter by category
Available options:
customer, fraud, governance, operations, other, people, regulatory, reporting, resilience, technology, vendor_management Filter by department. Built-in values: none, admin, gov, hr, it, itsm, qms. Custom department names are also accepted.
Maximum string length:
64Example:
"it"
Filter by assignee member ID
Example:
"mem_abc123def456"
Was this page helpful?

