{
  "openapi": "3.1.0",
  "info": {
    "title": "Sitenap Agency Public Discovery API",
    "version": "1.0.0",
    "summary": "Public read-only JSON endpoints exposing Sitenap Agency services, transparent PKR pricing bundles, completed portfolio showcases, and engineering blog posts.",
    "description": "Official machine-readable API for Sitenap Agency (https://sitenapagency.com), founded by Malik Zohaib. All documented GET endpoints are public and require no authentication. For quote submissions or project bookings, use https://sitenapagency.com/contact or the WebMCP tools registered in the browser.",
    "termsOfService": "https://sitenapagency.com/terms",
    "contact": {
      "name": "Malik Zohaib — Sitenap Agency",
      "url": "https://sitenapagency.com/contact",
      "email": "sitenapagency@gmail.com"
    }
  },
  "servers": [
    {
      "url": "https://sitenapagency.com",
      "description": "Primary production host"
    }
  ],
  "security": [],
  "externalDocs": {
    "description": "Human-readable API & Agent Integration Docs",
    "url": "https://sitenapagency.com/docs"
  },
  "paths": {
    "/api/services.json": {
      "get": {
        "operationId": "listServices",
        "summary": "List all Sitenap Agency services",
        "description": "Returns Sitenap Agency's five core digital services, deliverables, technologies, and starting PKR prices.",
        "tags": ["Catalog"],
        "responses": {
          "200": {
            "description": "Service catalog returned successfully.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ServicesResponse"
                }
              }
            }
          }
        }
      }
    },
    "/api/pricing.json": {
      "get": {
        "operationId": "getPricing",
        "summary": "Get fixed-price growth bundles and modular pricing",
        "description": "Returns transparent Silver, Gold, and Platinum bundle pricing in PKR, modular custom-builder rates, and 30/70 milestone payment terms.",
        "tags": ["Pricing"],
        "responses": {
          "200": {
            "description": "Pricing catalog returned successfully.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PricingResponse"
                }
              }
            }
          }
        }
      }
    },
    "/api/portfolio.json": {
      "get": {
        "operationId": "listPortfolio",
        "summary": "List completed public client websites and projects",
        "description": "Returns verified completed websites engineered by Sitenap Agency with live URLs, categories, and deliverables.",
        "tags": ["Portfolio"],
        "responses": {
          "200": {
            "description": "Portfolio showcase list returned successfully.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PortfolioResponse"
                }
              }
            }
          }
        }
      }
    },
    "/data/blog-posts.json": {
      "get": {
        "operationId": "listBlogPosts",
        "summary": "List published engineering and growth articles",
        "description": "Returns structured metadata and summaries for all articles published on Sitenap Blog (/blog).",
        "tags": ["Content"],
        "responses": {
          "200": {
            "description": "Blog post index returned successfully.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "posts": {
                      "type": "array",
                      "items": { "type": "object" }
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/api/mcp": {
      "get": {
        "operationId": "getMcpServerInfo",
        "summary": "Get live MCP server discovery metadata",
        "description": "Returns server capabilities, supported protocol version (2025-03-26), and available JSON-RPC 2.0 methods.",
        "tags": ["MCP"],
        "responses": {
          "200": {
            "description": "MCP server discovery metadata.",
            "content": { "application/json": { "schema": { "type": "object" } } }
          }
        }
      },
      "post": {
        "operationId": "mcpJsonRpc",
        "summary": "Invoke Model Context Protocol (MCP) JSON-RPC 2.0 endpoint",
        "description": "Streamable HTTP JSON-RPC 2.0 MCP endpoint supporting initialize, notifications/initialized, ping, tools/list, tools/call, resources/list, and resources/read.",
        "tags": ["MCP"],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": ["jsonrpc", "method"],
                "properties": {
                  "jsonrpc": { "type": "string", "enum": ["2.0"] },
                  "id": { "type": ["string", "integer", "null"] },
                  "method": { "type": "string" },
                  "params": { "type": "object" }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "JSON-RPC 2.0 response payload.",
            "content": { "application/json": { "schema": { "type": "object" } } }
          },
          "202": {
            "description": "Notification acknowledged."
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "ServiceItem": {
        "type": "object",
        "required": ["id", "name", "category", "url", "startingPricePKR", "summary", "deliverables"],
        "properties": {
          "id": { "type": "string" },
          "name": { "type": "string" },
          "category": { "type": "string" },
          "url": { "type": "string", "format": "uri" },
          "startingPricePKR": { "type": "integer" },
          "summary": { "type": "string" },
          "deliverables": { "type": "array", "items": { "type": "string" } },
          "technologies": { "type": "array", "items": { "type": "string" } }
        }
      },
      "ServicesResponse": {
        "type": "object",
        "required": ["agency", "currency", "services"],
        "properties": {
          "agency": { "type": "object" },
          "updatedAt": { "type": "string", "format": "date" },
          "currency": { "type": "string", "example": "PKR" },
          "services": {
            "type": "array",
            "items": { "$ref": "#/components/schemas/ServiceItem" }
          }
        }
      },
      "BundleTier": {
        "type": "object",
        "required": ["id", "name", "pricePKR", "depositPKR", "completionPKR", "included"],
        "properties": {
          "id": { "type": "string" },
          "name": { "type": "string" },
          "tier": { "type": "string" },
          "pricePKR": { "type": "integer" },
          "depositPKR": { "type": "integer" },
          "completionPKR": { "type": "integer" },
          "bestFor": { "type": "string" },
          "orderUrl": { "type": "string", "format": "uri" },
          "included": { "type": "array", "items": { "type": "string" } }
        }
      },
      "PricingResponse": {
        "type": "object",
        "required": ["agency", "currency", "paymentTerms", "bundles", "modularPricing"],
        "properties": {
          "agency": { "type": "string" },
          "currency": { "type": "string", "example": "PKR" },
          "paymentTerms": { "type": "object" },
          "bundles": { "type": "array", "items": { "$ref": "#/components/schemas/BundleTier" } },
          "modularPricing": { "type": "object" }
        }
      },
      "PortfolioProject": {
        "type": "object",
        "required": ["id", "name", "category", "liveUrl", "summary"],
        "properties": {
          "id": { "type": "string" },
          "name": { "type": "string" },
          "category": { "type": "string" },
          "liveUrl": { "type": "string", "format": "uri" },
          "previewImage": { "type": "string", "format": "uri" },
          "summary": { "type": "string" },
          "servicesDelivered": { "type": "array", "items": { "type": "string" } }
        }
      },
      "PortfolioResponse": {
        "type": "object",
        "required": ["agency", "projects"],
        "properties": {
          "agency": { "type": "string" },
          "founder": { "type": "string" },
          "projects": { "type": "array", "items": { "$ref": "#/components/schemas/PortfolioProject" } }
        }
      }
    }
  }
}
