Skip to content

Risks

import { Aside } from ‘@astrojs/starlight/components’;

GET /v1/organizations/:orgId/risks

Required role: Member.

Returns a paginated list of risks across all products in the organization. Materialized risks include the linked issue’s ID and number.

Query parameters:

ParameterTypeDescription
pageintegerPage number (default: 1).
pageSizeintegerResults per page (default: 25, max: 100).
status"identified" | "mitigated" | "materialized" | "aged_out"Filter by status.
likelihood"high" | "medium" | "low"Filter by likelihood.
impact"high" | "medium" | "low"Filter by impact.
productIdstringFilter to a specific product.
sortFieldstringField to sort by (e.g. "createdAt", "likelihood", "status").
sortDirection"asc" | "desc"Sort direction (default: "desc").

GET /v1/organizations/:orgId/risks/insights

Required role: Member.

Returns aggregated breakdowns by status, likelihood, impact, and product.


GET /v1/organizations/:orgId/products/:productSlug/risks

Required role: Member.

Accepts the same query parameters as the organization-level list, excluding productId.


POST /v1/organizations/:orgId/products/:productSlug/risks

Required role: Member.

Cannot create a risk in an archived product — returns 409 Conflict.

Request body:

FieldTypeRequiredDescription
titlestringYesRisk title (max 200 characters).
descriptionstring | nullNoFull description (max 2000 characters).
likelihood"high" | "medium" | "low" | nullNoLikelihood of the risk materializing.
impact"high" | "medium" | "low" | nullNoPotential impact if it materializes.
mitigationstring | nullNoSteps being taken to prevent materialization.
status"identified" | "mitigated" | "aged_out"NoInitial status (default: "identified"). Note: "materialized" cannot be set directly.
areaIdsstring[]NoIDs of areas to tag.

Risk numbers are sequential per product, assigned atomically. Returns 201 Created with a Location header.


GET /v1/organizations/:orgId/products/:productSlug/risks/:riskNumber

Required role: Member.

:riskNumber is the sequential integer risk number. The response includes an areas array and, for materialized risks, the linked issue’s ID and number.


PATCH /v1/organizations/:orgId/products/:productSlug/risks/:riskNumber

Required role: Member.

Request body (all fields optional):

FieldTypeDescription
titlestring
descriptionstring | null
likelihood"high" | "medium" | "low" | null
impact"high" | "medium" | "low" | null
mitigationstring | null
status"identified" | "mitigated" | "aged_out"Cannot set "materialized" directly — use the materialize endpoint.
areaIdsstring[]Replaces the full set of area associations.

DELETE /v1/organizations/:orgId/products/:productSlug/risks/:riskNumber

Required role: Admin or owner.

Returns 204 No Content.


POST /v1/organizations/:orgId/products/:productSlug/risks/:riskNumber/materialize

Required role: Member.

Atomically creates an issue from the risk’s title, description, and impact, then links the two together and sets the risk’s status to "materialized".

This operation is idempotent: calling it on a risk that has already been materialized returns the existing linked issue rather than creating a duplicate.

Response:

{
"issue": {
"id": "...",
"number": 7,
...
}
}

PATCH /v1/organizations/:orgId/risks/bulk

Required role: Member.

Request body:

FieldTypeDescription
idsstring[]Risk IDs to update (max 100).
data.status"identified" | "mitigated" | "aged_out"Optional.
data.likelihood"high" | "medium" | "low" | nullOptional.
data.impact"high" | "medium" | "low" | nullOptional.

DELETE /v1/organizations/:orgId/risks/bulk

Required role: Admin or owner.

Request body:

FieldTypeDescription
idsstring[]Risk IDs to delete (max 100).