{
  "openapi": "3.1.0",
  "info": {
    "title": "Mirror Security public website API",
    "version": "1.0.0",
    "description": "Public HTTP endpoints on mirrorsecurity.io. Authenticated admin (/api/site-admin/*) and blog-studio (/api/blog-studio/*) surfaces are omitted. Form endpoints require Cloudflare Turnstile when enabled.",
    "contact": {
      "name": "Mirror Security",
      "url": "https://mirrorsecurity.io/company/contact",
      "email": "hello@mirrorsecurity.io"
    }
  },
  "servers": [
    {
      "url": "https://mirrorsecurity.io",
      "description": "Production"
    }
  ],
  "tags": [
    { "name": "Discovery", "description": "Machine-readable site discovery" },
    { "name": "Blog", "description": "Published blog cards and post detail" },
    { "name": "Forms", "description": "Public lead / application forms (Turnstile gated)" }
  ],
  "paths": {
    "/llms.txt": {
      "get": {
        "tags": ["Discovery"],
        "summary": "Curated URL list for AI agents (llmstxt.org)",
        "operationId": "getLlmsTxt",
        "responses": {
          "200": {
            "description": "Plain-text curated link list",
            "content": { "text/plain": { "schema": { "type": "string" } } }
          }
        }
      }
    },
    "/sitemap.xml": {
      "get": {
        "tags": ["Discovery"],
        "summary": "XML sitemap of public marketing URLs",
        "operationId": "getSitemap",
        "responses": {
          "200": {
            "description": "XML sitemap",
            "content": { "application/xml": { "schema": { "type": "string" } } }
          }
        }
      }
    },
    "/openapi.json": {
      "get": {
        "tags": ["Discovery"],
        "summary": "This OpenAPI document",
        "operationId": "getOpenApi",
        "responses": {
          "200": {
            "description": "OpenAPI 3.1 document",
            "content": { "application/json": { "schema": { "type": "object" } } }
          }
        }
      }
    },
    "/.well-known/api-catalog": {
      "get": {
        "tags": ["Discovery"],
        "summary": "RFC 9727 API catalog (linkset+json)",
        "operationId": "getApiCatalog",
        "responses": {
          "200": {
            "description": "Linkset document",
            "content": { "application/linkset+json": { "schema": { "type": "object" } } }
          }
        }
      }
    },
    "/api/health": {
      "get": {
        "tags": ["Discovery"],
        "summary": "Liveness for the public website worker",
        "operationId": "getHealth",
        "responses": {
          "200": {
            "description": "Healthy",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": { "ok": { "type": "boolean" } }
                }
              }
            }
          }
        }
      }
    },
    "/api/blog": {
      "get": {
        "tags": ["Blog"],
        "summary": "List published blog post cards",
        "operationId": "listBlogPosts",
        "parameters": [
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "schema": { "type": "integer", "minimum": 1 }
          }
        ],
        "responses": {
          "200": {
            "description": "Published posts",
            "content": { "application/json": { "schema": { "type": "object" } } }
          }
        }
      }
    },
    "/api/blog/{slug}": {
      "get": {
        "tags": ["Blog"],
        "summary": "Get a published blog post by slug",
        "operationId": "getBlogPost",
        "parameters": [
          {
            "name": "slug",
            "in": "path",
            "required": true,
            "schema": { "type": "string" }
          }
        ],
        "responses": {
          "200": {
            "description": "Post detail",
            "content": { "application/json": { "schema": { "type": "object" } } }
          },
          "404": {
            "description": "Not found",
            "content": { "application/json": { "schema": { "type": "object" } } }
          }
        }
      }
    },
    "/api/contact/submit": {
      "post": {
        "tags": ["Forms"],
        "summary": "Submit the public contact form",
        "operationId": "submitContact",
        "responses": {
          "201": { "description": "Accepted" },
          "400": { "description": "Validation or Turnstile failure" }
        }
      }
    },
    "/api/book-demo/submit": {
      "post": {
        "tags": ["Forms"],
        "summary": "Submit a book-a-demo request",
        "operationId": "submitBookDemo",
        "responses": {
          "201": { "description": "Accepted" },
          "400": { "description": "Validation or Turnstile failure" }
        }
      }
    }
  }
}
