{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/sectora-io/json-schema/sectora-io-create-secrets-scan-request-schema.json",
  "title": "CreateSecretsScanRequest",
  "description": "Request body for starting a secrets scan.",
  "x-generated": "2026-11-24",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/sectora-io-openapi.yml#/components/schemas/CreateSecretsScanRequest",
  "type": "object",
  "properties": {
    "target": {
      "type": "string",
      "description": "GitHub repository in `owner/repo` format (for `scan_type=github`)."
    },
    "scan_type": {
      "type": "string",
      "enum": [
        "github",
        "content"
      ],
      "description": "Scan source type:\n- `github`: Scan a GitHub repository\n- `content`: Scan provided text content directly\n"
    },
    "content": {
      "type": "string",
      "description": "Direct content to scan (required when `scan_type=content`)."
    }
  }
}