{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/zeeg-me/json-schema/zeeg-me-scheduling-page-schema.json",
  "title": "SchedulingPage",
  "description": "A scheduling page (event type) as returned in list responses.",
  "x-generated": "2026-11-29",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/_original/zeeg-me-api-openapi.yml#/components/schemas/SchedulingPage",
  "type": "object",
  "required": [
    "uri",
    "uuid",
    "title",
    "type",
    "schedulingMode",
    "slug",
    "schedulingUrl",
    "isActive",
    "duration",
    "profile",
    "color",
    "language",
    "maxActiveInvitees",
    "inviteeNameFormat"
  ],
  "properties": {
    "uri": {
      "type": "string",
      "format": "uri"
    },
    "uuid": {
      "type": "string",
      "format": "uuid"
    },
    "title": {
      "type": "string"
    },
    "type": {
      "type": "string"
    },
    "schedulingMode": {
      "type": "string",
      "enum": [
        "availability",
        "fixed_dates"
      ],
      "description": "`fixed_dates` marks an event page: a group page bookable only on the dates `GET /event-types/{uuid}/sessions` lists. `availability` pages are bookable on the times their schedule leaves free."
    },
    "slug": {
      "type": "string"
    },
    "schedulingUrl": {
      "type": "string",
      "format": "uri"
    },
    "isActive": {
      "type": "boolean"
    },
    "duration": {
      "type": "integer"
    },
    "eventDurations": {
      "type": "array",
      "description": "The durations an invitee can pick, shortest first.",
      "items": {
        "type": "object",
        "properties": {
          "minutes": {
            "type": "integer"
          },
          "default": {
            "type": "boolean"
          },
          "price": {
            "type": [
              "number",
              "null"
            ],
            "description": "Price charged for this duration on a paid scheduling page, in the page currency. `null` when the duration is free."
          }
        }
      }
    },
    "profile": {
      "type": [
        "object",
        "null"
      ],
      "required": [
        "type"
      ],
      "properties": {
        "type": {
          "type": "string"
        },
        "firstName": {
          "type": "string"
        },
        "lastName": {
          "type": [
            "string",
            "null"
          ]
        },
        "slug": {
          "type": "string"
        },
        "url": {
          "type": "string",
          "format": "uri"
        },
        "avatarUrl": {
          "type": [
            "string",
            "null"
          ],
          "format": "uri"
        },
        "email": {
          "type": "string",
          "format": "email"
        }
      }
    },
    "description": {
      "type": [
        "string",
        "null"
      ]
    },
    "color": {
      "type": "string"
    },
    "language": {
      "type": "string",
      "enum": [
        "en",
        "de",
        "de-du",
        "nl",
        "fi",
        "es",
        "fr",
        "pl",
        "da",
        "sv",
        "it"
      ],
      "description": "The language of the booking page and of the emails its invitees get: `en` English, `de` German addressing the invitee formally (Sie), `de-du` German addressing the invitee informally (du), `nl` Dutch, `fi` Finnish, `es` Spanish, `fr` French, `pl` Polish, `da` Danish, `sv` Swedish, `it` Italian."
    },
    "maxActiveInvitees": {
      "type": "integer"
    },
    "inviteeNameFormat": {
      "type": "string"
    },
    "inviteePhoneNumber": {
      "type": "boolean"
    },
    "inviteeQuestions": {
      "type": [
        "array",
        "null"
      ],
      "items": {
        "type": "object",
        "required": [
          "order",
          "question",
          "isActive",
          "isRequired",
          "type"
        ],
        "properties": {
          "id": {
            "type": "integer",
            "description": "Numeric ID of the question, used when submitting answers via the booking API."
          },
          "order": {
            "type": "integer"
          },
          "question": {
            "type": "string"
          },
          "isActive": {
            "type": "boolean"
          },
          "isRequired": {
            "type": "boolean"
          },
          "type": {
            "type": "string"
          },
          "options": {
            "type": [
              "array",
              "null"
            ],
            "items": {}
          }
        }
      }
    },
    "availabilityType": {
      "type": "string",
      "enum": [
        "shared",
        "per_host"
      ],
      "x-mint": {
        "post": [
          "Alpha"
        ]
      },
      "description": "Where the availability schedule for this scheduling page lives. `shared` — one schedule is set on the page itself and applies to everyone; see `schedule`. `per_host` — each host has their own schedule for this page (COLLECTIVE / ROUND_ROBIN); the per-host schedules are returned on the single-page endpoint in `hosts[].schedule`."
    },
    "schedule": {
      "type": [
        "object",
        "null"
      ],
      "required": [
        "uri",
        "uuid",
        "title"
      ],
      "x-mint": {
        "post": [
          "Alpha"
        ]
      },
      "description": "Reference to the page-level availability schedule shared by all hosts. `null` when `availabilityType` is `per_host`. In list responses this is a reference only; the single-page endpoint inlines the full schedule (hours and overrides).",
      "properties": {
        "uri": {
          "type": "string",
          "format": "uri",
          "description": "API resource URI for this schedule"
        },
        "uuid": {
          "type": "string",
          "description": "Schedule identifier"
        },
        "title": {
          "type": "string",
          "description": "Display name of the schedule"
        }
      }
    },
    "confirmation": {
      "type": "object",
      "required": [
        "redirectEnabled",
        "redirectUrl",
        "confirmationDataInUrl",
        "redirectDelay"
      ],
      "description": "What happens after a booking is confirmed on this scheduling page. Always present, in its off state when no redirect is configured, so the fields can be read without first testing whether a redirect exists. Returned identically by this endpoint and by `GET /event-types/{uuid}`.",
      "properties": {
        "redirectEnabled": {
          "type": "boolean",
          "description": "Whether the invitee is sent to an external URL after booking instead of staying on the Zeeg confirmation page."
        },
        "redirectUrl": {
          "type": [
            "string",
            "null"
          ],
          "format": "uri",
          "description": "Destination the invitee is sent to. Can be `null` while `redirectEnabled` is `true`, so test it before you use it."
        },
        "confirmationDataInUrl": {
          "type": "boolean",
          "description": "Whether the booking details are appended to `redirectUrl` as query parameters. Carries `invitee_uuid` and `assigned_to` alongside the start and end times, the guests, the invitee name and email, the answers to booking questions, and any `c__` custom query parameters. `invitee_uuid` is the same identifier the `invitee.scheduled` webhook sends as `inviteeUuid`."
        },
        "redirectDelay": {
          "type": "integer",
          "minimum": 0,
          "description": "Seconds the confirmation page is shown before the redirect happens. `0` redirects immediately."
        }
      }
    }
  }
}