{
  "openapi": "3.1.0",
  "info": {
    "title": "Snackeez Inquiry API",
    "version": "1.0.0",
    "description": "Public API for submitting a vending machine inquiry to Snackeez LLC. No authentication is required. Submissions are delivered to the Snackeez team, who follow up within 24 hours.",
    "contact": {
      "name": "Snackeez LLC",
      "email": "lstennett@snackeezhq.com",
      "url": "https://www.snackeezhq.com/"
    }
  },
  "servers": [
    { "url": "https://formspree.io", "description": "Inquiry submission backend (Formspree)" }
  ],
  "paths": {
    "/f/mgobejdb": {
      "post": {
        "operationId": "submitInquiry",
        "summary": "Submit a vending machine inquiry",
        "description": "Submit a lead requesting a free vending machine. Send JSON with the Accept: application/json header to receive a JSON response.",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": { "$ref": "#/components/schemas/Inquiry" }
            },
            "application/x-www-form-urlencoded": {
              "schema": { "$ref": "#/components/schemas/Inquiry" }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Inquiry received.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": { "ok": { "type": "boolean" }, "next": { "type": "string" } }
                }
              }
            }
          },
          "400": { "description": "Validation error." }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "Inquiry": {
        "type": "object",
        "required": ["first_name", "last_name", "email"],
        "properties": {
          "first_name": { "type": "string", "description": "Contact first name." },
          "last_name": { "type": "string", "description": "Contact last name." },
          "email": { "type": "string", "format": "email", "description": "Contact email address." },
          "phone": { "type": "string", "description": "Contact phone number (optional)." },
          "business_type": {
            "type": "string",
            "description": "Type of business or location.",
            "enum": ["Office / Corporate", "Warehouse / Industrial", "School / Education", "Gym / Fitness", "Medical Facility", "Other"]
          },
          "foot_traffic": {
            "type": "string",
            "description": "Approximate daily foot traffic.",
            "enum": ["Under 25 people", "25–50 people", "50–100 people", "100–250 people", "250–500 people", "500+ people"]
          },
          "message": { "type": "string", "description": "Details about the location." }
        }
      }
    }
  }
}
