{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/modiqo/json-schema/modiqo-sales-lead-request-schema.json",
  "title": "SalesLeadRequest",
  "x-generated": "2026-10-30",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/modiqo-openapi.json#/components/schemas/SalesLeadRequest",
  "type": "object",
  "additionalProperties": false,
  "required": [
    "work_email",
    "plan",
    "billing",
    "team_size",
    "organization_count"
  ],
  "anyOf": [
    {
      "required": [
        "name"
      ]
    },
    {
      "required": [
        "first_name",
        "last_name"
      ]
    }
  ],
  "properties": {
    "name": {
      "type": "string",
      "minLength": 1,
      "maxLength": 160,
      "description": "The sender’s full name. Replaces separate first and last names."
    },
    "first_name": {
      "type": "string",
      "minLength": 1,
      "maxLength": 80,
      "description": "The sender's first name."
    },
    "last_name": {
      "type": "string",
      "minLength": 1,
      "maxLength": 80,
      "description": "The sender's last name."
    },
    "work_email": {
      "type": "string",
      "format": "email",
      "maxLength": 254,
      "description": "The sender's work email address."
    },
    "company_website": {
      "type": "string",
      "format": "uri",
      "maxLength": 300,
      "description": "The sender's company website."
    },
    "plan": {
      "type": "string",
      "enum": [
        "community",
        "team",
        "growth",
        "business",
        "enterprise"
      ],
      "description": "The plan under review."
    },
    "billing": {
      "type": "string",
      "enum": [
        "free",
        "monthly",
        "annual",
        "custom"
      ],
      "description": "The preferred billing period."
    },
    "team_size": {
      "type": "integer",
      "minimum": 1,
      "maximum": 100000,
      "description": "The number of people per organization."
    },
    "organization_count": {
      "type": "integer",
      "minimum": 1,
      "maximum": 1000,
      "description": "The number of rote organizations required."
    },
    "need": {
      "type": "string",
      "enum": [
        "start-free",
        "verified-collaboration",
        "sso-governance",
        "advanced-control",
        "enterprise-boundary"
      ],
      "description": "The main capability the sender needs."
    },
    "stage": {
      "type": "string",
      "enum": [
        "evaluating",
        "piloting",
        "production",
        "scaling"
      ],
      "description": "The sender's current adoption stage."
    },
    "details": {
      "type": "string",
      "maxLength": 3000,
      "description": "An optional note about what to cover on the call."
    },
    "source_url": {
      "type": "string",
      "format": "uri",
      "maxLength": 500,
      "description": "The Modiqo page that opened the inquiry form."
    },
    "company_fax": {
      "type": "string",
      "maxLength": 200,
      "description": "A honeypot field. Human and agent clients must omit it or send an empty string."
    }
  }
}