{
  "openapi": "3.1.0",
  "info": {
    "title": "VIQQ Site Assistant API",
    "version": "1.0.0",
    "description": "Public informational chat endpoint for VIQQ Studio services, industries, and South Florida web growth."
  },
  "servers": [
    {
      "url": "https://viqq.net"
    }
  ],
  "paths": {
    "/api/assistant": {
      "post": {
        "operationId": "askAssistant",
        "summary": "Ask the VIQQ site assistant",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "message"
                ],
                "properties": {
                  "message": {
                    "type": "string",
                    "maxLength": 2000
                  },
                  "selectedIds": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    }
                  },
                  "history": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "required": [
                        "role",
                        "content"
                      ],
                      "properties": {
                        "role": {
                          "type": "string",
                          "enum": [
                            "user",
                            "assistant"
                          ]
                        },
                        "content": {
                          "type": "string"
                        }
                      }
                    }
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Assistant reply",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "reply": {
                      "type": "string"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Invalid request body"
          }
        }
      }
    }
  }
}