{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/dotsy-ai/json-schema/dotsy-ai-start-guest-site-response-schema.json",
  "title": "StartGuestSiteResponse",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/dotsy-ai-guest-api-openapi.yml#/components/schemas/StartGuestSiteResponse",
  "type": "object",
  "properties": {
    "slug": {
      "type": "string",
      "description": "The new site's slug: `anon` followed by ten letters and digits."
    },
    "guestToken": {
      "type": "string",
      "description": "The guest token (`pgg_…`). It is returned only here, so store it. Send it as `Authorization: Bearer <guestToken>`; it authenticates as `GuestBearerAuth` on this one site."
    },
    "expiresAt": {
      "type": "number",
      "description": "When the guest site is deleted if nobody claims it, Unix ms. 72 hours after creation."
    },
    "draftOnly": {
      "type": "boolean",
      "enum": [
        true
      ],
      "description": "Always true: a guest site can be edited as a draft but cannot be published until it is claimed."
    },
    "guidance": {
      "$ref": "#/$defs/GuidanceHint"
    }
  },
  "required": [
    "slug",
    "guestToken",
    "expiresAt",
    "draftOnly"
  ],
  "$defs": {
    "GuidanceHint": {
      "type": "object",
      "properties": {
        "missing": {
          "type": "array",
          "items": {
            "type": "string",
            "enum": [
              "design",
              "content",
              "seo"
            ]
          }
        },
        "next": {
          "type": "string",
          "enum": [
            "Before your first change: load get_skill('guidance') and write the missing sections."
          ]
        }
      },
      "required": [
        "missing",
        "next"
      ],
      "description": "Which rules & guidelines sections are still empty and the MCP skill to fill them (`get_skill('guidance')`)."
    }
  }
}