{
  "openapi": "3.1.0",
  "info": {
    "title": "Allowlisted Google Sheets value",
    "version": "1.0.0",
    "description": "Public, unauthenticated demo only. Returns one non-sensitive display value from a fixed, server-side allowlist in Google Sheets. Use an authenticated API for private data."
  },
  "servers": [
    {
      "url": "https://script.google.com/macros/s/YOUR_DEPLOYMENT_ID"
    }
  ],
  "paths": {
    "/exec": {
      "get": {
        "operationId": "getAllowedSheetValue",
        "summary": "Get an allowlisted value from Google Sheets",
        "description": "Returns the formatted, non-sensitive display value for one approved logical key. This public demo has no authentication.",
        "x-openai-isConsequential": false,
        "security": [],
        "parameters": [
          {
            "name": "key",
            "in": "query",
            "required": true,
            "description": "The approved logical value to retrieve.",
            "schema": {
              "type": "string",
              "enum": [
                "stock_price"
              ]
            }
          }
        ],
        "responses": {
          "200": {
            "description": "The requested display value, or a safe error response.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "properties": {
                    "status": {
                      "type": "string",
                      "enum": [
                        "success",
                        "error"
                      ]
                    },
                    "key": {
                      "type": "string"
                    },
                    "value": {
                      "type": "string",
                      "description": "The formatted value shown in the configured Google Sheets cell."
                    },
                    "message": {
                      "type": "string",
                      "description": "A safe error message when status is error."
                    }
                  },
                  "required": [
                    "status"
                  ]
                }
              }
            }
          }
        }
      }
    }
  }
}
