cURL
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 }
Sends vulnerability details and source code to the AI service, which analyzes the data and returns a classification with a confidence score.
Organization ID
Successful classification result from the AI model.
The response is of type object.
object