---
title: "Vulnerability Review"
method: POST
path: "/api/v2/ai/review"
tags: ["Public Scan"]
---

# Vulnerability Review

`POST /api/v2/ai/review`

Sends vulnerability details and source code to the AI service, which analyzes
the data and returns a classification with a confidence score.

## Query parameters

- `org` string, required

## Request body

- object
  - `code` string — A code snippet representing the vulnerable logic or affected lines.
  - `cwe_id` string — CWE identifier, if applicable.
  - `cwe_name` string — Optional name or title of the CWE.
  - `line` string — Line number(s) where the issue appears.
  - `file` string — Name or path of the file containing the snippet.

## Response `200`

Successful classification result from the AI model.

- object
  - `class` 'TRUE_POSITIVE' | 'FALSE_POSITIVE' | 'UNVERIFIED' — The AI-determined classification of the vulnerability.
  - `confidence` number, float — Confidence percentage (0–100) of the classification.

## Other responses

- `400` — Invalid request format
- `500` — Internal server error or AI model not configured
- `502` — Failed to reach external AI model

---

[API](https://skmtc.net/aquilax-ai/apis/aquilax-ai-api-docs.md) · [All operations](https://skmtc.net/aquilax-ai/apis/aquilax-ai-api-docs/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/aquilax-ai/aquilax-ai-api-docs/versions/9b4f595ad674/schema)
