List organization risks
const url = 'https://api.varman.io/v1/risks?title=data%20breach&page=1&perPage=50&sort=createdAt&sortDirection=asc&status=open&category=customer&department=it&assigneeId=mem_abc123def456';const options = {method: 'GET', headers: {'X-API-Key': '<X-API-Key>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url 'https://api.varman.io/v1/risks?title=data%20breach&page=1&perPage=50&sort=createdAt&sortDirection=asc&status=open&category=customer&department=it&assigneeId=mem_abc123def456' \ --header 'X-API-Key: <X-API-Key>'List organization risks with owners, departments, severity, mitigation status, and evidence for risk management reporting.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Query Parameters
Section titled “Query Parameters”Example
data breachSearch by title (case-insensitive contains)
Example
1Page number (1-indexed)
Example
50Number of items per page
Sort by field
Sort direction
Filter by status
Filter by category
Example
itFilter by department. Built-in values: none, admin, gov, hr, it, itsm, qms. Custom department names are also accepted.
Example
mem_abc123def456Filter by assignee member ID
Responses
Section titled “Responses”Risks retrieved successfully
object
object
Risk ID
Risk title
Risk description
ID of the user assigned to this risk
When the risk was created
When the risk was last updated
Total number of risks
How the request was authenticated
User information (only for session auth)
object
Example
{ "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": "customer", "status": "open", "likelihood": "very_unlikely", "impact": "insignificant", "treatmentStrategy": "accept", "assigneeId": "mem_abc123def456" } ], "count": 15, "authType": "api-key", "authenticatedUser": { "id": "usr_def456ghi789", "email": "user@example.com" }}Unauthorized - Invalid authentication or insufficient permissions
object
Example
{ "message": "Invalid or expired API key"}Organization not found
object
Example
{ "message": "Organization with ID org_abc123def456 not found"}Internal server error
object
Example
{ "message": "Internal server error"}