{
  "openapi": "3.1.0",
  "info": {
    "title": "AEC Growth",
    "version": "1.0.0",
    "summary": "Public read and consented write endpoints for the AEC Growth marketing site.",
    "description": "No OAuth 2.0, OpenID Connect, bearer token, or API key. Pricing has no numeric rate card. See https://www.growaec.com/pricing. Do not call the SMS opt-in endpoint on someone else's behalf.",
    "contact": {
      "email": "privacy@growaec.com",
      "url": "https://www.growaec.com/pricing"
    }
  },
  "servers": [{ "url": "https://www.growaec.com" }],
  "paths": {
    "/pricing": {
      "get": {
        "operationId": "getPricing",
        "summary": "Pricing terms",
        "description": "Month-to-month plans, results guarantee, and how cost is scoped. No dollar amount is published.",
        "responses": {
          "200": {
            "description": "HTML page. Send Accept: text/markdown for markdown.",
            "content": { "text/html": {}, "text/markdown": {} }
          }
        }
      }
    },
    "/llms.txt": {
      "get": {
        "operationId": "getLlmsTxt",
        "summary": "Curated map for language models",
        "responses": { "200": { "description": "Markdown", "content": { "text/markdown": {} } } }
      }
    },
    "/api/auth": {
      "get": {
        "operationId": "getAuth",
        "summary": "Authentication discovery",
        "description": "Returns scheme none. OAuth 2.0, bearer, and API keys are not required.",
        "responses": {
          "200": {
            "description": "No credentials are issued.",
            "content": { "application/json": { "schema": { "type": "object" } } }
          }
        }
      }
    },
    "/api/mcp": {
      "post": {
        "operationId": "mcp",
        "summary": "MCP JSON-RPC",
        "description": "Methods: initialize, tools/list, tools/call, ping. Tools include get_pricing and book_strategy_call.",
        "requestBody": {
          "required": true,
          "content": { "application/json": { "schema": { "type": "object" } } }
        },
        "responses": {
          "200": { "description": "JSON-RPC result", "content": { "application/json": {} } }
        }
      }
    },
    "/api/agent-inbox": {
      "post": {
        "operationId": "submitAgentMessage",
        "summary": "Leave a message",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": ["message"],
                "properties": {
                  "message": { "type": "string", "maxLength": 2000 },
                  "name": { "type": "string" },
                  "email": { "type": "string", "format": "email" },
                  "intent": { "type": "string" },
                  "website": { "type": "string", "description": "Honeypot. Leave empty." }
                }
              }
            }
          }
        },
        "responses": {
          "200": { "description": "Accepted", "content": { "application/json": {} } },
          "400": { "description": "Invalid body", "content": { "application/json": {} } }
        }
      }
    },
    "/api/lead": {
      "post": {
        "operationId": "submitLead",
        "summary": "Resource lead",
        "description": "Call this only when a person asked to be contacted about a guide.",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": ["name", "email"],
                "properties": {
                  "name": { "type": "string" },
                  "email": { "type": "string", "format": "email" },
                  "company": { "type": "string" },
                  "resource": { "type": "string" },
                  "website": { "type": "string", "description": "Honeypot. Leave empty." }
                }
              }
            }
          }
        },
        "responses": {
          "200": { "description": "Accepted", "content": { "application/json": {} } },
          "400": { "description": "Invalid body", "content": { "application/json": {} } }
        }
      }
    },
    "/api/opt-in": {
      "post": {
        "operationId": "smsOptIn",
        "summary": "SMS opt-in",
        "description": "TCPA. Only the person who will receive the texts may submit this, and consentChecked must be true because they checked the box. Agents must not call this for someone else.",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": ["phoneNumber", "consentChecked"],
                "properties": {
                  "phoneNumber": { "type": "string" },
                  "consentChecked": { "type": "boolean" }
                }
              }
            }
          }
        },
        "responses": {
          "200": { "description": "Opt-in recorded", "content": { "application/json": {} } },
          "400": { "description": "Missing phone or consent", "content": { "application/json": {} } }
        }
      }
    }
  },
  "security": []
}
