{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/1clickwebsite-ai/json-schema/1clickwebsite-ai-lead-gen-batch-create-request-schema.json",
  "title": "LeadGenBatchCreateRequest",
  "x-generated": "2026-10-31",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/1clickwebsite-ai-openapi.json#/components/schemas/LeadGenBatchCreateRequest",
  "type": "object",
  "required": [
    "rows"
  ],
  "properties": {
    "industry": {
      "type": "string",
      "default": "Home Services"
    },
    "rows": {
      "type": "array",
      "minItems": 1,
      "maxItems": 500,
      "items": {
        "$ref": "#/$defs/LeadGenRow"
      }
    },
    "templateKey": {
      "type": "string",
      "default": "lightning",
      "description": "Template key returned by `GET /api/lead-gen/templates`."
    },
    "template_key": {
      "type": "string",
      "deprecated": true,
      "description": "Snake-case alias of `templateKey`."
    },
    "primaryColor": {
      "type": "string",
      "pattern": "^#[0-9A-Fa-f]{6}$"
    },
    "primary_color": {
      "type": "string",
      "pattern": "^#[0-9A-Fa-f]{6}$"
    },
    "backgroundTheme": {
      "type": "string",
      "enum": [
        "light",
        "dark"
      ]
    },
    "background_theme": {
      "type": "string",
      "enum": [
        "light",
        "dark"
      ]
    },
    "contactMode": {
      "type": "string",
      "enum": [
        "form",
        "scheduler",
        "schedule",
        "booking",
        "survey"
      ]
    },
    "contact_mode": {
      "type": "string",
      "enum": [
        "form",
        "scheduler",
        "schedule",
        "booking",
        "survey"
      ]
    },
    "logoSizePx": {
      "type": "integer",
      "minimum": 48,
      "maximum": 160,
      "default": 88
    },
    "logo_size_px": {
      "type": "integer",
      "minimum": 48,
      "maximum": 160
    }
  },
  "$defs": {
    "LeadGenRow": {
      "type": "object",
      "properties": {
        "businessName": {
          "type": "string"
        },
        "business_name": {
          "type": "string",
          "deprecated": true
        },
        "phone": {
          "type": "string"
        },
        "email": {
          "type": "string"
        },
        "address": {
          "type": "string"
        },
        "industry": {
          "type": "string"
        },
        "logoUrl": {
          "type": "string",
          "format": "uri"
        },
        "logo_url": {
          "type": "string",
          "format": "uri"
        },
        "primaryColor": {
          "type": "string",
          "pattern": "^#[0-9A-Fa-f]{6}$"
        },
        "primary_color": {
          "type": "string",
          "pattern": "^#[0-9A-Fa-f]{6}$"
        },
        "backgroundTheme": {
          "type": "string",
          "enum": [
            "light",
            "dark"
          ]
        },
        "background_theme": {
          "type": "string",
          "enum": [
            "light",
            "dark"
          ]
        },
        "contactMode": {
          "type": "string",
          "enum": [
            "form",
            "scheduler",
            "schedule",
            "booking",
            "survey"
          ]
        },
        "contact_mode": {
          "type": "string",
          "enum": [
            "form",
            "scheduler",
            "schedule",
            "booking",
            "survey"
          ]
        },
        "google_cid": {
          "type": "string",
          "deprecated": true
        },
        "google_place_id": {
          "type": "string",
          "deprecated": true
        }
      },
      "anyOf": [
        {
          "required": [
            "businessName"
          ]
        },
        {
          "required": [
            "business_name"
          ]
        },
        {
          "required": [
            "google_cid"
          ]
        },
        {
          "required": [
            "google_place_id"
          ]
        }
      ]
    }
  }
}