v1
latestOpenAPI 3.0.02026-07-13211133.5 KBPublic Scan
Security Assistant
This API forwards the incoming question and vulnerability context to an external AI model assistant and streams back the AI's response in real-time (text/event-stream).
post/api/v2/ai/assistant
Query parameters
orgstring required
Organization ID
Request body
Example request
{
"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",
"prompt": "How to fix this?",
"status": "UNVERIFIED",
"Reason": "SQL Injection in the code",
"Remedation": "User parameters in the Query string"
}Response
Successful classification result from the AI model in streaming format.
string required