{
  "openapi": "3.0.3",
  "info": {
    "title": "The AI Call Voice AI & Automation API",
    "description": "API endpoints for conversational voice AI, appointment scheduling, blog publishing, and lead processing at The AI Call.",
    "version": "1.0.0"
  },
  "x-service-info": {
    "name": "The AI Call Voice AI Services",
    "description": "Conversational Voice AI, Telephony Pipelines & CRM Automation",
    "categories": ["voice-ai", "telephony", "automation", "ai-receptionist"]
  },
  "servers": [
    {
      "url": "https://goycrjqlfmwzigimawti.supabase.co/functions/v1",
      "description": "Supabase Edge Functions Production Server"
    },
    {
      "url": "https://theaicall.com/api",
      "description": "Main Website API Proxy"
    }
  ],
  "paths": {
    "/book-appointment": {
      "post": {
        "summary": "Book Voice AI Discovery Session",
        "description": "Schedule a discovery call or consultation with The AI Call engineering team.",
        "operationId": "bookAppointment",
        "x-payment-info": {
          "intent": "charge",
          "method": "stripe",
          "amount": 0,
          "currency": "USD",
          "description": "Free initial AI Voice architecture consultation"
        },
        "responses": {
          "200": {
            "description": "Appointment booked successfully"
          }
        }
      }
    },
    "/create-webcall": {
      "post": {
        "summary": "Initiate WebRTC Voice Call Session",
        "description": "Create an active WebRTC audio session with Retell AI voice agent.",
        "operationId": "createWebcall",
        "x-payment-info": {
          "intent": "session",
          "method": "stripe",
          "amount": 0.15,
          "currency": "USD",
          "description": "Per-minute voice AI telephony agent session"
        },
        "responses": {
          "200": {
            "description": "Webcall session token created"
          }
        }
      }
    },
    "/publish-blog": {
      "post": {
        "summary": "Publish Blog Article",
        "description": "Create and publish a blog post with media attachments.",
        "operationId": "publishBlog",
        "x-payment-info": {
          "intent": "charge",
          "method": "stripe",
          "amount": 25.00,
          "currency": "USD",
          "description": "Automated blog post publishing and SEO indexing"
        },
        "responses": {
          "200": {
            "description": "Blog published successfully"
          }
        }
      }
    },
    "/send-contact-email": {
      "post": {
        "summary": "Send Contact Inquiry",
        "description": "Submit a customer lead or agency consultation inquiry.",
        "operationId": "sendContactEmail",
        "responses": {
          "200": {
            "description": "Message received"
          }
        }
      }
    }
  }
}
