forms-lead

{
  "addresses": {
    "items": {
      "properties": {
        "address_type": {
          "enum": [
            "PRIMARY",
            "SECONDARY",
            "OFFICE",
            "SHIPPING",
            "BILLING",
            "OTHER"
          ],
          "title": "Address Type",
          "type": "string"
        },
        "city": {
          "title": "City",
          "type": "string"
        },
        "country": {
          "title": "Country",
          "type": "string"
        },
        "postal_code": {
          "title": "Postal Code",
          "type": "string"
        },
        "state": {
          "title": "State",
          "type": "string"
        },
        "street_1": {
          "title": "Street 1",
          "type": "string"
        },
        "street_2": {
          "title": "Street 2",
          "type": "string"
        }
      },
      "type": "object"
    },
    "title": "Addresses",
    "type": "array"
  },
  "company": {
    "title": "Company",
    "type": "string"
  },
  "email_addresses": {
    "items": {
      "properties": {
        "email_address": {
          "format": "email",
          "title": "Email Address",
          "type": "string"
        },
        "email_type": {
          "enum": [
            "WORK",
            "PERSONAL",
            "OTHER"
          ],
          "title": "Email Type",
          "type": "string"
        }
      },
      "type": "object"
    },
    "title": "Email Addresses",
    "type": "array"
  },
  "first_name": {
    "title": "First Name",
    "type": "string"
  },
  "last_name": {
    "title": "Last Name",
    "type": "string"
  },
  "lead_source": {
    "title": "Lead Source",
    "type": "string"
  },
  "phone_numbers": {
    "items": {
      "properties": {
        "phone_number": {
          "title": "Phone Number",
          "type": "string"
        },
        "phone_type": {
          "enum": [
            "HOME",
            "WORK",
            "PERSONAL",
            "MOBILE",
            "OTHER"
          ],
          "title": "Phone Type",
          "type": "string"
        }
      },
      "type": "object"
    },
    "title": "Phone Numbers",
    "type": "array"
  },
  "position": {
    "title": "Position",
    "type": "string"
  }
}

Example Object:

{
  "addresses": [
    {
      "address_type": "PRIMARY",
      "city": "New York",
      "country": "USA",
      "postal_code": "10001",
      "state": "NY",
      "street_1": "123 Main St",
      "street_2": "Apt 101"
    },
    {
      "address_type": "SECONDARY",
      "city": "Los Angeles",
      "country": "USA",
      "postal_code": "90001",
      "state": "CA",
      "street_1": "456 Elm St",
      "street_2": "Suite 301"
    }
  ],
  "company": "XYZ Corporation",
  "email_addresses": [
    {
      "email_address": "[email protected]",
      "email_type": "WORK"
    },
    {
      "email_address": "[email protected]",
      "email_type": "PERSONAL"
    }
  ],
  "first_name": "John",
  "last_name": "Doe",
  "lead_source": "Website",
  "phone_numbers": [
    {
      "phone_number": "123-456-7890",
      "phone_type": "HOME"
    },
    {
      "phone_number": "987-654-3210",
      "phone_type": "MOBILE"
    }
  ],
  "position": "Manager"
}

forms-question

{
  "description": {
    "title": "Description",
    "type": "string"
  },
  "required": {
    "title": "Required",
    "type": "boolean"
  },
  "text": {
    "title": "Question Text",
    "type": "string"
  }
}

Example Object:

{
  "description": "This question is intended to gather information about your previous experience in customer service roles.",
  "required": true,
  "text": "Can you provide details about your previous customer service experience?"
}