{
  "openapi": "3.1.0",
  "info": {
    "title": "TYM Agency Autonomous Commercial Engine API",
    "description": "Programmatic API for AI agents and conversational search models to query TYM Agency's 7 Commercial Systems, estimate project scopes, and submit enterprise diagnostic intakes.",
    "version": "1.0.0",
    "contact": {
      "name": "David Jacob Durairaj & Stephen Daniel J",
      "email": "office.theyouthmint@gmail.com",
      "url": "https://www.tymagency.in"
    }
  },
  "servers": [
    {
      "url": "https://www.tymagency.in",
      "description": "Production Web & API Gateway"
    }
  ],
  "paths": {
    "/api/leads": {
      "post": {
        "summary": "Submit a Growth Diagnostic or Project Scoping Request",
        "description": "Dispatches a project lead directly to founders David Jacob and Stephen Daniel with sub-2-hour response SLA and sub-30-second WhatsApp sales desk triage.",
        "operationId": "submitDiagnosticLead",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": ["name", "phone", "service", "message"],
                "properties": {
                  "name": {
                    "type": "string",
                    "description": "Client or Executive Name",
                    "example": "Karthik Subramanian"
                  },
                  "email": {
                    "type": "string",
                    "format": "email",
                    "description": "Corporate or Business Email",
                    "example": "karthik@enterprise.in"
                  },
                  "phone": {
                    "type": "string",
                    "description": "WhatsApp or Mobile Contact Number",
                    "example": "+91 98424 12345"
                  },
                  "company": {
                    "type": "string",
                    "description": "Company Name or Website URL",
                    "example": "Apex Precision Engineering Pvt Ltd"
                  },
                  "service": {
                    "type": "string",
                    "enum": [
                      "System 01: Brand Positioning & Category Moats",
                      "System 02: Multi-Dimensional Web Platforms & Digital Flagships",
                      "System 03: Advanced Search & Generative AI Placement (SEO, GEO & AEO)",
                      "System 04: Business Profile & Reputation Domination",
                      "System 05: Custom IT Solutions & AI Workflow Automation",
                      "System 06: High-Performance Paid Advertising & Acquisition Funnels",
                      "System 07: Market Research & Strategic Business Advisory",
                      "Full Commercial Diagnostic / General Inquiry"
                    ],
                    "description": "Target Commercial System"
                  },
                  "budget": {
                    "type": "string",
                    "description": "Estimated Budget Bracket",
                    "example": "₹1L - ₹3L Fixed Sprint"
                  },
                  "message": {
                    "type": "string",
                    "description": "Project Bottleneck and Scope Description",
                    "example": "Our current WordPress website takes 5 seconds to load and converts 0% of mobile visitors. We need a custom digital flagship."
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Diagnostic lead successfully queued and dispatched to founders.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": { "type": "boolean", "example": true },
                    "message": { "type": "string", "example": "Diagnostic submitted. Founder response SLA: < 2 hours." },
                    "sla": { "type": "string", "example": "120 minutes" }
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}
