One endpoint to check risky inputs.
Send text, images, PDFs, documents, OCR output, or extracted content to POST /v1/scan. Mighty returns an allow, review, or block action before people, AI tools, OCR, or automation rely on the material.
JSON text, multipart file, or raw binary.
Mark the scan as input, output, or workflow-specific material.
Use action, risk score, signals, and scan_id in your app.
A test integration is one POST.
Put Mighty before the workflow step that reads customer material. Start with one file or text blob, then wire the returned action into your existing review path.
curl -X POST https://gateway.trymighty.ai/v1/scan \
-H "X-API-Key: $MIGHTY_API_KEY" \
-F "file=@claim-packet.pdf" \
-F "scan_phase=input" \
-F "mode=secure"Run against one real intake flow before changing downstream automation.
The response includes action, risk score, signals, scan_id, and detected content type when available.
Authentication
Send API keys with X-API-Key. Bearer tokens using the mc_ key format are also accepted by the gateway.
https://gateway.trymighty.aiJSON text scan
Use this when the workflow already has text or OCR output.
curl -X POST https://gateway.trymighty.ai/v1/scan \
-H "X-API-Key: $MIGHTY_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"content": "Text or OCR output to inspect",
"content_type": "text",
"scan_phase": "input",
"mode": "secure",
"profile": "balanced"
}'Multipart file scan
Use this for PDFs, images, and office documents from intake.
curl -X POST https://gateway.trymighty.ai/v1/scan \
-H "X-API-Key: $MIGHTY_API_KEY" \
-F "file=@claim-packet.pdf" \
-F "scan_phase=input" \
-F "content_type=pdf" \
-F "mode=secure"Raw binary scan
Use this when you stream an image or PDF body directly.
curl -X POST "https://gateway.trymighty.ai/v1/scan?content_type=image&scan_phase=input&mode=secure" \
-H "X-API-Key: $MIGHTY_API_KEY" \
-H "Content-Type: image/jpeg" \
--data-binary "@damage-photo.jpg"Request fields
JSON, multipart form data, and raw binary uploads all route through the same scan endpoint. Raw binary scans pass options as query parameters.
Response fields
Responses vary by content type, mode, and whether the scan is synchronous or asynchronous.