---
title: "Run AI risk analysis on a project (PRO+ - aiAdvanced)"
method: POST
path: "/ai/risks/analyze"
tags: ["ai"]
---

# Run AI risk analysis on a project (PRO+ - aiAdvanced)

`POST /ai/risks/analyze`

## Request

- Base URL: `https://api.onplana.com/api`
- URL: `https://api.onplana.com/api/ai/risks/analyze`
- Auth: one of:
  - HTTP bearer
  - API key in header `Authorization`

Analyses schedule, resource, budget, and scope risks. Results are persisted and retrievable via GET /ai/risks.

## Headers

- `X-Organization-Id` string, required

## Request body

- object
  - `projectId` string, uuid, required

## Response `200`

Array of detected risks with severity and category

## Other responses

- `400`: Validation error
- `401`: Unauthorized - missing or invalid JWT
- `402`: Plan gate - feature not available on current plan

---

[API](https://skmtc.dev/onplana/apis/onplana-api.md) · [All operations](https://skmtc.dev/onplana/apis/onplana-api/llms.txt) · [OpenAPI document](https://skmtc.dev/onplana/apis/onplana-api/revisions/c3d6c89e9dc8?raw)
