{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/actuallycare-com/json-schema/actuallycare-com-lead-schema.json",
  "title": "Lead",
  "description": "Prospective client lead",
  "x-generated": "2026-10-31",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/_original/actuallycare-com-v1-openapi.json#/components/schemas/Lead",
  "type": "object",
  "required": [
    "name"
  ],
  "properties": {
    "id": {
      "type": "string",
      "format": "uuid"
    },
    "user_id": {
      "type": "string",
      "format": "uuid"
    },
    "name": {
      "type": "string"
    },
    "email": {
      "type": "string",
      "format": "email"
    },
    "phone": {
      "type": "string"
    },
    "source": {
      "type": "string",
      "description": "How lead was acquired"
    },
    "status": {
      "type": "string",
      "enum": [
        "new",
        "contacted",
        "qualified",
        "unqualified",
        "converted",
        "lost"
      ]
    },
    "lead_type": {
      "type": "string",
      "enum": [
        "buyer",
        "seller",
        "both"
      ]
    },
    "interest_level": {
      "type": "string",
      "enum": [
        "hot",
        "warm",
        "cold"
      ]
    },
    "budget": {
      "type": "number",
      "format": "double"
    },
    "timeline": {
      "type": "string",
      "description": "Expected timeline"
    },
    "message": {
      "type": "string",
      "description": "Initial inquiry message"
    },
    "notes": {
      "type": "string"
    },
    "last_contact_date": {
      "type": "string",
      "format": "date-time"
    },
    "next_follow_up": {
      "type": "string",
      "format": "date-time"
    },
    "converted_to_client_id": {
      "type": "string",
      "format": "uuid"
    },
    "version": {
      "type": "integer"
    },
    "created_at": {
      "type": "string",
      "format": "date-time"
    },
    "updated_at": {
      "type": "string",
      "format": "date-time"
    }
  }
}