{
  "openapi": "3.1.0",
  "info": {
    "title": "Calmy Public API",
    "version": "1.0.0",
    "description": "Public, agent-discoverable surface for Calmy. Lists hosts' public booking pages and the shape of their meeting types. Calmy is an AI-powered network of people and calendars at https://calmy.life.",
    "contact": {
      "name": "Calmy",
      "email": "hello@calmy.life",
      "url": "https://calmy.life"
    },
    "license": {
      "name": "Proprietary"
    }
  },
  "servers": [
    {
      "url": "https://calmy.life",
      "description": "Production"
    }
  ],
  "paths": {
    "/{slug}": {
      "get": {
        "operationId": "getBookingPage",
        "summary": "Public booking page for a Calmy host",
        "description": "Returns the HTML booking page for the host identified by `slug`. Guests pick a free time and confirm. Use this URL to direct people to book a meeting with a host.",
        "parameters": [
          {
            "name": "slug",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "The host's Calmy slug (e.g. 'andrew')."
          }
        ],
        "responses": {
          "200": {
            "description": "Booking page (HTML)"
          },
          "404": {
            "description": "No host with that slug"
          }
        }
      }
    },
    "/sitemap.xml": {
      "get": {
        "operationId": "getSitemap",
        "summary": "Sitemap of all indexable Calmy URLs including every public booking page",
        "responses": {
          "200": {
            "description": "XML sitemap"
          }
        }
      }
    },
    "/llms.txt": {
      "get": {
        "operationId": "getLlmsTxt",
        "summary": "LLM-friendly site summary (llmstxt.org)",
        "responses": {
          "200": {
            "description": "Markdown"
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "EventType": {
        "type": "object",
        "properties": {
          "duration_min": {
            "type": "integer",
            "example": 30
          },
          "label": {
            "type": "string",
            "example": "30 minute meeting"
          },
          "description": {
            "type": "string"
          },
          "enabled": {
            "type": "boolean"
          }
        },
        "required": [
          "duration_min",
          "label",
          "enabled"
        ]
      },
      "Profile": {
        "type": "object",
        "properties": {
          "slug": {
            "type": "string"
          },
          "display_name": {
            "type": "string"
          },
          "page_title": {
            "type": "string"
          },
          "page_intro": {
            "type": "string"
          },
          "timezone": {
            "type": "string"
          }
        },
        "required": [
          "slug",
          "display_name"
        ]
      }
    }
  }
}