POST
/
api
/
v2
/
ai
/
review
curl --request POST \
  --url https://aquilax.ai/api/v2/ai/review \
  --header 'Content-Type: application/json' \
  --header 'X-AX-KEY: <api-key>' \
  --data '{
  "code": "try {\n  const user = db.getUserById(req.query.id);\n  res.send(user);\n} catch (err) {\n  res.status(500).send(\"Error\");\n}\n",
  "cwe_id": "CWE-79",
  "cwe_name": "Cross-Site Scripting",
  "line": "105",
  "file": "userController.js"
}'
{
  "class": "TRUE_POSITIVE",
  "confidence": 95.12
}

Authorizations

X-AX-KEY
string
header
required

Query Parameters

org
string
required

Organization ID

Body

application/json

Response

200
application/json
Successful classification result from the AI model.

The response is of type object.