{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/envestnet/json-schema/envestnet-holder-profile-response-schema.json",
  "title": "HolderProfileResponse",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/envestnet-verification-api-openapi.yml#/components/schemas/HolderProfileResponse",
  "type": "object",
  "properties": {
    "holderProfile": {
      "type": "array",
      "description": "The holder profile entity encapsulates all the user's details, such as the corresponding accounts and the user's profile data under it",
      "readOnly": true,
      "items": {
        "$ref": "#/$defs/VerificationHolderProfile"
      }
    }
  },
  "$defs": {
    "AbstractAddress": {
      "title": "AbstractAddress",
      "type": "object",
      "properties": {
        "zip": {
          "type": "string",
          "description": "Zip."
        },
        "country": {
          "type": "string",
          "description": "Country."
        },
        "address3": {
          "type": "string",
          "description": "Address Line 3."
        },
        "address2": {
          "type": "string",
          "description": "Address Line 2."
        },
        "city": {
          "type": "string",
          "description": "City."
        },
        "address1": {
          "type": "string",
          "description": "Address Line 1."
        },
        "state": {
          "type": "string",
          "description": "State."
        }
      }
    },
    "Email": {
      "title": "Email",
      "type": "object",
      "properties": {
        "type": {
          "type": "string",
          "readOnly": true,
          "enum": [
            "PRIMARY",
            "SECONDARY",
            "PERSONAL",
            "WORK",
            "OTHERS"
          ]
        },
        "value": {
          "type": "string",
          "readOnly": true
        }
      }
    },
    "Name": {
      "title": "Name",
      "type": "object",
      "properties": {
        "middle": {
          "type": "string",
          "description": "Middle name."
        },
        "last": {
          "type": "string",
          "description": "Last name."
        },
        "fullName": {
          "type": "string",
          "description": "Full name."
        },
        "first": {
          "type": "string",
          "description": "First name."
        }
      }
    },
    "PhoneNumber": {
      "title": "PhoneNumber",
      "type": "object",
      "properties": {
        "type": {
          "type": "string",
          "description": "type of phone number",
          "readOnly": true,
          "enum": [
            "HOME",
            "WORK",
            "LANDLINE",
            "MOBILE"
          ]
        },
        "value": {
          "type": "string",
          "description": "Phone Number",
          "readOnly": true
        }
      }
    },
    "VerificationHolder": {
      "title": "VerificationHolder",
      "type": "object",
      "properties": {
        "ownership": {
          "type": "string",
          "description": "Indicates the ownership of the account",
          "readOnly": true
        },
        "name": {
          "$ref": "#/$defs/Name"
        }
      }
    },
    "VerificationHolderProfile": {
      "title": "VerificationHolderProfile",
      "type": "object",
      "properties": {
        "accountId": {
          "type": "integer",
          "description": "The primary key of the account resource and the unique identifier for the account",
          "format": "int64",
          "readOnly": true
        },
        "address": {
          "type": "array",
          "description": "The account holder's address available at the profile and account levels",
          "readOnly": true,
          "items": {
            "$ref": "#/$defs/AbstractAddress"
          }
        },
        "phoneNumber": {
          "type": "array",
          "description": "The account holder's phone number available at the profile and account levels",
          "readOnly": true,
          "items": {
            "$ref": "#/$defs/PhoneNumber"
          }
        },
        "providerAccountId": {
          "type": "integer",
          "description": "The primary key of the provider account resource",
          "format": "int64",
          "readOnly": true
        },
        "holder": {
          "type": "array",
          "description": "The holder entity is account-specific and captures the ownership status and the name details of the user",
          "readOnly": true,
          "items": {
            "$ref": "#/$defs/VerificationHolder"
          }
        },
        "email": {
          "type": "array",
          "description": "The account holder's email ID available at the profile and account levels",
          "readOnly": true,
          "items": {
            "$ref": "#/$defs/Email"
          }
        }
      }
    }
  }
}