{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/hostfully/json-schema/hostfully-lead-api3-list-of-resources-response-lead-api-v3-1-dto-schema.json",
  "title": "LeadApi3ListOfResourcesResponseLeadApiV3_1Dto",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/hostfully-leads-api-openapi.yml#/components/schemas/LeadApi3ListOfResourcesResponseLeadApiV3_1Dto",
  "type": "object",
  "properties": {
    "leads": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/LeadApiV3_1Dto"
      }
    },
    "_metadata": {
      "$ref": "#/$defs/Api3ResponseMetadata"
    },
    "_paging": {
      "$ref": "#/$defs/Api3ResponsePaging"
    }
  },
  "$defs": {
    "Api3ResponseMetadata": {
      "type": "object",
      "properties": {
        "count": {
          "type": "integer",
          "format": "int32"
        },
        "totalCount": {
          "type": "integer",
          "format": "int32"
        }
      }
    },
    "Api3ResponsePaging": {
      "type": "object",
      "properties": {
        "_limit": {
          "type": "integer",
          "format": "int32"
        },
        "_nextCursor": {
          "type": "string"
        }
      }
    },
    "LeadApiV3AssigneeDto": {
      "type": "object",
      "properties": {
        "uid": {
          "type": "string"
        },
        "type": {
          "type": "string",
          "enum": [
            "EMPLOYEE",
            "OWNER",
            "AGENT"
          ]
        }
      }
    },
    "LeadApiV3_1Dto": {
      "type": "object",
      "properties": {
        "uid": {
          "type": "string"
        },
        "propertyUid": {
          "type": "string"
        },
        "agencyUid": {
          "type": "string"
        },
        "checkInZonedDateTime": {
          "type": "string",
          "description": "Check in datetime with the timezone offset",
          "format": "date-time"
        },
        "checkOutZonedDateTime": {
          "type": "string",
          "description": "Check out datetime with the timezone offset",
          "format": "date-time"
        },
        "checkInLocalDateTime": {
          "type": "string"
        },
        "checkOutLocalDateTime": {
          "type": "string"
        },
        "status": {
          "type": "string",
          "enum": [
            "BLOCKED",
            "NEW",
            "ON_HOLD",
            "CLOSED",
            "PENDING",
            "PENDING_APPROVED",
            "DECLINED",
            "BOOKED",
            "CANCELLED",
            "IGNORED",
            "DUPLICATE",
            "SAMPLE"
          ]
        },
        "type": {
          "type": "string",
          "enum": [
            "INQUIRY",
            "BOOKING_REQUEST",
            "BLOCK",
            "BOOKING"
          ]
        },
        "source": {
          "type": "string",
          "enum": [
            "HOSTFULLY_UI",
            "HOSTFULLY_DBS",
            "HOSTFULLY_API",
            "HOSTFULLY_LINKED",
            "HOSTFULLY_OWNER_PORTAL",
            "HOSTFULLY_ICAL",
            "DIRECT_HOMETOGO",
            "DIRECT_BOOKINGDOTCOM",
            "DIRECT_AIRBNB",
            "DIRECT_VRBO",
            "DIRECT_HVMI",
            "DIRECT_REDAWNING",
            "DIRECT_GOOGLE"
          ]
        },
        "channel": {
          "type": "string",
          "description": "Represents the list of known channels in Lead API V3. This enum may be extended with additional values in API versions.API Clients must gracefully handle unmapped or unexpected entries with fallback or defaulting strategy to ensure safe behavior",
          "enum": [
            "HOSTFULLY",
            "AIRBNB",
            "BOOKING_COM",
            "VRBO",
            "HVMB",
            "GOOGLE",
            "FIND_RENTALS",
            "FLATAWAY",
            "GOLIGHTLY",
            "HOMADS",
            "TRIP_ADVISOR",
            "VACAYMYMAY",
            "STAYMENTITY",
            "GETAWAYGOGO",
            "EVERYSTAY",
            "REDAWNING",
            "MISTERBNB",
            "WHIMSTAY",
            "KOPA",
            "OWNERDIRECT",
            "B0ARDING",
            "TRAVELSTAYTION",
            "BNBFINDER",
            "LODGELOVERS",
            "LAKE",
            "MINISTAYS",
            "TRAMONA",
            "NEXTPAX",
            "RENTALS_UNITED",
            "HOUFY",
            "VRASIO",
            "STAYNEARN",
            "BLUEGROUND",
            "ANYSTAY",
            "STAY",
            "CREWDOGS"
          ]
        },
        "bookedUtcDateTime": {
          "type": "string"
        },
        "externalBookingId": {
          "type": "string"
        },
        "notes": {
          "type": "string",
          "description": "Replaced with 'HIDDEN' if api caller has no access to see lead's personal and confidential information"
        },
        "extraNotes": {
          "type": "string",
          "description": "Replaced with 'HIDDEN' if api caller has no access to see lead's personal and confidential information"
        },
        "assignee": {
          "$ref": "#/$defs/LeadApiV3AssigneeDto"
        },
        "metadata": {
          "$ref": "#/$defs/LeadMetadataApiV3Dto"
        },
        "guestInformation": {
          "$ref": "#/$defs/LeadGuestInformationForCreationApiV3Dto"
        },
        "referrer": {
          "type": "string"
        },
        "unitUid": {
          "type": "string"
        }
      }
    },
    "LeadGuestInformationForCreationApiV3Dto": {
      "required": [
        "email"
      ],
      "type": "object",
      "properties": {
        "firstName": {
          "type": "string",
          "description": "Replaced with 'HIDDEN' if api caller has no access to see lead's personal and confidential information"
        },
        "lastName": {
          "type": "string",
          "description": "Replaced with 'HIDDEN' if api caller has no access to see lead's personal and confidential information"
        },
        "address1": {
          "type": "string",
          "description": "Replaced with 'HIDDEN' if api caller has no access to see lead's personal and confidential information"
        },
        "address2": {
          "type": "string",
          "description": "Replaced with 'HIDDEN' if api caller has no access to see lead's personal and confidential information"
        },
        "zipCode": {
          "type": "string",
          "description": "Replaced with 'HIDDEN' if api caller has no access to see lead's personal and confidential information"
        },
        "city": {
          "type": "string",
          "description": "Replaced with 'HIDDEN' if api caller has no access to see lead's personal and confidential information"
        },
        "state": {
          "type": "string",
          "description": "Replaced with 'HIDDEN' if api caller has no access to see lead's personal and confidential information"
        },
        "countryCode": {
          "type": "string",
          "description": "Replaced with null if api caller has no access to see lead's personal and confidential information",
          "enum": [
            "AF",
            "AL",
            "DZ",
            "AS",
            "AD",
            "AO",
            "AI",
            "AG",
            "AN",
            "AR",
            "AM",
            "AW",
            "AU",
            "AT",
            "AZ",
            "BS",
            "BH",
            "BD",
            "BB",
            "BY",
            "BE",
            "BZ",
            "BJ",
            "BM",
            "BT",
            "BO",
            "BA",
            "BW",
            "BR",
            "BN",
            "BG",
            "BF",
            "BI",
            "BQ",
            "KH",
            "CM",
            "CA",
            "CV",
            "KY",
            "CF",
            "TD",
            "CL",
            "CN",
            "CX",
            "CC",
            "CO",
            "KM",
            "YT",
            "CG",
            "CD",
            "CK",
            "CR",
            "CI",
            "HR",
            "CU",
            "CW",
            "CY",
            "CZ",
            "DK",
            "DJ",
            "DM",
            "DO",
            "EC",
            "EG",
            "SV",
            "GQ",
            "ER",
            "EE",
            "ET",
            "FJ",
            "FI",
            "FK",
            "FO",
            "FR",
            "GF",
            "GA",
            "GM",
            "GE",
            "DE",
            "GH",
            "GI",
            "GR",
            "GL",
            "GD",
            "GU",
            "GT",
            "GN",
            "GW",
            "GY",
            "GP",
            "HT",
            "VA",
            "HN",
            "HK",
            "HL",
            "HU",
            "IS",
            "IN",
            "ID",
            "IR",
            "IQ",
            "IE",
            "IL",
            "IT",
            "JM",
            "JP",
            "JO",
            "KZ",
            "KE",
            "KI",
            "KP",
            "KR",
            "KW",
            "KG",
            "LA",
            "LV",
            "LB",
            "LC",
            "LS",
            "LR",
            "LY",
            "LI",
            "LT",
            "LU",
            "MO",
            "MQ",
            "MK",
            "MG",
            "MW",
            "MY",
            "MV",
            "ML",
            "MT",
            "MH",
            "MR",
            "MU",
            "MX",
            "FM",
            "MD",
            "MC",
            "MN",
            "MS",
            "MA",
            "MZ",
            "MM",
            "ME",
            "NA",
            "NR",
            "NP",
            "NL",
            "NC",
            "NZ",
            "NI",
            "NE",
            "NG",
            "NU",
            "NF",
            "NO",
            "OM",
            "PK",
            "PW",
            "PA",
            "PG",
            "PS",
            "PY",
            "PE",
            "PF",
            "PH",
            "PL",
            "PN",
            "PT",
            "PR",
            "QA",
            "RO",
            "RU",
            "RW",
            "KN",
            "WS",
            "RE",
            "PM",
            "SH",
            "ST",
            "SM",
            "SA",
            "SN",
            "RS",
            "SC",
            "SL",
            "SG",
            "SX",
            "SK",
            "SI",
            "SB",
            "SO",
            "ZA",
            "ES",
            "LK",
            "SR",
            "SJ",
            "SZ",
            "SE",
            "CH",
            "SY",
            "TC",
            "TW",
            "TJ",
            "TZ",
            "TH",
            "TG",
            "TO",
            "TT",
            "TN",
            "TR",
            "TM",
            "TV",
            "UG",
            "UA",
            "AE",
            "GB",
            "JE",
            "IM",
            "US",
            "UY",
            "UZ",
            "VC",
            "VU",
            "VE",
            "VN",
            "VG",
            "VI",
            "WF",
            "EH",
            "YE",
            "YU",
            "ZM",
            "ZW"
          ]
        },
        "passportId": {
          "type": "string",
          "description": "Replaced with 'HIDDEN' if api caller has no access to see lead's personal and confidential information"
        },
        "passportCountryCode": {
          "type": "string",
          "description": "Replaced with null if api caller has no access to see lead's personal and confidential information",
          "enum": [
            "AF",
            "AL",
            "DZ",
            "AS",
            "AD",
            "AO",
            "AI",
            "AG",
            "AN",
            "AR",
            "AM",
            "AW",
            "AU",
            "AT",
            "AZ",
            "BS",
            "BH",
            "BD",
            "BB",
            "BY",
            "BE",
            "BZ",
            "BJ",
            "BM",
            "BT",
            "BO",
            "BA",
            "BW",
            "BR",
            "BN",
            "BG",
            "BF",
            "BI",
            "BQ",
            "KH",
            "CM",
            "CA",
            "CV",
            "KY",
            "CF",
            "TD",
            "CL",
            "CN",
            "CX",
            "CC",
            "CO",
            "KM",
            "YT",
            "CG",
            "CD",
            "CK",
            "CR",
            "CI",
            "HR",
            "CU",
            "CW",
            "CY",
            "CZ",
            "DK",
            "DJ",
            "DM",
            "DO",
            "EC",
            "EG",
            "SV",
            "GQ",
            "ER",
            "EE",
            "ET",
            "FJ",
            "FI",
            "FK",
            "FO",
            "FR",
            "GF",
            "GA",
            "GM",
            "GE",
            "DE",
            "GH",
            "GI",
            "GR",
            "GL",
            "GD",
            "GU",
            "GT",
            "GN",
            "GW",
            "GY",
            "GP",
            "HT",
            "VA",
            "HN",
            "HK",
            "HL",
            "HU",
            "IS",
            "IN",
            "ID",
            "IR",
            "IQ",
            "IE",
            "IL",
            "IT",
            "JM",
            "JP",
            "JO",
            "KZ",
            "KE",
            "KI",
            "KP",
            "KR",
            "KW",
            "KG",
            "LA",
            "LV",
            "LB",
            "LC",
            "LS",
            "LR",
            "LY",
            "LI",
            "LT",
            "LU",
            "MO",
            "MQ",
            "MK",
            "MG",
            "MW",
            "MY",
            "MV",
            "ML",
            "MT",
            "MH",
            "MR",
            "MU",
            "MX",
            "FM",
            "MD",
            "MC",
            "MN",
            "MS",
            "MA",
            "MZ",
            "MM",
            "ME",
            "NA",
            "NR",
            "NP",
            "NL",
            "NC",
            "NZ",
            "NI",
            "NE",
            "NG",
            "NU",
            "NF",
            "NO",
            "OM",
            "PK",
            "PW",
            "PA",
            "PG",
            "PS",
            "PY",
            "PE",
            "PF",
            "PH",
            "PL",
            "PN",
            "PT",
            "PR",
            "QA",
            "RO",
            "RU",
            "RW",
            "KN",
            "WS",
            "RE",
            "PM",
            "SH",
            "ST",
            "SM",
            "SA",
            "SN",
            "RS",
            "SC",
            "SL",
            "SG",
            "SX",
            "SK",
            "SI",
            "SB",
            "SO",
            "ZA",
            "ES",
            "LK",
            "SR",
            "SJ",
            "SZ",
            "SE",
            "CH",
            "SY",
            "TC",
            "TW",
            "TJ",
            "TZ",
            "TH",
            "TG",
            "TO",
            "TT",
            "TN",
            "TR",
            "TM",
            "TV",
            "UG",
            "UA",
            "AE",
            "GB",
            "JE",
            "IM",
            "US",
            "UY",
            "UZ",
            "VC",
            "VU",
            "VE",
            "VN",
            "VG",
            "VI",
            "WF",
            "EH",
            "YE",
            "YU",
            "ZM",
            "ZW"
          ]
        },
        "adultCount": {
          "type": "integer",
          "description": "In case it is not supplied, the default value of 1 will be assumed",
          "format": "int32"
        },
        "childrenCount": {
          "type": "integer",
          "description": "In case it is not supplied, the default value of 0 will be assumed",
          "format": "int32"
        },
        "petCount": {
          "type": "integer",
          "description": "In case it is not supplied, the default value of 0 will be assumed",
          "format": "int32"
        },
        "infantCount": {
          "type": "integer",
          "description": "In case it is not supplied, the default value of 0 will be assumed",
          "format": "int32"
        },
        "riskScore": {
          "maximum": 100,
          "minimum": 0,
          "type": "integer",
          "description": "Declared departure datetime in property's timezone by the guest on the pre arrival form.",
          "format": "int32"
        },
        "email": {
          "type": "string",
          "description": "Replaced with 'HIDDEN' if api caller has no access to see lead's personal and confidential information"
        },
        "secondaryEmail": {
          "type": "string",
          "description": "Replaced with 'HIDDEN' if api caller has no access to see lead's personal and confidential information"
        },
        "phoneNumber": {
          "type": "string",
          "description": "Replaced with 'HIDDEN' if api caller has no access to see lead's personal and confidential information"
        },
        "cellPhoneNumber": {
          "type": "string",
          "description": "Replaced with 'HIDDEN' if api caller has no access to see lead's personal and confidential information"
        },
        "flightNumber": {
          "type": "string"
        },
        "reasonForTrip": {
          "type": "string"
        },
        "willHaveParty": {
          "type": "boolean"
        },
        "willHaveVisit": {
          "type": "boolean"
        },
        "preferredCurrency": {
          "type": "string",
          "enum": [
            "USD",
            "EUR",
            "GBP",
            "CAD",
            "JPY",
            "INR",
            "MYR",
            "AUD",
            "KES",
            "MXN",
            "HKD",
            "NZD",
            "CHF",
            "BRL",
            "CLP",
            "COP",
            "PEN",
            "ARS",
            "UYU",
            "VEF",
            "CNY",
            "THB",
            "KRW",
            "IDR",
            "SGD",
            "TWD",
            "AED",
            "ZAR",
            "CZK",
            "DKK",
            "DOP",
            "SEK",
            "BGN",
            "ILS",
            "NOK",
            "RON",
            "RUB",
            "PHP",
            "VND",
            "HUF",
            "IKR",
            "PLN",
            "PYG",
            "TRY",
            "GTQ",
            "VUV",
            "JOD",
            "SAR",
            "EGP",
            "TTD",
            "MAD",
            "CVE",
            "BBD",
            "AWG",
            "BHD",
            "NONE"
          ]
        },
        "preferredLocale": {
          "type": "object",
          "properties": {
            "language": {
              "type": "string"
            },
            "displayName": {
              "type": "string"
            },
            "country": {
              "type": "string"
            },
            "variant": {
              "type": "string"
            },
            "script": {
              "type": "string"
            },
            "unicodeLocaleAttributes": {
              "uniqueItems": true,
              "type": "array",
              "items": {
                "type": "string"
              }
            },
            "unicodeLocaleKeys": {
              "uniqueItems": true,
              "type": "array",
              "items": {
                "type": "string"
              }
            },
            "displayLanguage": {
              "type": "string"
            },
            "displayScript": {
              "type": "string"
            },
            "displayCountry": {
              "type": "string"
            },
            "displayVariant": {
              "type": "string"
            },
            "extensionKeys": {
              "uniqueItems": true,
              "type": "array",
              "items": {
                "type": "string"
              }
            },
            "iso3Language": {
              "type": "string"
            },
            "iso3Country": {
              "type": "string"
            }
          }
        },
        "arrivalLocalDateTime": {
          "type": "string"
        },
        "departureLocalDateTime": {
          "type": "string"
        }
      },
      "description": "Ignored for BLOCK type of a lead"
    },
    "LeadMetadataApiV3Dto": {
      "type": "object",
      "properties": {
        "createdUtcDateTime": {
          "type": "string"
        },
        "updatedUtcDateTime": {
          "type": "string"
        },
        "creationCircumstances": {
          "type": "string",
          "description": "Optional type defining what process created the lead.",
          "enum": [
            "IMPORTED_FROM_CSV",
            "CREATED_WHILE_CHANNEL_ON",
            "IMPORTED_UPON_CHANNEL_CONNECTION"
          ]
        }
      }
    }
  }
}