{
  "openapi": "3.0.0",
  "info": {
    "title": "Vetso Public Marketing API",
    "version": "1.0.0",
    "description": "Public HTTP endpoints used by the Vetso marketing site: published blogs, sitemap, and contact forms. Authenticated clinic and pet-parent product APIs are out of scope."
  },
  "servers": [
    {
      "url": "https://vetso.ai/api",
      "description": "Production API"
    }
  ],
  "paths": {
    "/sitemap.xml": {
      "get": {
        "tags": ["Discovery"],
        "summary": "Marketing sitemap XML",
        "description": "Live sitemap of public marketing URLs and published blog posts. Proxied at https://vetso.ai/sitemap.xml.",
        "responses": {
          "200": {
            "description": "application/xml sitemap"
          }
        }
      }
    },
    "/blogs/public/": {
      "get": {
        "tags": ["Blog"],
        "summary": "List published veterinary / public blog posts",
        "responses": {
          "200": {
            "description": "Paginated list of published posts visible to clinics / public"
          }
        }
      }
    },
    "/blogs/public/{slug}/": {
      "get": {
        "tags": ["Blog"],
        "summary": "Get a published public blog post by slug",
        "parameters": [
          {
            "name": "slug",
            "in": "path",
            "required": true,
            "schema": { "type": "string" }
          }
        ],
        "responses": {
          "200": {
            "description": "Blog post detail"
          },
          "404": {
            "description": "Post not found"
          }
        }
      }
    },
    "/blogs/parent/": {
      "get": {
        "tags": ["Blog"],
        "summary": "List published pet-parent blog posts",
        "responses": {
          "200": {
            "description": "Paginated list of posts visible to pet parents"
          }
        }
      }
    },
    "/blogs/parent/{slug}/": {
      "get": {
        "tags": ["Blog"],
        "summary": "Get a published pet-parent blog post by slug",
        "parameters": [
          {
            "name": "slug",
            "in": "path",
            "required": true,
            "schema": { "type": "string" }
          }
        ],
        "responses": {
          "200": {
            "description": "Blog post detail"
          },
          "404": {
            "description": "Post not found"
          }
        }
      }
    },
    "/contact-us/token": {
      "get": {
        "tags": ["Contact"],
        "summary": "Issue a short-lived contact form token",
        "responses": {
          "200": {
            "description": "Token for public contact submissions"
          }
        }
      }
    },
    "/contact-us": {
      "post": {
        "tags": ["Contact"],
        "summary": "Submit a contact-us message",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "name": { "type": "string" },
                  "email": { "type": "string", "format": "email" },
                  "subject": { "type": "string" },
                  "message": { "type": "string" }
                },
                "required": ["name", "email", "subject", "message"]
              }
            }
          }
        },
        "responses": {
          "201": { "description": "Submission accepted" },
          "400": { "description": "Validation failed" }
        }
      }
    },
    "/book-demo": {
      "post": {
        "tags": ["Contact"],
        "summary": "Submit a clinic book-demo request",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "name": { "type": "string" },
                  "email": { "type": "string", "format": "email" },
                  "phone": { "type": "string" },
                  "org_name": { "type": "string" },
                  "team_size": { "type": "string" },
                  "message": { "type": "string" }
                },
                "required": ["name", "email", "phone", "org_name"]
              }
            }
          }
        },
        "responses": {
          "201": { "description": "Submission accepted" },
          "400": { "description": "Validation failed" }
        }
      }
    },
    "/service-providers": {
      "post": {
        "tags": ["Contact"],
        "summary": "Submit a pet service provider interest form",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "name": { "type": "string" },
                  "email": { "type": "string", "format": "email" },
                  "phone": { "type": "string" },
                  "business_name": { "type": "string" },
                  "service_type": { "type": "string" },
                  "website": { "type": "string" },
                  "message": { "type": "string" }
                },
                "required": ["name", "email", "business_name", "service_type"]
              }
            }
          }
        },
        "responses": {
          "201": { "description": "Submission accepted" },
          "400": { "description": "Validation failed" }
        }
      }
    }
  }
}
