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

# Vulnerability Review

`POST /api/v2/ai/review`

## Request

- Base URL: `https://aquilax.ai`
- URL: `https://aquilax.ai/api/v2/ai/review`
- Auth: API key in header `X-AX-KEY`
- TypeScript: <https://skmtc.dev/aquilax-ai/apis/aquilax-ai-api-docs/docs/api/v2/ai/review/post.ts> (a function with typed inputs; its response is checked against the schema)

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

## Changes

- **2025-04-22** `938a76dc8571`: 1 info
  - endpoint added
- **2025-03-09** `8e1891ab4552`: 1 breaking
  - api path removed without deprecation

[Operation history](https://skmtc.dev/aquilax-ai/apis/aquilax-ai-api-docs/changes/api/v2/ai/review/post.md)

---

[API](https://skmtc.dev/aquilax-ai/apis/aquilax-ai-api-docs.md) - [All operations](https://skmtc.dev/aquilax-ai/apis/aquilax-ai-api-docs/llms.txt) - [OpenAPI document](https://skmtc.dev/aquilax-ai/apis/aquilax-ai-api-docs/revisions/9b4f595ad674?raw)
