Base URL: http://localhost:9090
Authentication: Bearer token via Authorization: Bearer <token> header, or ?token=<token> query parameter. Tokens carry a role (Analyst default, Admin) used for role-protected endpoints.
Run the SGR pipeline on an email/SMS/voice/URL payload.
{ "email": "From: spoofed@evil.com\n\nClick https://phish.xyz" }Response: { "scan_id", "risk_score", "confidence", "decision", "actions", "graph_output" }
Upload .eml/.txt/.msg/.html files (multipart/form-data) for full pipeline analysis.
Batch URL/domain reputation analysis.
{ "urls": ["https://phish.xyz", "https://company.com"] }On-demand IP reputation check (VirusTotal, AbuseIPDB, AlienVault OTX).
{ "ips": ["8.8.8.8"] }On-demand SHA-256 file-hash reputation check.
{ "hashes": ["<sha256>"] }On-demand OWASP Top 10 pattern scan.
{ "url": "https://example.com/?q=<script>alert(1)</script>" }Redact PII from a payload before external processing.
{ "text": "Contact support@example.com on 555-123-4567" }Submit a customer phishing report for full analysis. Set "auto_remediate": true to run containment actions automatically.
{ "email": "...", "reporter": "customer@corp.com", "auto_remediate": true }List phishing report history.
External event receiver (e.g. SIEM alert, phishing report, customer report). Event type defaults to phishing_report unless event/type is provided. Signatures verified with X-APCS-Signature (HMAC-SHA256) when APCS_WEBHOOK_SECRET is configured.
Retrieve current Rego policy. Admin role required.
Update Rego policy (hot-reload). Admin role required.
{ "policy": "package main\n..." }View vault-stored integration config. Admin role required.
Save integration secrets (VirusTotal, AbuseIPDB, OTX, Defender, Cisco ESA). Admin role required.
List scan IDs with stored traces.
Get full forensic trace for a scan.
Aggregate scan statistics.
Risk trend data.
Submit false-positive/quality feedback.
Validate a token.
{ "token": "<token>" }Generate a new API token. Admin role required.
{ "label": "ci-admin" }List token metadata (truncated).
Execute a SOAR playbook action (block, quarantine, MFA reset).
Download CSV export of scan history.
Download summary report.
Liveness probe — version, uptime, scans processed.
Prometheus-compatible counters.
List preset threat scenarios.
Server-Sent Events stream for live graph updates.
Generate synthetic adversarial payloads.