{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/pagehub-dev/json-schema/pagehub-dev-site-schema.json",
  "title": "Site",
  "x-generated": "2026-11-20",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/pagehub-dev-openapi.json#/components/schemas/Site",
  "type": "object",
  "properties": {
    "id": {
      "type": "string"
    },
    "draftId": {
      "type": "string"
    },
    "name": {
      "type": [
        "string",
        "null"
      ]
    },
    "title": {
      "type": [
        "string",
        "null"
      ]
    },
    "description": {
      "type": [
        "string",
        "null"
      ]
    },
    "ogImage": {
      "type": [
        "object",
        "string",
        "null"
      ]
    },
    "domain": {
      "type": [
        "string",
        "null"
      ]
    },
    "previewUrl": {
      "type": "string",
      "description": "The draft preview (`/view/<draftId>`), on the site's own preview host when per-site previews are on. Share this link; never build a preview URL by hand."
    },
    "portal": {
      "type": [
        "object",
        "null"
      ]
    },
    "crawlPolicy": {
      "type": "object",
      "additionalProperties": true
    },
    "timezone": {
      "type": [
        "string",
        "null"
      ],
      "description": "The business's IANA zone, e.g. `America/Los_Angeles`. Liquid dates (`date`, `time_tag`), `{{ year }}`, `{{ site.timezone }}` and the times in notification emails use it; unset or empty means UTC."
    },
    "language": {
      "type": [
        "string",
        "null"
      ]
    },
    "mountOrigin": {
      "type": [
        "string",
        "null"
      ]
    },
    "mountKey": {
      "type": "string",
      "description": "Only for a tenant key or an owner or agency user."
    },
    "published": {
      "type": "boolean"
    },
    "updatedAt": {
      "type": "string",
      "format": "date-time"
    }
  },
  "required": [
    "id",
    "published",
    "updatedAt"
  ]
}