curl --request GET \
--url http://localhost:3333/v1/risks \
--header 'X-API-Key: <api-key>'{
"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"
}
}Returns all risks for the authenticated organization. Supports both API key authentication (X-API-Key header) and session authentication (cookies + X-Organization-Id header).
curl --request GET \
--url http://localhost:3333/v1/risks \
--header 'X-API-Key: <api-key>'{
"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"
}
}API key for authentication
Organization ID (required for session auth, optional for API key auth)
Risks retrieved successfully
Show child attributes
Risk ID
"rsk_abc123def456"
Risk title
"Data breach vulnerability in user authentication system"
Risk description
"Weak password requirements could lead to unauthorized access to user accounts"
customer, governance, operations, other, people, regulatory, reporting, resilience, technology, vendor_management "technology"
open, pending, closed, archived "open"
very_unlikely, unlikely, possible, likely, very_likely "possible"
insignificant, minor, moderate, major, severe "major"
accept, avoid, mitigate, transfer "mitigate"
ID of the user assigned to this risk
"mem_abc123def456"
When the risk was created
When the risk was last updated
Total number of risks
15
How the request was authenticated
api-key, session Was this page helpful?