{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "title": "Lead",
  "type": "object",
  "properties": {
    "id": {
      "type": "integer",
      "description": "Unique identifier for the lead."
    },
    "email": {
      "type": "string",
      "description": "Email address of the lead."
    },
    "first_name": {
      "type": "['string', 'null']",
      "description": "First name of the lead."
    },
    "last_name": {
      "type": "['string', 'null']",
      "description": "Last name of the lead."
    },
    "position": {
      "type": "['string', 'null']",
      "description": "Job position or title."
    },
    "company": {
      "type": "['string', 'null']",
      "description": "Company name."
    },
    "company_industry": {
      "type": "['string', 'null']",
      "description": "Industry of the company."
    },
    "company_size": {
      "type": "['string', 'null']",
      "description": "Size range of the company."
    },
    "confidence_score": {
      "type": "['integer', 'null']",
      "description": "Confidence score for the lead email."
    },
    "website": {
      "type": "['string', 'null']",
      "description": "Website URL associated with the lead."
    },
    "country_code": {
      "type": "['string', 'null']",
      "description": "ISO 3166-1 alpha-2 country code."
    },
    "linkedin_url": {
      "type": "['string', 'null']",
      "description": "LinkedIn profile URL."
    },
    "phone_number": {
      "type": "['string', 'null']",
      "description": "Phone number."
    },
    "twitter": {
      "type": "['string', 'null']",
      "description": "Twitter handle."
    },
    "notes": {
      "type": "['string', 'null']",
      "description": "Free-text notes about the lead."
    },
    "leads_list_id": {
      "type": "['integer', 'null']",
      "description": "Identifier of the leads list the lead belongs to."
    },
    "sync_status": {
      "type": "['string', 'null']",
      "description": "CRM synchronization status."
    },
    "sending_status": {
      "type": "['string', 'null']",
      "description": "Email sending status."
    },
    "last_activity_at": {
      "type": "['string', 'null']",
      "description": "Timestamp of the last activity for this lead."
    },
    "last_contacted_at": {
      "type": "['string', 'null']",
      "description": "Timestamp of the last contact with this lead."
    },
    "created_at": {
      "type": "string",
      "description": "Timestamp when the lead was created."
    }
  }
}