{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/sectora-io/json-schema/sectora-io-create-scan-request-schema.json",
  "title": "CreateScanRequest",
  "description": "Request body for creating a new scan.",
  "x-generated": "2026-11-24",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/sectora-io-openapi.yml#/components/schemas/CreateScanRequest",
  "type": "object",
  "required": [
    "target"
  ],
  "properties": {
    "target": {
      "type": "string",
      "description": "URL to scan. Must be a valid, accessible URL."
    },
    "scan_type": {
      "type": "string",
      "enum": [
        "dast",
        "api"
      ],
      "default": "dast",
      "description": "Type of scan to perform."
    },
    "options": {
      "type": "object",
      "description": "Optional scan configuration.",
      "properties": {
        "max_depth": {
          "type": "integer",
          "default": 3,
          "minimum": 1,
          "maximum": 10,
          "description": "Maximum crawl depth for the scanner."
        },
        "timeout": {
          "type": "integer",
          "default": 300,
          "minimum": 60,
          "maximum": 3600,
          "description": "Scan timeout in seconds."
        },
        "include_ssl": {
          "type": "boolean",
          "default": true,
          "description": "Include SSL/TLS certificate analysis."
        },
        "include_headers": {
          "type": "boolean",
          "default": true,
          "description": "Include HTTP security header analysis."
        }
      }
    },
    "project_id": {
      "type": "string",
      "format": "uuid",
      "description": "Optional project to assign the scan to."
    }
  }
}