{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/startekenterprises-com/json-schema/startekenterprises-com-scan-request-schema.json",
  "title": "ScanRequest",
  "x-generated": "2026-11-26",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/startekenterprises-com-openapi.yaml#/components/schemas/ScanRequest",
  "type": "object",
  "required": [
    "content"
  ],
  "properties": {
    "content": {
      "type": "string",
      "description": "The text to scan (max 200k chars)"
    },
    "content_type": {
      "type": "string",
      "enum": [
        "text",
        "prompt",
        "tool_output",
        "email",
        "webpage"
      ],
      "default": "text"
    },
    "mode": {
      "type": "string",
      "enum": [
        "detect",
        "enforce"
      ],
      "default": "detect",
      "description": "detect reports only; enforce adds an action field (block/review/allow)"
    },
    "offsets": {
      "type": "boolean",
      "default": false,
      "description": "include character offsets (positions only, never matched text) in findings"
    },
    "sensitivity": {
      "type": "string",
      "enum": [
        "low",
        "medium",
        "high"
      ],
      "description": "per-request sensitivity override; default comes from the API key (POST /v1/sensitivity)"
    },
    "nonce": {
      "type": "string",
      "maxLength": 128,
      "description": "Optional operator challenge (e.g. a UUID). Signed into the receipt for replay protection — the operator checks it matches to confirm the receipt answers their challenge."
    }
  }
}