API reference
Analysis
Stateless analysis endpoints that operate on an architecture graph you supply — reliability, security, simulation, prediction and reporting.
Graph in, analysis out
These endpoints take agraph (the architecture, as produced by a scan) in the request body. Read the latest graph from a scan and pass it here.Reliability
POST
/api/analyze/reliabilityReturns a score, weighted findings and prioritized recommendations.
curl -X POST https://api.riscly.com/api/analyze/reliability \
-H "Authorization: Bearer $RISCLY_TOKEN" \
-H "x-org-id: $RISCLY_ORG_ID" \
-H "Content-Type: application/json" \
-d '{"graph": { "nodes": [], "edges": [] }}'Security
POST
/api/analyze/securityLike reliability, plus an exposures array of externally reachable risks.
Simulate
POST
/api/analyze/simulate| Field | Type | Description |
|---|---|---|
graphrequired | object | The architecture graph. |
typerequired | string | Simulation type, e.g. node-outage. |
params | object | Type-specific parameters, e.g. the node to fail. |
business | object | Business context to express impact in money. |
durationHours | number | Outage window; defaults to 1. |
Predict
POST
/api/analyze/predictAI failure prediction over a graph. Pass an optional currentUsers for scale-aware results.
Report
POST
/api/analyze/reportGenerates a consolidated report from a graph and optional business context.