{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/whoisgeni-us/json-schema/whoisgeni-us-api-response-domain-portfolio-response-schema.json",
  "title": "ApiResponse[DomainPortfolioResponse]",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/whoisgeni-us-domains-api-openapi.yml#/components/schemas/ApiResponse_DomainPortfolioResponse_",
  "properties": {
    "data": {
      "anyOf": [
        {
          "$ref": "#/$defs/DomainPortfolioResponse"
        },
        {
          "type": "null"
        }
      ]
    },
    "error": {
      "anyOf": [
        {
          "$ref": "#/$defs/ErrorDetail"
        },
        {
          "type": "null"
        }
      ]
    },
    "meta": {
      "anyOf": [
        {
          "additionalProperties": true,
          "type": "object"
        },
        {
          "type": "null"
        }
      ],
      "title": "Meta"
    }
  },
  "type": "object",
  "$defs": {
    "DomainPortfolioResponse": {
      "properties": {
        "domain": {
          "type": "string",
          "title": "Domain"
        },
        "entity_name": {
          "type": "string",
          "title": "Entity Name"
        },
        "portfolio_count": {
          "type": "integer",
          "title": "Portfolio Count"
        },
        "domains": {
          "items": {
            "$ref": "#/$defs/PortfolioDomain"
          },
          "type": "array",
          "title": "Domains"
        },
        "cached": {
          "type": "boolean",
          "title": "Cached"
        }
      },
      "type": "object",
      "required": [
        "domain",
        "entity_name",
        "portfolio_count",
        "domains",
        "cached"
      ],
      "title": "DomainPortfolioResponse",
      "description": "Portfolio of domains owned by the same entity as the queried domain.\n\nAttributes:\n    domain: The queried domain name.\n    entity_name: The top entity found for this domain from scoring.\n    portfolio_count: Total domains in portfolio (may exceed len(domains)).\n    domains: Up to 50 domains from the entity's Reverse WHOIS portfolio.\n    cached: Whether the result was served from cache."
    },
    "ErrorDetail": {
      "properties": {
        "code": {
          "type": "string",
          "title": "Code"
        },
        "message": {
          "type": "string",
          "title": "Message"
        },
        "details": {
          "anyOf": [
            {
              "additionalProperties": true,
              "type": "object"
            },
            {
              "type": "null"
            }
          ],
          "title": "Details"
        }
      },
      "type": "object",
      "required": [
        "code",
        "message"
      ],
      "title": "ErrorDetail",
      "description": "Structured error information for API error responses.\n\nAttributes:\n    code: Machine-readable error code (e.g. \"JOB_NOT_FOUND\").\n    message: Human-readable error description.\n    details: Optional additional context for debugging."
    },
    "PortfolioDomain": {
      "properties": {
        "domain_name": {
          "type": "string",
          "title": "Domain Name"
        }
      },
      "type": "object",
      "required": [
        "domain_name"
      ],
      "title": "PortfolioDomain",
      "description": "A single domain from Reverse WHOIS portfolio results.\n\nAttributes:\n    domain_name: Fully qualified domain name."
    }
  }
}