{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/leadfuze/json-schema/leadfuze-criteria-schema.json",
  "title": "Criteria",
  "description": "Who to find. Fields are combined with AND; values inside one include list with OR; any exclude removes a person.",
  "x-generated": "2026-11-16",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/leadfuze-openapi.json#/components/schemas/Criteria",
  "type": "object",
  "additionalProperties": false,
  "properties": {
    "query": {
      "type": "string",
      "maxLength": 500,
      "default": "",
      "description": "Free text across name, job title, company name, industry, city and state. A complete email, phone, domain or LinkedIn URL runs an exact lookup."
    },
    "lookup_type": {
      "type": [
        "string",
        "null"
      ],
      "enum": [
        "email",
        "phone",
        "domain",
        "linkedin",
        "id",
        null
      ],
      "description": "Force an exact lookup of query. email checks all five email columns; phone all four phone columns; id uses up_id."
    },
    "job_titles": {
      "$ref": "#/$defs/JobTitles"
    },
    "filters": {
      "type": "object",
      "additionalProperties": false,
      "properties": {
        "state": {
          "$ref": "#/$defs/FieldCondition",
          "description": "Professional state, otherwise company state; uppercase code."
        },
        "country": {
          "$ref": "#/$defs/FieldCondition",
          "description": "Company country, otherwise contact country; uppercase code."
        },
        "industry": {
          "$ref": "#/$defs/FieldCondition",
          "description": "Exact primary industry text, case insensitive."
        },
        "department": {
          "$ref": "#/$defs/FieldCondition",
          "description": "Exact department text, case insensitive."
        },
        "seniority": {
          "$ref": "#/$defs/FieldCondition",
          "description": "Exact seniority level text, case insensitive."
        },
        "company_domain": {
          "$ref": "#/$defs/FieldCondition",
          "description": "Exact company domain without www."
        },
        "company_size": {
          "$ref": "#/$defs/FieldCondition",
          "description": "Exact stored employee-count label; not a numeric range."
        },
        "first_name": {
          "$ref": "#/$defs/FieldCondition",
          "description": "Exact normalized value from this source column."
        },
        "has_first_name": {
          "$ref": "#/$defs/AvailabilityFilter",
          "description": "Whether first_name has a usable value."
        },
        "last_name": {
          "$ref": "#/$defs/FieldCondition",
          "description": "Exact normalized value from this source column."
        },
        "has_last_name": {
          "$ref": "#/$defs/AvailabilityFilter",
          "description": "Whether last_name has a usable value."
        },
        "business_email": {
          "$ref": "#/$defs/FieldCondition",
          "description": "Exact normalized value from this source column."
        },
        "has_business_email": {
          "$ref": "#/$defs/AvailabilityFilter",
          "description": "Whether business_email has a usable value."
        },
        "programmatic_business_emails": {
          "$ref": "#/$defs/FieldCondition",
          "description": "Exact normalized value from this source column."
        },
        "has_programmatic_business_emails": {
          "$ref": "#/$defs/AvailabilityFilter",
          "description": "Whether programmatic_business_emails has a usable value."
        },
        "mobile_phone": {
          "$ref": "#/$defs/FieldCondition",
          "description": "Exact normalized value from this source column."
        },
        "has_mobile_phone": {
          "$ref": "#/$defs/AvailabilityFilter",
          "description": "Whether mobile_phone has a usable value."
        },
        "direct_number": {
          "$ref": "#/$defs/FieldCondition",
          "description": "Exact normalized value from this source column."
        },
        "has_direct_number": {
          "$ref": "#/$defs/AvailabilityFilter",
          "description": "Whether direct_number has a usable value."
        },
        "personal_phone": {
          "$ref": "#/$defs/FieldCondition",
          "description": "Exact normalized value from this source column."
        },
        "has_personal_phone": {
          "$ref": "#/$defs/AvailabilityFilter",
          "description": "Whether personal_phone has a usable value."
        },
        "linkedin_url": {
          "$ref": "#/$defs/FieldCondition",
          "description": "Exact normalized value from this source column."
        },
        "has_linkedin_url": {
          "$ref": "#/$defs/AvailabilityFilter",
          "description": "Whether linkedin_url has a usable value."
        },
        "personal_address": {
          "$ref": "#/$defs/FieldCondition",
          "description": "Exact normalized value from this source column."
        },
        "has_personal_address": {
          "$ref": "#/$defs/AvailabilityFilter",
          "description": "Whether personal_address has a usable value."
        },
        "personal_address_2": {
          "$ref": "#/$defs/FieldCondition",
          "description": "Exact normalized value from this source column."
        },
        "has_personal_address_2": {
          "$ref": "#/$defs/AvailabilityFilter",
          "description": "Whether personal_address_2 has a usable value."
        },
        "personal_city": {
          "$ref": "#/$defs/FieldCondition",
          "description": "Exact normalized value from this source column."
        },
        "has_personal_city": {
          "$ref": "#/$defs/AvailabilityFilter",
          "description": "Whether personal_city has a usable value."
        },
        "personal_state": {
          "$ref": "#/$defs/FieldCondition",
          "description": "Exact normalized value from this source column."
        },
        "has_personal_state": {
          "$ref": "#/$defs/AvailabilityFilter",
          "description": "Whether personal_state has a usable value."
        },
        "personal_zip": {
          "$ref": "#/$defs/FieldCondition",
          "description": "Exact normalized value from this source column."
        },
        "has_personal_zip": {
          "$ref": "#/$defs/AvailabilityFilter",
          "description": "Whether personal_zip has a usable value."
        },
        "personal_zip4": {
          "$ref": "#/$defs/FieldCondition",
          "description": "Exact normalized value from this source column."
        },
        "has_personal_zip4": {
          "$ref": "#/$defs/AvailabilityFilter",
          "description": "Whether personal_zip4 has a usable value."
        },
        "personal_emails": {
          "$ref": "#/$defs/FieldCondition",
          "description": "Exact normalized value from this source column."
        },
        "has_personal_emails": {
          "$ref": "#/$defs/AvailabilityFilter",
          "description": "Whether personal_emails has a usable value."
        },
        "additional_personal_emails": {
          "$ref": "#/$defs/FieldCondition",
          "description": "Exact normalized value from this source column."
        },
        "has_additional_personal_emails": {
          "$ref": "#/$defs/AvailabilityFilter",
          "description": "Whether additional_personal_emails has a usable value."
        },
        "gender": {
          "$ref": "#/$defs/FieldCondition",
          "description": "Exact normalized value from this source column."
        },
        "has_gender": {
          "$ref": "#/$defs/AvailabilityFilter",
          "description": "Whether gender has a usable value."
        },
        "age_range": {
          "$ref": "#/$defs/FieldCondition",
          "description": "Exact normalized value from this source column."
        },
        "has_age_range": {
          "$ref": "#/$defs/AvailabilityFilter",
          "description": "Whether age_range has a usable value."
        },
        "income_range": {
          "$ref": "#/$defs/FieldCondition",
          "description": "Exact normalized value from this source column."
        },
        "has_income_range": {
          "$ref": "#/$defs/AvailabilityFilter",
          "description": "Whether income_range has a usable value."
        },
        "net_worth": {
          "$ref": "#/$defs/FieldCondition",
          "description": "Exact normalized value from this source column."
        },
        "has_net_worth": {
          "$ref": "#/$defs/AvailabilityFilter",
          "description": "Whether net_worth has a usable value."
        },
        "married": {
          "$ref": "#/$defs/FieldCondition",
          "description": "Exact normalized value from this source column."
        },
        "has_married": {
          "$ref": "#/$defs/AvailabilityFilter",
          "description": "Whether married has a usable value."
        },
        "children": {
          "$ref": "#/$defs/FieldCondition",
          "description": "Exact normalized value from this source column."
        },
        "has_children": {
          "$ref": "#/$defs/AvailabilityFilter",
          "description": "Whether children has a usable value."
        },
        "homeowner": {
          "$ref": "#/$defs/FieldCondition",
          "description": "Exact normalized value from this source column."
        },
        "has_homeowner": {
          "$ref": "#/$defs/AvailabilityFilter",
          "description": "Whether homeowner has a usable value."
        },
        "dob": {
          "$ref": "#/$defs/FieldCondition",
          "description": "Exact normalized value from this source column."
        },
        "has_dob": {
          "$ref": "#/$defs/AvailabilityFilter",
          "description": "Whether dob has a usable value."
        },
        "job_title": {
          "$ref": "#/$defs/FieldCondition",
          "description": "Exact normalized value from this source column. Supports phrase matching."
        },
        "has_job_title": {
          "$ref": "#/$defs/AvailabilityFilter",
          "description": "Whether job_title has a usable value."
        },
        "seniority_level": {
          "$ref": "#/$defs/FieldCondition",
          "description": "Exact normalized value from this source column."
        },
        "has_seniority_level": {
          "$ref": "#/$defs/AvailabilityFilter",
          "description": "Whether seniority_level has a usable value."
        },
        "has_department": {
          "$ref": "#/$defs/AvailabilityFilter",
          "description": "Whether department has a usable value."
        },
        "professional_address": {
          "$ref": "#/$defs/FieldCondition",
          "description": "Exact normalized value from this source column."
        },
        "has_professional_address": {
          "$ref": "#/$defs/AvailabilityFilter",
          "description": "Whether professional_address has a usable value."
        },
        "professional_address_2": {
          "$ref": "#/$defs/FieldCondition",
          "description": "Exact normalized value from this source column."
        },
        "has_professional_address_2": {
          "$ref": "#/$defs/AvailabilityFilter",
          "description": "Whether professional_address_2 has a usable value."
        },
        "professional_city": {
          "$ref": "#/$defs/FieldCondition",
          "description": "Exact normalized value from this source column."
        },
        "has_professional_city": {
          "$ref": "#/$defs/AvailabilityFilter",
          "description": "Whether professional_city has a usable value."
        },
        "professional_state": {
          "$ref": "#/$defs/FieldCondition",
          "description": "Exact normalized value from this source column."
        },
        "has_professional_state": {
          "$ref": "#/$defs/AvailabilityFilter",
          "description": "Whether professional_state has a usable value."
        },
        "professional_zip": {
          "$ref": "#/$defs/FieldCondition",
          "description": "Exact normalized value from this source column."
        },
        "has_professional_zip": {
          "$ref": "#/$defs/AvailabilityFilter",
          "description": "Whether professional_zip has a usable value."
        },
        "professional_zip4": {
          "$ref": "#/$defs/FieldCondition",
          "description": "Exact normalized value from this source column."
        },
        "has_professional_zip4": {
          "$ref": "#/$defs/AvailabilityFilter",
          "description": "Whether professional_zip4 has a usable value."
        },
        "company_name": {
          "$ref": "#/$defs/FieldCondition",
          "description": "Exact normalized value from this source column. Supports phrase matching."
        },
        "has_company_name": {
          "$ref": "#/$defs/AvailabilityFilter",
          "description": "Whether company_name has a usable value."
        },
        "has_company_domain": {
          "$ref": "#/$defs/AvailabilityFilter",
          "description": "Whether company_domain has a usable value."
        },
        "company_phone": {
          "$ref": "#/$defs/FieldCondition",
          "description": "Exact normalized value from this source column."
        },
        "has_company_phone": {
          "$ref": "#/$defs/AvailabilityFilter",
          "description": "Whether company_phone has a usable value."
        },
        "company_sic": {
          "$ref": "#/$defs/FieldCondition",
          "description": "Exact normalized value from this source column."
        },
        "has_company_sic": {
          "$ref": "#/$defs/AvailabilityFilter",
          "description": "Whether company_sic has a usable value."
        },
        "company_address": {
          "$ref": "#/$defs/FieldCondition",
          "description": "Exact normalized value from this source column."
        },
        "has_company_address": {
          "$ref": "#/$defs/AvailabilityFilter",
          "description": "Whether company_address has a usable value."
        },
        "company_city": {
          "$ref": "#/$defs/FieldCondition",
          "description": "Exact normalized value from this source column."
        },
        "has_company_city": {
          "$ref": "#/$defs/AvailabilityFilter",
          "description": "Whether company_city has a usable value."
        },
        "company_state": {
          "$ref": "#/$defs/FieldCondition",
          "description": "Exact normalized value from this source column."
        },
        "has_company_state": {
          "$ref": "#/$defs/AvailabilityFilter",
          "description": "Whether company_state has a usable value."
        },
        "company_zip": {
          "$ref": "#/$defs/FieldCondition",
          "description": "Exact normalized value from this source column."
        },
        "has_company_zip": {
          "$ref": "#/$defs/AvailabilityFilter",
          "description": "Whether company_zip has a usable value."
        },
        "company_linkedin_url": {
          "$ref": "#/$defs/FieldCondition",
          "description": "Exact normalized value from this source column."
        },
        "has_company_linkedin_url": {
          "$ref": "#/$defs/AvailabilityFilter",
          "description": "Whether company_linkedin_url has a usable value."
        },
        "company_revenue": {
          "$ref": "#/$defs/FieldCondition",
          "description": "Exact normalized value from this source column."
        },
        "has_company_revenue": {
          "$ref": "#/$defs/AvailabilityFilter",
          "description": "Whether company_revenue has a usable value."
        },
        "company_employee_count": {
          "$ref": "#/$defs/FieldCondition",
          "description": "Exact normalized value from this source column."
        },
        "has_company_employee_count": {
          "$ref": "#/$defs/AvailabilityFilter",
          "description": "Whether company_employee_count has a usable value."
        },
        "primary_industry": {
          "$ref": "#/$defs/FieldCondition",
          "description": "Exact normalized value from this source column."
        },
        "has_primary_industry": {
          "$ref": "#/$defs/AvailabilityFilter",
          "description": "Whether primary_industry has a usable value."
        },
        "business_email_validation_status": {
          "$ref": "#/$defs/FieldCondition",
          "description": "Exact normalized value from this source column."
        },
        "has_business_email_validation_status": {
          "$ref": "#/$defs/AvailabilityFilter",
          "description": "Whether business_email_validation_status has a usable value."
        },
        "personal_emails_validation_status": {
          "$ref": "#/$defs/FieldCondition",
          "description": "Exact normalized value from this source column."
        },
        "has_personal_emails_validation_status": {
          "$ref": "#/$defs/AvailabilityFilter",
          "description": "Whether personal_emails_validation_status has a usable value."
        },
        "work_history": {
          "$ref": "#/$defs/FieldCondition",
          "description": "Phrase search in this source field. Supports phrase matching."
        },
        "has_work_history": {
          "$ref": "#/$defs/AvailabilityFilter",
          "description": "Whether work_history has a usable value."
        },
        "education_history": {
          "$ref": "#/$defs/FieldCondition",
          "description": "Phrase search in this source field. Supports phrase matching."
        },
        "has_education_history": {
          "$ref": "#/$defs/AvailabilityFilter",
          "description": "Whether education_history has a usable value."
        },
        "company_description": {
          "$ref": "#/$defs/FieldCondition",
          "description": "Phrase search in this source field. Supports phrase matching."
        },
        "has_company_description": {
          "$ref": "#/$defs/AvailabilityFilter",
          "description": "Whether company_description has a usable value."
        },
        "related_domains": {
          "$ref": "#/$defs/FieldCondition",
          "description": "Exact normalized value from this source column."
        },
        "has_related_domains": {
          "$ref": "#/$defs/AvailabilityFilter",
          "description": "Whether related_domains has a usable value."
        },
        "social_connections": {
          "$ref": "#/$defs/FieldCondition",
          "description": "Phrase search in this source field. Supports phrase matching."
        },
        "has_social_connections": {
          "$ref": "#/$defs/AvailabilityFilter",
          "description": "Whether social_connections has a usable value."
        },
        "dpv_code": {
          "$ref": "#/$defs/FieldCondition",
          "description": "Exact normalized value from this source column."
        },
        "has_dpv_code": {
          "$ref": "#/$defs/AvailabilityFilter",
          "description": "Whether dpv_code has a usable value."
        },
        "company_naics": {
          "$ref": "#/$defs/FieldCondition",
          "description": "Exact normalized value from this source column."
        },
        "has_company_naics": {
          "$ref": "#/$defs/AvailabilityFilter",
          "description": "Whether company_naics has a usable value."
        },
        "company_country": {
          "$ref": "#/$defs/FieldCondition",
          "description": "Exact normalized value from this source column."
        },
        "has_company_country": {
          "$ref": "#/$defs/AvailabilityFilter",
          "description": "Whether company_country has a usable value."
        },
        "contact_country": {
          "$ref": "#/$defs/FieldCondition",
          "description": "Exact normalized value from this source column."
        },
        "has_contact_country": {
          "$ref": "#/$defs/AvailabilityFilter",
          "description": "Whether contact_country has a usable value."
        },
        "job_title_normalized": {
          "$ref": "#/$defs/FieldCondition",
          "description": "Exact normalized value from this source column."
        },
        "has_job_title_normalized": {
          "$ref": "#/$defs/AvailabilityFilter",
          "description": "Whether job_title_normalized has a usable value."
        },
        "seniority_level_2": {
          "$ref": "#/$defs/FieldCondition",
          "description": "Exact normalized value from this source column."
        },
        "has_seniority_level_2": {
          "$ref": "#/$defs/AvailabilityFilter",
          "description": "Whether seniority_level_2 has a usable value."
        },
        "department_2": {
          "$ref": "#/$defs/FieldCondition",
          "description": "Exact normalized value from this source column."
        },
        "has_department_2": {
          "$ref": "#/$defs/AvailabilityFilter",
          "description": "Whether department_2 has a usable value."
        },
        "historical_programmatic_emails": {
          "$ref": "#/$defs/FieldCondition",
          "description": "Exact normalized value from this source column."
        },
        "has_historical_programmatic_emails": {
          "$ref": "#/$defs/AvailabilityFilter",
          "description": "Whether historical_programmatic_emails has a usable value."
        },
        "has_personal_email": {
          "$ref": "#/$defs/AvailabilityFilter",
          "description": "Whether any personal_email source field has a usable value."
        },
        "has_any_email": {
          "$ref": "#/$defs/AvailabilityFilter",
          "description": "Whether any any_email source field has a usable value."
        },
        "has_any_phone": {
          "$ref": "#/$defs/AvailabilityFilter",
          "description": "Whether any any_phone source field has a usable value."
        },
        "up_id": {
          "$ref": "#/$defs/FieldCondition",
          "description": "Exact profile or company id."
        },
        "cc_id": {
          "$ref": "#/$defs/FieldCondition",
          "description": "Exact profile or company id."
        }
      },
      "description": "Keyed by catalog field. At most 200 include and exclude values across all filters."
    },
    "limit": {
      "type": "integer",
      "minimum": 1,
      "maximum": 50,
      "default": 25,
      "description": "Results per page."
    }
  },
  "$defs": {
    "AvailabilityFilter": {
      "type": "object",
      "additionalProperties": false,
      "required": [
        "value"
      ],
      "properties": {
        "value": {
          "type": "boolean"
        }
      },
      "description": "true keeps people with the field on file; false keeps people without it."
    },
    "FieldCondition": {
      "type": "object",
      "additionalProperties": false,
      "properties": {
        "include": {
          "type": "array",
          "maxItems": 20,
          "items": {
            "type": "string",
            "minLength": 1,
            "maxLength": 500
          },
          "description": "Keep people whose value matches any of these."
        },
        "exclude": {
          "type": "array",
          "maxItems": 20,
          "items": {
            "type": "string",
            "minLength": 1,
            "maxLength": 500
          },
          "description": "Remove people whose value matches any of these. A person with no value passes an exclude-only rule."
        },
        "match": {
          "type": "string",
          "enum": [
            "exact",
            "phrase"
          ],
          "description": "exact compares the whole value, ignoring case. phrase finds whole words inside the text and works on job_title, company_name, work_history, education_history, company_description, social_connections. Default phrase for work_history, education_history, company_description, social_connections, exact for the rest."
        },
        "presence": {
          "type": "string",
          "enum": [
            "has",
            "missing"
          ],
          "description": "Only people with this field on file, or only people without it."
        }
      }
    },
    "JobTitles": {
      "type": "object",
      "additionalProperties": false,
      "properties": {
        "include": {
          "type": "array",
          "maxItems": 20,
          "items": {
            "type": "string",
            "maxLength": 200
          },
          "description": "Whole words or phrases matched inside job_title. Any one is enough."
        },
        "exclude": {
          "type": "array",
          "maxItems": 20,
          "items": {
            "type": "string",
            "maxLength": 200
          },
          "description": "Remove titles containing any of these. Overrides include."
        },
        "similar": {
          "type": "boolean",
          "default": true,
          "description": "Also match common variants: CEO and Chief Executive Officer, VP of X and Vice President of X, Founder and Co-Founder. At most 20 titles after expansion."
        }
      }
    }
  }
}