Browse docs

Integration Guides

Choose the Mighty integration guide for text, OCR, uploads, images, model output, async scans, and errors.

This section is for product surfaces.

Start here when you know what your app is handling, but you are not sure where Mighty should sit.

Choose The Guide

You haveStart withWhat it helps you do
Text, images, PDFs, documents, OCR output, or model outputMultimodal SupportPick content_type, scan_phase, focus, and data_sensitivity.
Chat text, OCR text, extracted fields, or form fieldsScan Text And OCR OutputScan text before it becomes model context or workflow data.
Browser or API file uploadsScan File UploadsScan files before storage, OCR, extraction, or automation.
Damage photos or visual evidenceDamage Photo AI Fraud ReviewRoute suspicious image evidence without claiming fraud proof.
Assistant answers, AI summaries, or agent outputScan Model OutputScan generated output before users or tools act on it.
High-value PDFs or images that need deeper reviewAsync Deep ScansSubmit async scans, poll, or handle webhooks.
Billing, payload, rate limit, or request errorsError HandlingHandle 400, 402, 409, 413, 429, and async states.

The Integration Rule

Put Mighty before the first trust boundary.

untrusted material -> POST /v1/scan -> route result -> trusted next step

Examples:

  • Upload before storage.
  • PDF before OCR.
  • OCR text before workflow fields.
  • Prompt before model call.
  • Model output before user display.
  • Tool output before agent context.

What To Store

For every integration, store:

FieldWhy
scan_idLink to the exact scan result.
request_idDebug retries and request logs.
scan_group_idConnect original input, OCR, extracted text, model output, and review for one item.
session_idConnect the wider chat, claim, case, batch, or agent run.
action and risk_scoreExplain why the workflow continued, reviewed, or stopped.
Next step

Ready to scan real traffic?

Create an API key, keep it on your server, then wire Mighty into the workflow that handles untrusted material.

AI-Agent Prompt

AI-ready prompt
Choose a Mighty integration guide

Paste this into Cursor, Codex, Claude Code, or Windsurf.

Choose the correct Mighty integration guide for this product.

For each product surface:
- Identify the untrusted material.
- Pick the guide: multimodal, text and OCR, file uploads, image evidence, model output, async scans, or errors.
- Place POST /v1/scan before the first trust boundary.
- Use scan_phase=input for submitted material.
- Use scan_phase=output for generated, extracted, or agent-created material.
- Store scan_id, request_id, scan_group_id, session_id, action, and risk_score.
- Route ALLOW, WARN, BLOCK, indeterminate, pending, and failed.

Acceptance criteria:
- Every guide choice maps to a real code path.
- API key stays server-side.
- Tests cover the route for the selected guide.