API reference
Projects
A project is a unit of analysis — usually one repository or app. It owns connections, scans, business context and the architecture overlay.
List projects
GET
/api/projectscurl https://api.riscly.com/api/projects \
-H "Authorization: Bearer $RISCLY_TOKEN" \
-H "x-org-id: $RISCLY_ORG_ID"Create a project
POST
/api/projects| Field | Type | Description |
|---|---|---|
namerequired | string | Display name, often the repo it will be attached to. |
curl -X POST https://api.riscly.com/api/projects \
-H "Authorization: Bearer $RISCLY_TOKEN" \
-H "x-org-id: $RISCLY_ORG_ID" \
-H "Content-Type: application/json" \
-d '{"name":"my-app"}'Rename a project
PATCH
/api/projects/{projectId}curl -X PATCH https://api.riscly.com/api/projects/PROJECT_ID \
-H "Authorization: Bearer $RISCLY_TOKEN" \
-H "x-org-id: $RISCLY_ORG_ID" \
-H "Content-Type: application/json" \
-d '{"name":"renamed"}'Files & commits
Browse the repo file tree and read individual files for the code explorer.
GET
/api/projects/{projectId}/files?repo={repo}GET
/api/projects/{projectId}/files/content?repo={repo}&path={path}GET
/api/projects/{projectId}/commits?limit=8Business context
Revenue and usage that drive money-denominated impact (see Reliability & simulation).
GET
/api/projects/{projectId}/businessPUT
/api/projects/{projectId}/business| Field | Type | Description |
|---|---|---|
monthlyRevenuerequired | number | Monthly recurring revenue. |
activeUsersrequired | number | Active users in the period. |
currency | string | ISO currency code, e.g. EUR. |
peakCheckoutShare | number | Share of revenue at peak (0–1), for sharper outage math. |
Architecture overlay
Your manual corrections to the auto-detected graph; persisted across scans.
GET
/api/projects/{projectId}/architecture-overlayPUT
/api/projects/{projectId}/architecture-overlay