Risks

Create, update, and report on organizational risks with ownership, departments, and compliance remediation status.

List organization risks

GET/v1/risks

List organization risks with owners, departments, severity, mitigation status, and evidence for risk management reporting.

Query parameters

titlestring

Search by title (case-insensitive contains)

pagenumber

Page number (1-indexed)

perPagenumber

Number of items per page

sortenum

Sort by field

sortDirectionenum

Sort direction

statusenum

Filter by status

categoryenum

Filter by category

departmentstring

Filter by department. Built-in values: none, admin, gov, hr, it, itsm, qms. Custom department names are also accepted.

assigneeIdstring

Filter by assignee member ID

Responses

200Risks retrieved successfully
dataobject[]
Show child attributes
idstring

Risk ID

titlestring

Risk title

descriptionstring

Risk description

categoryenum

One of: customer governance operations other people regulatory reporting resilience technology vendor_management

statusenum

One of: open pending closed archived

likelihoodenum

One of: very_unlikely unlikely possible likely very_likely

impactenum

One of: insignificant minor moderate major severe

treatmentStrategyenum

One of: accept avoid mitigate transfer

assigneeIdstring

ID of the user assigned to this risk

createdAtstring

When the risk was created

updatedAtstring

When the risk was last updated

countnumber

Total number of risks

authTypeenum

How the request was authenticated

One of: api-key session

authenticatedUserobject

User information (only for session auth)

Show child attributes
idstring
emailstring
{
  "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": "2026-01-01T00:00:00.000Z",
      "updatedAt": "2026-01-01T00:00:00.000Z"
    }
  ],
  "count": 15,
  "authType": "api-key",
  "authenticatedUser": {
    "id": "usr_def456ghi789",
    "email": "user@example.com"
  }
}
401Unauthorized - Invalid authentication or insufficient permissions
messagestring
{
  "message": "Invalid or expired API key"
}
404Organization not found
messagestring
{
  "message": "Organization with ID org_abc123def456 not found"
}
500Internal server error
messagestring
{
  "message": "Internal server error"
}
curl --request GET \
  --url https://api.complianz.ai/v1/risks \
  --header 'X-API-Key: <api-key>'

Create organization risk

POST/v1/risks

Create a risk record with ownership and context so compliance teams can track mitigation and remediation work.

Request body

titlestringrequired

Risk title

descriptionstringrequired

Detailed description of the risk

categoryenumrequired

Risk category

One of: customer fraud governance operations other people regulatory reporting resilience technology vendor_management

departmentstring

Department responsible for the risk. Built-in values: none, admin, gov, hr, it, itsm, qms. Custom department names are also accepted.

statusenumrequired

Current status of the risk

One of: open pending closed archived

likelihoodenumrequired

Likelihood of the risk occurring

One of: very_unlikely unlikely possible likely very_likely

impactenumrequired

Impact if the risk materializes

One of: insignificant minor moderate major severe

residualLikelihoodenumrequired

Residual likelihood after treatment

One of: very_unlikely unlikely possible likely very_likely

residualImpactenumrequired

Residual impact after treatment

One of: insignificant minor moderate major severe

treatmentStrategyDescriptionstring

Description of the treatment strategy

treatmentStrategyenumrequired

Risk treatment strategy

One of: accept avoid mitigate transfer

assigneeIdstring

ID of the user assigned to this risk

Responses

201Risk created successfully
idstring

Risk ID

titlestring

Risk title

descriptionstring

Risk description

categoryenum

One of: customer governance operations other people regulatory reporting resilience technology vendor_management

departmentenum

One of: none admin gov hr it itsm qms

statusenum

One of: open pending closed archived

likelihoodenum

One of: very_unlikely unlikely possible likely very_likely

impactenum

One of: insignificant minor moderate major severe

residualLikelihoodenum

One of: very_unlikely unlikely possible likely very_likely

residualImpactenum

One of: insignificant minor moderate major severe

treatmentStrategyDescriptionstring
treatmentStrategyenum

One of: accept avoid mitigate transfer

organizationIdstring
assigneeIdstring

ID of the user assigned to this risk

createdAtstring

When the risk was created

updatedAtstring

When the risk was last updated

authTypeenum

How the request was authenticated

One of: api-key session

authenticatedUserobject

User information (only for session auth)

Show child attributes
idstring
emailstring
{
  "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",
  "department": "it",
  "status": "open",
  "likelihood": "possible",
  "impact": "major",
  "residualLikelihood": "unlikely",
  "residualImpact": "minor",
  "treatmentStrategyDescription": "Implement multi-factor authentication and strengthen password requirements",
  "treatmentStrategy": "mitigate",
  "organizationId": "org_abc123def456",
  "assigneeId": "mem_abc123def456",
  "createdAt": "2026-01-01T00:00:00.000Z",
  "updatedAt": "2026-01-01T00:00:00.000Z",
  "authType": "api-key",
  "authenticatedUser": {
    "id": "usr_def456ghi789",
    "email": "user@example.com"
  }
}
400Bad request - Invalid input data
messagestring[]
errorstring
statusCodenumber
{
  "message": [
    "title should not be empty",
    "description should not be empty",
    "category must be a valid enum value"
  ],
  "error": "Bad Request",
  "statusCode": 400
}
401Unauthorized - Invalid authentication or insufficient permissions
messagestring
{
  "message": "Invalid or expired API key"
}
404Organization not found
messagestring
{
  "message": "Organization with ID org_abc123def456 not found"
}
500Internal server error
messagestring
{
  "message": "Internal server error"
}
curl --request POST \
  --url https://api.complianz.ai/v1/risks \
  --header 'X-API-Key: <api-key>' \
  --header 'Content-Type: application/json' \
  --data '{
    "title": "Data breach vulnerability in user authentication system",
    "description": "Weak password requirements could lead to unauthorized access to user accounts",
    "category": "technology",
    "department": "it",
    "status": "open",
    "likelihood": "possible",
    "impact": "major",
    "residualLikelihood": "unlikely",
    "residualImpact": "minor",
    "treatmentStrategyDescription": "Implement multi-factor authentication and strengthen password requirements",
    "treatmentStrategy": "mitigate",
    "assigneeId": "mem_abc123def456"
  }'

Get risk statistics grouped by assignee

GET/v1/risks/stats/by-assignee

Get risk statistics grouped by assignee in Complianz. Create, update, and report on organizational risks with ownership, departments, and compliance remediation status.

Responses

200
curl --request GET \
  --url https://api.complianz.ai/v1/risks/stats/by-assignee \
  --header 'X-API-Key: <api-key>'

Get risk counts grouped by department

GET/v1/risks/stats/by-department

Get risk counts grouped by department in Complianz. Create, update, and report on organizational risks with ownership, departments, and compliance remediation status.

Responses

200
curl --request GET \
  --url https://api.complianz.ai/v1/risks/stats/by-department \
  --header 'X-API-Key: <api-key>'

Get organization risk

GET/v1/risks/{id}

Retrieve one organization risk with owner, department, likelihood, impact, mitigation, and remediation context.

Path parameters

idstringrequired

Risk ID

Responses

200Risk retrieved successfully
idstring

Risk ID

titlestring

Risk title

descriptionstring

Risk description

categoryenum

One of: customer governance operations other people regulatory reporting resilience technology vendor_management

departmentenum

One of: none admin gov hr it itsm qms

statusenum

One of: open pending closed archived

likelihoodenum

One of: very_unlikely unlikely possible likely very_likely

impactenum

One of: insignificant minor moderate major severe

residualLikelihoodenum

One of: very_unlikely unlikely possible likely very_likely

residualImpactenum

One of: insignificant minor moderate major severe

treatmentStrategyDescriptionstring
treatmentStrategyenum

One of: accept avoid mitigate transfer

organizationIdstring
assigneeIdstring

ID of the user assigned to this risk

createdAtstring

When the risk was created

updatedAtstring

When the risk was last updated

authTypeenum

How the request was authenticated

One of: api-key session

authenticatedUserobject

User information (only for session auth)

Show child attributes
idstring
emailstring
{
  "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",
  "department": "it",
  "status": "open",
  "likelihood": "possible",
  "impact": "major",
  "residualLikelihood": "unlikely",
  "residualImpact": "minor",
  "treatmentStrategyDescription": "Implement multi-factor authentication and strengthen password requirements",
  "treatmentStrategy": "mitigate",
  "organizationId": "org_abc123def456",
  "assigneeId": "mem_abc123def456",
  "createdAt": "2026-01-01T00:00:00.000Z",
  "updatedAt": "2026-01-01T00:00:00.000Z",
  "authType": "api-key",
  "authenticatedUser": {
    "id": "usr_def456ghi789",
    "email": "user@example.com"
  }
}
401Unauthorized - Invalid authentication or insufficient permissions
messagestring
{
  "message": "Invalid or expired API key"
}
403Forbidden - User does not have permission to access this risk
messagestring
{
  "message": "You do not have access to view this risk"
}
404Risk not found
messagestring
{
  "message": "Risk with ID rsk_abc123def456 not found in organization org_abc123def456"
}
500Internal server error
messagestring
{
  "message": "Internal server error"
}
curl --request GET \
  --url https://api.complianz.ai/v1/risks/<id> \
  --header 'X-API-Key: <api-key>'

Update organization risk

PATCH/v1/risks/{id}

Update a risk record as mitigation work progresses so compliance reports reflect the current risk posture.

Path parameters

idstringrequired

Risk ID

Request body

titlestring

Risk title

descriptionstring

Detailed description of the risk

categoryenum

Risk category

One of: customer fraud governance operations other people regulatory reporting resilience technology vendor_management

departmentstring

Department responsible for the risk. Built-in values: none, admin, gov, hr, it, itsm, qms. Custom department names are also accepted.

statusenum

Current status of the risk

One of: open pending closed archived

likelihoodenum

Likelihood of the risk occurring

One of: very_unlikely unlikely possible likely very_likely

impactenum

Impact if the risk materializes

One of: insignificant minor moderate major severe

residualLikelihoodenum

Residual likelihood after treatment

One of: very_unlikely unlikely possible likely very_likely

residualImpactenum

Residual impact after treatment

One of: insignificant minor moderate major severe

treatmentStrategyDescriptionstring

Description of the treatment strategy

treatmentStrategyenum

Risk treatment strategy

One of: accept avoid mitigate transfer

assigneeIdstring

ID of the user assigned to this risk

Responses

200Risk updated successfully
idstring

Risk ID

titlestring

Risk title

descriptionstring

Risk description

categoryenum

One of: customer governance operations other people regulatory reporting resilience technology vendor_management

departmentenum

One of: none admin gov hr it itsm qms

statusenum

One of: open pending closed archived

likelihoodenum

One of: very_unlikely unlikely possible likely very_likely

impactenum

One of: insignificant minor moderate major severe

residualLikelihoodenum

One of: very_unlikely unlikely possible likely very_likely

residualImpactenum

One of: insignificant minor moderate major severe

treatmentStrategyDescriptionstring
treatmentStrategyenum

One of: accept avoid mitigate transfer

organizationIdstring
assigneeIdstring

ID of the user assigned to this risk

createdAtstring

When the risk was created

updatedAtstring

When the risk was last updated

authTypeenum

How the request was authenticated

One of: api-key session

authenticatedUserobject

User information (only for session auth)

Show child attributes
idstring
emailstring
{
  "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",
  "department": "it",
  "status": "open",
  "likelihood": "possible",
  "impact": "major",
  "residualLikelihood": "unlikely",
  "residualImpact": "minor",
  "treatmentStrategyDescription": "Implement multi-factor authentication and strengthen password requirements",
  "treatmentStrategy": "mitigate",
  "organizationId": "org_abc123def456",
  "assigneeId": "mem_abc123def456",
  "createdAt": "2026-01-01T00:00:00.000Z",
  "updatedAt": "2026-01-01T00:00:00.000Z",
  "authType": "api-key",
  "authenticatedUser": {
    "id": "usr_def456ghi789",
    "email": "user@example.com"
  }
}
400Bad request - Invalid input data
messagestring[]
errorstring
statusCodenumber
{
  "message": [
    "title should not be empty",
    "category must be a valid enum value",
    "status must be a valid enum value"
  ],
  "error": "Bad Request",
  "statusCode": 400
}
401Unauthorized - Invalid authentication or insufficient permissions
messagestring
{
  "message": "Invalid or expired API key"
}
404Risk not found
messagestring
{
  "message": "Risk with ID rsk_abc123def456 not found in organization org_abc123def456"
}
500Internal server error
messagestring
{
  "message": "Internal server error"
}
curl --request PATCH \
  --url https://api.complianz.ai/v1/risks/<id> \
  --header 'X-API-Key: <api-key>' \
  --header 'Content-Type: application/json' \
  --data '{
    "title": "Data breach vulnerability in user authentication system",
    "description": "Weak password requirements could lead to unauthorized access to user accounts",
    "category": "technology",
    "department": "it",
    "status": "open",
    "likelihood": "possible",
    "impact": "major",
    "residualLikelihood": "unlikely",
    "residualImpact": "minor",
    "treatmentStrategyDescription": "Implement multi-factor authentication and strengthen password requirements",
    "treatmentStrategy": "mitigate",
    "assigneeId": "mem_abc123def456"
  }'

Delete organization risk

DELETE/v1/risks/{id}

Delete an organization risk that no longer needs active tracking in the risk register or compliance program.

Path parameters

idstringrequired

Risk ID

Responses

200Risk deleted successfully
messagestring
deletedRiskobject
Show child attributes
idstring

Deleted risk ID

titlestring

Deleted risk title

authTypeenum

How the request was authenticated

One of: api-key session

authenticatedUserobject

User information (only for session auth)

Show child attributes
idstring
emailstring
{
  "message": "Risk deleted successfully",
  "deletedRisk": {
    "id": "rsk_abc123def456",
    "title": "Data breach vulnerability in user authentication system"
  },
  "authType": "api-key",
  "authenticatedUser": {
    "id": "usr_def456ghi789",
    "email": "user@example.com"
  }
}
401Unauthorized - Invalid authentication or insufficient permissions
messagestring
{
  "message": "Invalid or expired API key"
}
404Risk not found
messagestring
{
  "message": "Risk with ID rsk_abc123def456 not found in organization org_abc123def456"
}
500Internal server error
messagestring
{
  "message": "Internal server error"
}
curl --request DELETE \
  --url https://api.complianz.ai/v1/risks/<id> \
  --header 'X-API-Key: <api-key>'

List risk-owner acceptance events

GET/v1/risks/{id}/acceptances

Returns the residual-risk acceptance history for a risk, newest first. Each event freezes the residual rating at acceptance and carries a stale flag set when the risk's residual rating has changed since (ISO 27001 6.1.3(f)).

Path parameters

idstringrequired

Risk ID

Responses

200Acceptance history retrieved successfully (newest first)
dataobject[]
Show child attributes
idstring

Acceptance event ID

acceptedByIdstring

Member ID of the acceptor (null if since removed)

acceptedByNamestring

Acceptor display name, frozen at acceptance

notesstring
residualLikelihoodenum

Residual likelihood frozen at acceptance

One of: very_unlikely unlikely possible likely very_likely

residualImpactenum

Residual impact frozen at acceptance

One of: insignificant minor moderate major severe

levelenum

Risk level of the accepted residual rating

One of: very-low low medium high very-high

levelLabelstring

Human-readable level label

staleboolean

True when the residual rating changed after this acceptance was recorded — re-acceptance is required

createdAtstring

When the acceptance was recorded (server-set, immutable)

authTypeenum

How the request was authenticated

One of: api-key session service

authenticatedUserobject

User information (only for session auth)

Show child attributes
idstring
emailstring
{
  "data": [
    {
      "id": "rska_abc123def456",
      "acceptedById": "mem_abc123def456",
      "acceptedByName": "Jane Doe",
      "notes": "Residual risk reviewed at the Q2 risk review.",
      "residualLikelihood": "unlikely",
      "residualImpact": "minor",
      "level": "low",
      "levelLabel": "Low",
      "stale": false,
      "createdAt": "2026-01-01T00:00:00.000Z"
    }
  ],
  "authType": "api-key",
  "authenticatedUser": {
    "id": "usr_def456ghi789",
    "email": "user@example.com"
  }
}
401Unauthorized - Invalid authentication
messagestring
{
  "message": "Invalid or expired API key"
}
403Forbidden - User does not have permission to access this risk
messagestring
{
  "message": "You do not have access to this risk"
}
404Risk not found
messagestring
{
  "message": "Risk with ID abc123 not found in organization org_abc123def456"
}
500Internal server error
messagestring
{
  "message": "Internal server error"
}
curl --request GET \
  --url https://api.complianz.ai/v1/risks/<id>/acceptances \
  --header 'X-API-Key: <api-key>'

Record risk-owner acceptance

POST/v1/risks/{id}/acceptances

Records an immutable, timestamped acceptance of a risk's current residual risk by the risk owner (or a chosen member). Re-record after the residual rating changes; prior events remain in the history.

Path parameters

idstringrequired

Risk ID

Request body

acceptedByIdstring

Member ID of the acceptor. Defaults to the risk owner (assignee) when omitted.

notesstring

Optional notes recorded with the acceptance.

Responses

201Acceptance recorded successfully
idstring

Acceptance event ID

acceptedByIdstring

Member ID of the acceptor (null if since removed)

acceptedByNamestring

Acceptor display name, frozen at acceptance

notesstring
residualLikelihoodenum

Residual likelihood frozen at acceptance

One of: very_unlikely unlikely possible likely very_likely

residualImpactenum

Residual impact frozen at acceptance

One of: insignificant minor moderate major severe

levelenum

Risk level of the accepted residual rating

One of: very-low low medium high very-high

levelLabelstring

Human-readable level label

staleboolean

True when the residual rating changed after this acceptance was recorded — re-acceptance is required

createdAtstring

When the acceptance was recorded (server-set, immutable)

authTypeenum

How the request was authenticated

One of: api-key session service

authenticatedUserobject

User information (only for session auth)

Show child attributes
idstring
emailstring
{
  "id": "rska_abc123def456",
  "acceptedById": "mem_abc123def456",
  "acceptedByName": "Jane Doe",
  "notes": "Residual risk reviewed at the Q2 risk review.",
  "residualLikelihood": "unlikely",
  "residualImpact": "minor",
  "level": "low",
  "levelLabel": "Low",
  "stale": false,
  "createdAt": "2026-01-01T00:00:00.000Z",
  "authType": "api-key",
  "authenticatedUser": {
    "id": "usr_def456ghi789",
    "email": "user@example.com"
  }
}
400No owner assigned, or the acceptor is not a valid member
messagestring
{
  "message": "No owner is assigned. Assign an owner or choose an acceptor."
}
401Unauthorized - Invalid authentication
messagestring
{
  "message": "Invalid or expired API key"
}
403Forbidden - User does not have permission to access this risk
messagestring
{
  "message": "You do not have access to this risk"
}
404Risk not found
messagestring
{
  "message": "Risk with ID abc123 not found in organization org_abc123def456"
}
500Internal server error
messagestring
{
  "message": "Internal server error"
}
curl --request POST \
  --url https://api.complianz.ai/v1/risks/<id>/acceptances \
  --header 'X-API-Key: <api-key>' \
  --header 'Content-Type: application/json' \
  --data '{
    "acceptedById": "mem_abc123def456",
    "notes": "Residual risk reviewed at the Q2 risk review."
  }'