REST & WebSocket API

CyberShield Developer API

Programmatic endpoints powering the CyberShield web analyzer and browser extensions.

GET /api/health

Telemetry

Returns readiness status for toxicity classification, OCR, visual forensics, and claim verification engines.

{ "status": "operational", "version": "2.0.0", "services": { "hate_speech_model": true, "scam_detection": true, "ocr_tesseract": true, "url_threat_intelligence": true } }

POST /api/studio/text

Message Analysis

Analyzes up to 12,000 characters for hate speech, offensive language, scam heuristics, and embedded URLs.

POST /api/studio/text Content-Type: application/json {"text": "Message content to inspect"}

POST /api/claim/verify

Claim Verification

Extracts the central factual claim, entities, and dates, retrieves evidence, and returns structured verdict and source links.

POST /api/claim/verify Content-Type: application/json {"text": "Statement to evaluate"}

POST /api/studio/image

Image Intelligence

Multipart upload (image) returning separated OCR extracted text, scam risk indicators, and visual forensics.

POST /api/studio/image Content-Type: multipart/form-data field: image=<file>

POST /api/threat/url

Threat Intelligence

Inspects domains for brand spoofing, disposable TLDs, raw IP hosts, shorteners, and live PhishTank feed hits.

POST /api/threat/url Content-Type: application/json {"url": "https://example.com"}

POST /api/analyze & Socket.IO

Extension Core

Authenticated text classification endpoint (Authorization: Bearer <key>) and real-time analyze_text Socket.IO event.

POST /api/analyze Authorization: Bearer <API_KEY> {"text": "Live chat message"}