API Documentation

POST /api/v1/analyze/

Submit an email for analysis.

{
  "raw_email": "From: sender@example.com\nTo: ...\n\nBody...",
  "submission_type": "paste_raw"
}

Response: {"analysis_id": "uuid", "status": "created"}

GET /api/v1/analyze/{id}/

Get full analysis results.

GET /api/v1/analyze/{id}/status/

Lightweight progress check. Returns: sources_completed, sources_total, is_complete, risk_score, verdict.

GET /api/v1/analyze/{id}/export/?format=json|csv

Export analysis report.

GET /api/v1/stats/

Platform statistics.

GET /api/v1/history/?limit=20

Latest completed analyses.

POST /api/v1/reports/

Submit a community report about a scam email sender.

WebSocket: ws://.../ws/analysis/{id}/

Real-time progress updates during analysis.