API Reference¶
The web backend exposes a REST API under /api.
Health¶
Returns {"status": "ok"}.
Phases¶
Returns all 52 phases as JSON array.
Scans¶
Create scan¶
POST /api/scans
Content-Type: application/json
{
"target": "target.com",
"phases": ["1", "2", "5"],
"quick": false,
"stealth": false,
"internal": false,
"timeout": 8.0,
"workers": 32,
"token": null,
"bing_key": null,
"user_hint": null
}
Returns {"run_id": "..."} immediately.
List scans¶
Get scan¶
SSE events¶
Server-Sent Events stream with phase_start, phase_end, finding, scan_complete, scan_error.
Get findings¶
Get chain¶
Get report HTML¶
Get executive summary¶
Get artifact¶
Names: findings.json, issues.json, leads.json, chain.json, attack_paths.md, etc.
Re-run scan¶
Returns {"run_id": "..."} for the new scan.