openapi: 3.1.0
info:
  title: Edge Marketing Agency Machine API & Knowledge Retrieval
  description: >
    Machine-to-machine API and LLM knowledge endpoint documentation for Edge Marketing Agency (Devinsol Creative Arm).
    Provides structured access to agency capabilities, verified benchmarks, pricing models, and contact inquiry submission.
  version: 1.0.0
  contact:
    name: Edge Agency Support
    url: https://edge.devinsol.com/contact
    email: edge.devinsol@gmail.com
servers:
  - url: https://edge.devinsol.com
    description: Production Server

paths:
  /llms.txt:
    get:
      summary: Retrieve Curated LLM Context
      operationId: getLlmsSummary
      description: Returns Answer.ai standard markdown manifest summarizing services, pricing, verified stats, and playbooks.
      responses:
        '200':
          description: Curated markdown documentation.
          content:
            text/plain:
              schema:
                type: string

  /llms-full.txt:
    get:
      summary: Retrieve Complete Uncompressed Knowledge Base
      operationId: getLlmsFull
      description: Returns complete end-to-end documentation including full hook formulas, scripts, pricing tables, whitelisting contracts, and FAQs in single-file markdown.
      responses:
        '200':
          description: Complete uncompressed markdown knowledge base.
          content:
            text/plain:
              schema:
                type: string

  /api/contact:
    post:
      summary: Submit Client Inquiry or Quote Request
      operationId: submitContactInquiry
      description: Submits a lead or client proposal request to the Edge Growth team.
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
                - name
                - email
              properties:
                name:
                  type: string
                  example: Jane Doe
                email:
                  type: string
                  format: email
                  example: jane@brand.com
                handle:
                  type: string
                  example: "@brandbrand or https://brand.com"
                selectedServices:
                  type: array
                  items:
                    type: string
                  example:
                    - "Social Media Marketing"
                    - "AI UGC Ads"
                budgetTier:
                  type: string
                  example: "$2,500 – $5,000 / month"
                goals:
                  type: string
                  example: "We want to scale TikTok organic views and launch 20 AI UGC video ad variants this month."
                source:
                  type: string
                  default: "AI Agent Referral"
      responses:
        '200':
          description: Lead received successfully.
          content:
            application/json:
              schema:
                type: object
                properties:
                  success:
                    type: boolean
                    example: true
                  message:
                    type: string
                    example: Inquiry delivered successfully.
        '400':
          description: Validation error.
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                    example: Name is required.
