{
  "openapi": "3.1.0",
  "info": {
    "title": "Revitt Public API",
    "version": "1.0.0",
    "description": "Machine-readable Revitt service catalogue, offer catalogue, and inquiry submission API."
  },
  "servers": [
    {
      "url": "https://revitt.co"
    }
  ],
  "paths": {
    "/api/services.json": {
      "get": {
        "operationId": "listServices",
        "summary": "List Revitt services",
        "responses": {
          "200": {
            "description": "Services catalogue"
          }
        }
      }
    },
    "/api/offers.json": {
      "get": {
        "operationId": "listOffers",
        "summary": "List fixed-scope offers",
        "responses": {
          "200": {
            "description": "Offers catalogue"
          }
        }
      }
    },
    "/api/inquiry": {
      "post": {
        "operationId": "submitInquiry",
        "summary": "Submit a Revitt brief",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": ["name", "email", "message"],
                "properties": {
                  "name": { "type": "string", "maxLength": 200 },
                  "email": { "type": "string", "format": "email" },
                  "company": { "type": "string", "maxLength": 200 },
                  "message": {
                    "type": "string",
                    "minLength": 20,
                    "maxLength": 4000
                  },
                  "service_interest": {
                    "type": "array",
                    "items": {
                      "type": "string",
                      "enum": [
                        "automation",
                        "integration-architecture",
                        "mcp-development",
                        "system-care",
                        "other"
                      ]
                    },
                    "maxItems": 8
                  },
                  "budget_range": {
                    "type": "string",
                    "enum": ["<5k", "5k-15k", "15k-50k", "50k+", "unknown"]
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Inquiry received"
          },
          "400": {
            "description": "Validation failed"
          },
          "429": {
            "description": "Rate limited"
          }
        }
      }
    }
  }
}
