{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/eloqua/json-schema/eloqua-query-result-contact-schema.json",
  "title": "QueryResultContact",
  "x-generated": "2026-11-25",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/eloqua-contacts-api-openapi.yml#/components/schemas/QueryResultContact",
  "type": "object",
  "properties": {
    "elements": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/Contact"
      }
    },
    "page": {
      "type": "integer"
    },
    "pageSize": {
      "type": "integer"
    },
    "total": {
      "type": "integer"
    }
  },
  "$defs": {
    "Contact": {
      "type": "object",
      "properties": {
        "id": {
          "type": "string",
          "description": "Unique identifier for the contact",
          "readOnly": true
        },
        "name": {
          "type": "string",
          "description": "Contact display name"
        },
        "firstName": {
          "type": "string",
          "description": "Contact first name"
        },
        "lastName": {
          "type": "string",
          "description": "Contact last name"
        },
        "emailAddress": {
          "type": "string",
          "format": "email",
          "description": "Contact email address"
        },
        "title": {
          "type": "string",
          "description": "Contact job title"
        },
        "accountId": {
          "type": "string",
          "description": "Associated account identifier",
          "readOnly": true
        },
        "accountName": {
          "type": "string",
          "description": "Associated account name"
        },
        "address1": {
          "type": "string",
          "description": "Primary address line"
        },
        "address2": {
          "type": "string",
          "description": "Secondary address line"
        },
        "city": {
          "type": "string",
          "description": "City"
        },
        "province": {
          "type": "string",
          "description": "State or province"
        },
        "postalCode": {
          "type": "string",
          "description": "Postal or ZIP code"
        },
        "country": {
          "type": "string",
          "description": "Country"
        },
        "businessPhone": {
          "type": "string",
          "description": "Business phone number"
        },
        "mobilePhone": {
          "type": "string",
          "description": "Mobile phone number"
        },
        "isSubscribed": {
          "type": "string",
          "description": "Email subscription status"
        },
        "isBounced": {
          "type": "string",
          "description": "Whether the contact email has bounced"
        },
        "fieldValues": {
          "type": "array",
          "description": "Custom field values",
          "items": {
            "$ref": "#/$defs/FieldValue"
          }
        },
        "createdAt": {
          "type": "string",
          "description": "Creation timestamp (Unix time)",
          "readOnly": true
        },
        "updatedAt": {
          "type": "string",
          "description": "Last update timestamp (Unix time)",
          "readOnly": true
        },
        "createdBy": {
          "type": "string",
          "description": "User who created the contact",
          "readOnly": true
        },
        "updatedBy": {
          "type": "string",
          "description": "User who last updated the contact",
          "readOnly": true
        },
        "depth": {
          "type": "string",
          "description": "Level of detail returned",
          "readOnly": true
        },
        "folderId": {
          "type": "string",
          "description": "Containing folder identifier",
          "readOnly": true
        },
        "type": {
          "type": "string",
          "description": "Asset type in Eloqua",
          "readOnly": true
        }
      }
    },
    "FieldValue": {
      "type": "object",
      "properties": {
        "id": {
          "type": "string",
          "description": "Field identifier",
          "readOnly": true
        },
        "type": {
          "type": "string",
          "description": "Field type",
          "readOnly": true
        },
        "value": {
          "type": "string",
          "description": "Field value (dates are returned as Unix timestamps)"
        }
      }
    }
  }
}