{
  "openapi": "3.1.0",
  "info": {
    "title": "Ratanmoti Google Business Profile Automation API",
    "version": "1.0.0",
    "description": "A single-tenant remote MCP and REST service for managing the Ratanmoti Google Business Profile in Ichalkaranji."
  },
  "servers": [
    {
      "url": "https://gbp-automations.ratanmoti.in"
    }
  ],
  "security": [
    {
      "bearerAuth": []
    }
  ],
  "components": {
    "securitySchemes": {
      "bearerAuth": {
        "type": "http",
        "scheme": "bearer"
      }
    }
  },
  "paths": {
    "/api/locations": {
      "get": {
        "summary": "List accessible locations",
        "responses": {
          "200": {
            "description": "Locations"
          },
          "401": {
            "description": "Unauthorized"
          }
        }
      }
    },
    "/api/locations/{name}": {
      "get": {
        "summary": "Get a location",
        "parameters": [
          {
            "name": "name",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Location"
          }
        }
      }
    },
    "/api/reviews": {
      "get": {
        "summary": "List reviews",
        "parameters": [
          {
            "name": "locationName",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "accountName",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Reviews"
          }
        }
      }
    },
    "/api/performance": {
      "get": {
        "summary": "Get daily performance",
        "responses": {
          "200": {
            "description": "Performance"
          }
        }
      }
    },
    "/api/search-keywords": {
      "get": {
        "summary": "Get monthly search keywords",
        "responses": {
          "200": {
            "description": "Search keyword impressions"
          }
        }
      }
    },
    "/api/posts": {
      "get": {
        "summary": "List posts"
      },
      "post": {
        "summary": "Create or schedule a post"
      },
      "delete": {
        "summary": "Delete a post"
      }
    },
    "/api/reviews/reply": {
      "post": {
        "summary": "Reply to a review"
      }
    }
  }
}